mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
api: some slight lmtools polish (#226371)
- Have `countTokens` only take a string for now, since that's all that tool elements in tsx should currently omit (not chat messages with roles.) String counting is a much easier interface to satisfy. - Joyce pointed out that it's "invocation" not "invokation", for reasons unfathomable to me. I will open an issue with the English language.
This commit is contained in:
@@ -1489,7 +1489,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'lmTools');
|
||||
return extHostLanguageModelTools.registerTool(extension, toolId, tool);
|
||||
},
|
||||
invokeTool(toolId: string, parameters: vscode.LanguageModelToolInvokationOptions, token: vscode.CancellationToken) {
|
||||
invokeTool(toolId: string, parameters: vscode.LanguageModelToolInvocationOptions, token: vscode.CancellationToken) {
|
||||
checkProposedApiEnabled(extension, 'lmTools');
|
||||
return extHostLanguageModelTools.invokeTool(toolId, parameters, token);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user