* Creates and streams a message using the VS Code Language Model API. * * @param systemPrompt - The system prompt to initialize the conversation context * @param messages - An array of message parameters following the Anthropic message format * @param metadata - Optional metadata for the mes
()
| 186 | * Tool calls handling is currently a work in progress. |
| 187 | */ |
| 188 | dispose(): void { |
| 189 | if (this.disposable) { |
| 190 | this.disposable.dispose() |
| 191 | } |
| 192 | |
| 193 | if (this.currentRequestCancellation) { |
| 194 | this.currentRequestCancellation.cancel() |
| 195 | this.currentRequestCancellation.dispose() |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * Implements the ApiHandler countTokens interface method |
no test coverage detected