Joh/tart-lamprey (#195554)

* some API todos

* add `ChatAgent2#onDidReceiveFeedback` for helpful/unhelpful feedback kinds

* add another proposal for chat additions

* small tweaks
This commit is contained in:
Johannes Rieken
2023-10-13 12:46:43 +02:00
committed by GitHub
parent e63c6c1bd0
commit 717f3e3f6c
16 changed files with 170 additions and 17 deletions

View File

@@ -1372,7 +1372,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
},
createChatAgent(name: string, handler: vscode.ChatAgentHandler) {
checkProposedApiEnabled(extension, 'chatAgents2');
return extHostChatAgents2.createChatAgent(extension.identifier, name, handler);
return extHostChatAgents2.createChatAgent(extension, name, handler);
},
registerAgent(name: string, agent: vscode.ChatAgent, metadata: vscode.ChatAgentMetadata) {
checkProposedApiEnabled(extension, 'chatAgents');
@@ -1412,6 +1412,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
// types
Breakpoint: extHostTypes.Breakpoint,
TerminalOutputAnchor: extHostTypes.TerminalOutputAnchor,
ChatAgentResultFeedbackKind: extHostTypes.ChatAgentResultFeedbackKind,
ChatMessage: extHostTypes.ChatMessage,
ChatMessageRole: extHostTypes.ChatMessageRole,
ChatVariableLevel: extHostTypes.ChatVariableLevel,