Add support for GH Custom Agents (#278251)

This commit is contained in:
Paul
2025-11-26 12:57:19 -08:00
committed by GitHub
parent 8d6b74026f
commit d2865ebb0c
12 changed files with 392 additions and 18 deletions

View File

@@ -1541,6 +1541,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
checkProposedApiEnabled(extension, 'chatContextProvider');
return extHostChatContext.registerChatContextProvider(selector ? checkSelector(selector) : undefined, `${extension.id}-${id}`, provider);
},
registerCustomAgentsProvider(provider: vscode.CustomAgentsProvider): vscode.Disposable {
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
return extHostChatAgents2.registerCustomAgentsProvider(extension, provider);
},
};
// namespace: lm
@@ -1942,7 +1946,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
McpStdioServerDefinition: extHostTypes.McpStdioServerDefinition,
McpStdioServerDefinition2: extHostTypes.McpStdioServerDefinition,
McpToolAvailability: extHostTypes.McpToolAvailability,
SettingsSearchResultKind: extHostTypes.SettingsSearchResultKind
SettingsSearchResultKind: extHostTypes.SettingsSearchResultKind,
CustomAgentTarget: extHostTypes.CustomAgentTarget,
};
};
}