diff --git a/src/vs/workbench/api/common/extHostTypeConverters.ts b/src/vs/workbench/api/common/extHostTypeConverters.ts index ca8f30ab37b..3357a92b587 100644 --- a/src/vs/workbench/api/common/extHostTypeConverters.ts +++ b/src/vs/workbench/api/common/extHostTypeConverters.ts @@ -3048,6 +3048,7 @@ export namespace AideAgentRequest { location: ChatLocation.to(request.location), location2, isDevtoolsContext: request.isDevtoolsContext, + inputTokens: request.inputTokens, }; } } @@ -3294,4 +3295,4 @@ export namespace SymbolNavigationActionType { return types.SymbolNavigationActionType.GoToDefinition; } } -} +} \ No newline at end of file diff --git a/src/vs/workbench/contrib/aideAgent/common/aideAgentAgents.ts b/src/vs/workbench/contrib/aideAgent/common/aideAgentAgents.ts index eb6b3126f40..8d23e7f6606 100644 --- a/src/vs/workbench/contrib/aideAgent/common/aideAgentAgents.ts +++ b/src/vs/workbench/contrib/aideAgent/common/aideAgentAgents.ts @@ -166,6 +166,7 @@ export interface IChatAgentRequest { rejectedConfirmationData?: any[]; userSelectedModelId?: string; isDevtoolsContext: boolean; + inputTokens?: number; } export interface IChatQuestion { @@ -704,4 +705,4 @@ export function reviveSerializedAgent(raw: ISerializableChatAgentData): IChatAge } return revive(agent); -} +} \ No newline at end of file diff --git a/src/vscode-dts/vscode.proposed.aideAgent.d.ts b/src/vscode-dts/vscode.proposed.aideAgent.d.ts index ba775c7d841..ca8016dd325 100644 --- a/src/vscode-dts/vscode.proposed.aideAgent.d.ts +++ b/src/vscode-dts/vscode.proposed.aideAgent.d.ts @@ -65,6 +65,7 @@ declare module 'vscode' { readonly location: ChatLocation; readonly location2: ChatRequestEditorData | ChatRequestNotebookData | undefined; readonly isDevtoolsContext: boolean; + readonly inputTokens?: number; } export class ChatResponseCodeEditPart { @@ -133,4 +134,4 @@ declare module 'vscode' { export function registerChatVariableResolver(id: string, name: string, userDescription: string, modelDescription: string | undefined, isSlow: boolean | undefined, resolver: ChatVariableResolver, fullName?: string, icon?: ThemeIcon): Disposable; export function registerMappedEditsProvider2(provider: MappedEditsProvider2): Disposable; } -} +} \ No newline at end of file