mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Rename the chat agent API to "participant" (#205477)
* Start renaming chat API from "agent" to "participant" * Rename the rest of the API * Rename in integration test * Update integration test api proposals * Bump distro
This commit is contained in:
@@ -1410,15 +1410,15 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostChatProvider.registerLanguageModel(extension, id, provider, metadata);
|
||||
},
|
||||
registerVariable(name: string, description: string, resolver: vscode.ChatVariableResolver) {
|
||||
checkProposedApiEnabled(extension, 'chatAgents2');
|
||||
checkProposedApiEnabled(extension, 'chatParticipant');
|
||||
return extHostChatVariables.registerVariableResolver(extension, name, description, resolver);
|
||||
},
|
||||
registerMappedEditsProvider(selector: vscode.DocumentSelector, provider: vscode.MappedEditsProvider) {
|
||||
checkProposedApiEnabled(extension, 'mappedEditsProvider');
|
||||
return extHostLanguageFeatures.registerMappedEditsProvider(extension, selector, provider);
|
||||
},
|
||||
createChatAgent(name: string, handler: vscode.ChatAgentExtendedRequestHandler) {
|
||||
checkProposedApiEnabled(extension, 'chatAgents2');
|
||||
createChatParticipant(name: string, handler: vscode.ChatExtendedRequestHandler) {
|
||||
checkProposedApiEnabled(extension, 'chatParticipant');
|
||||
return extHostChatAgents2.createChatAgent(extension, name, handler);
|
||||
},
|
||||
};
|
||||
@@ -1472,9 +1472,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
// types
|
||||
Breakpoint: extHostTypes.Breakpoint,
|
||||
TerminalOutputAnchor: extHostTypes.TerminalOutputAnchor,
|
||||
ChatAgentResultFeedbackKind: extHostTypes.ChatAgentResultFeedbackKind,
|
||||
ChatResultFeedbackKind: extHostTypes.ChatResultFeedbackKind,
|
||||
ChatVariableLevel: extHostTypes.ChatVariableLevel,
|
||||
ChatAgentCompletionItem: extHostTypes.ChatAgentCompletionItem,
|
||||
ChatCompletionItem: extHostTypes.ChatCompletionItem,
|
||||
CallHierarchyIncomingCall: extHostTypes.CallHierarchyIncomingCall,
|
||||
CallHierarchyItem: extHostTypes.CallHierarchyItem,
|
||||
CallHierarchyOutgoingCall: extHostTypes.CallHierarchyOutgoingCall,
|
||||
@@ -1664,7 +1664,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
LogLevel: LogLevel,
|
||||
EditSessionIdentityMatch: EditSessionIdentityMatch,
|
||||
InteractiveSessionVoteDirection: extHostTypes.InteractiveSessionVoteDirection,
|
||||
ChatAgentCopyKind: extHostTypes.ChatAgentCopyKind,
|
||||
ChatCopyKind: extHostTypes.ChatCopyKind,
|
||||
InteractiveEditorResponseFeedbackKind: extHostTypes.InteractiveEditorResponseFeedbackKind,
|
||||
StackFrameFocus: extHostTypes.StackFrameFocus,
|
||||
ThreadFocus: extHostTypes.ThreadFocus,
|
||||
@@ -1678,8 +1678,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
ChatResponseProgressPart: extHostTypes.ChatResponseProgressPart,
|
||||
ChatResponseReferencePart: extHostTypes.ChatResponseReferencePart,
|
||||
ChatResponseCommandButtonPart: extHostTypes.ChatResponseCommandButtonPart,
|
||||
ChatAgentRequestTurn: extHostTypes.ChatAgentRequestTurn,
|
||||
ChatAgentResponseTurn: extHostTypes.ChatAgentResponseTurn,
|
||||
ChatRequestTurn: extHostTypes.ChatRequestTurn,
|
||||
ChatResponseTurn: extHostTypes.ChatResponseTurn,
|
||||
LanguageModelSystemMessage: extHostTypes.LanguageModelSystemMessage,
|
||||
LanguageModelUserMessage: extHostTypes.LanguageModelUserMessage,
|
||||
LanguageModelAssistantMessage: extHostTypes.LanguageModelAssistantMessage,
|
||||
|
||||
Reference in New Issue
Block a user