mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
tools: surface tool source in chat additions api (#256558)
For MCP I can already kind of get this from the tool name, but for extension tools we previously had no way to know which extension provided the tool. This PR adds a `LanguageModelToolInformation.source` containing details about where the tool came from. I also use this to include the MCP server instructions which is needed for #250017. cc @aeschli @roblourens
This commit is contained in:
@@ -1855,6 +1855,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
LanguageModelToolResult: extHostTypes.LanguageModelToolResult,
|
||||
LanguageModelToolResult2: extHostTypes.LanguageModelToolResult2,
|
||||
LanguageModelDataPart: extHostTypes.LanguageModelDataPart,
|
||||
LanguageModelToolExtensionSource: extHostTypes.LanguageModelToolExtensionSource,
|
||||
LanguageModelToolMCPSource: extHostTypes.LanguageModelToolMCPSource,
|
||||
ExtendedLanguageModelToolResult: extHostTypes.ExtendedLanguageModelToolResult,
|
||||
PreparedTerminalToolInvocation: extHostTypes.PreparedTerminalToolInvocation,
|
||||
LanguageModelChatToolMode: extHostTypes.LanguageModelChatToolMode,
|
||||
|
||||
Reference in New Issue
Block a user