MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / dispose

Method dispose

src/api/providers/vscode-lm.ts:188–197  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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

Callers 1

constructorMethod · 0.95

Calls 2

disposeMethod · 0.65
cancelMethod · 0.45

Tested by

no test coverage detected