ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as l10n from '@vscode/l10n';
import { Raw, RenderPromptResult } from '@vscode/prompt-tsx';
import { BudgetExceededError } from '@vscode/prompt-tsx/dist/base/materialized';
import type * as vscode from 'vscode';
import { IChatSessionService } from '../../../platform/chat/common/chatSessionService';
import { ChatFetchResponseType, ChatLocation, ChatResponse } from '../../../platform/chat/common/commonTypes';
import { getTextPart } from '../../../platform/chat/common/globalStringUtils'
ISessionTranscriptService
ConfigKey IConfigurationService
isAnthropicFamily isXAiFamily modelCanUseApplyPatchExclusively modelCanUseReplaceStringExclusively modelSupportsApplyPatch modelSupportsMultiReplaceString modelSupportsReplaceString modelSupportsSimplifiedApplyPatchInstructions
IEndpointProvider
IAutomodeService
IEnvService
ILogService
IEditLogService
isAnthropicContextEditingEnabled
IChatEndpoint isCAPIEndpoint
modelsWithoutResponsesContextManagement nanoAiuToCredits
INotebookService
GenAiMetrics
IOTelService
PromptConfig
CustomInstructionsReferenceLogger IAutomaticInstructionsCollector
IPromptPathRepresentationService
ITasksService
IExperimentationService
ITelemetryService
ITestProvider
IWorkspaceService
findLast
raceTimeout
isCancellationError
Iterable
DisposableMap DisposableStore
IInstantiationService ServicesAccessor
IAuthenticationService
ChatResponseProgressPart2
ICommandService
Intent
ChatVariablesCollection
Conversation normalizeSummariesOnRounds RenderedUserMessageMetadata TurnStatus TurnTokenUsageMetadata
IBuildPromptContext InternalToolReference
getRequestedToolCallIterationLimit IContinueOnErrorConfirmation
ChatTelemetryBuilder
IDefaultIntentRequestHandlerOptions
IDocumentContext
IBuildPromptResult IIntent IIntentInvocation
AgentPrompt AgentPromptProps
BackgroundSummarizationState BackgroundSummarizationThresholds BackgroundSummarizer IBackgroundSummarizationResult resolveSummaryAnchorRoundId shouldKickOffBackgroundSummarization
BackgroundTodoAgentProcessor getSessionResource
AgentPromptCustomizations PromptRegistry
appendTranscriptHintToSummary computeSummarizationRoundCounts extractSummary SummarizationUserMessage SummarizedConversationHistory SummarizedConversationHistoryMetadata SummarizedConversationHistoryPropsBuilder
PromptRenderer renderPromptElement
ICodeMapperService
EditCodePrompt2
NotebookInlinePrompt
ToolResultMetadata
IEditToolLearningService
ContributedToolName ToolName
normalizeToolSchema
IToolsService
applyPatch5Description
multiReplaceStringPrimaryDescription
replaceStringBatchDescription
getAgentMaxRequests
addCacheBreakpoints
EditCodeIntent EditCodeIntentInvocation EditCodeIntentInvocationOptions mergeMetadata toNewChatReferences
ToolCallingLoop
endpoint IChatEndpoint configurationService IConfigurationService experimentationService IExperimentationService
endpointapiType
configurationServiceConfigKeyResponsesApiContextManagementEnabled experimentationService
modelsWithoutResponsesContextManagementendpointfamily
endpoint IChatEndpoint request vscodeChatRequest IChatEndpoint
contextSize requestmodelConfigurationcontextSize
hasLongContextSurcharge endpointtokenPricinglongContext
effectiveSize contextSize NumbercontextSize contextSize
contextSize
hasLongContextSurcharge endpointtokenPricingdefaultcontextMax
effectiveSize effectiveSize effectiveSize endpointmodelMaxPromptTokens
endpointeffectiveSize
endpoint
request vscodeChatRequest
todoReferenceName
requesttoolReferencesref
refname todoReferenceName
refname ToolNameCoreManageTodoList
endpoint IChatEndpoint
configurationService IConfigurationService
experimentationService IExperimentationService
authenticationService IAuthenticationService
request vscodeChatRequest
token authenticationServicecopilotToken
endpointmodelProvider
isEnabledForToken token tokenisFreeUser tokenisNoAuthUser endpoint
isEnabledForToken configurationServiceConfigKeyAdvancedBackgroundTodoAgentEnabled experimentationService
request
value effectiveMaxTokens settingId
value value
value
Math MatheffectiveMaxTokens value
value
value
accessor ServicesAccessor request vscodeChatRequest model IChatEndpoint
toolsService accessorIToolsService
testService accessorITestProvider
tasksService accessorITasksService
configurationService accessorIConfigurationService
experimentationService accessorIExperimentationService
endpointProvider accessorIEndpointProvider
editToolLearningService accessorIEditToolLearningService
authenticationService accessorIAuthenticationService
logService accessorILogService
model endpointProviderrequest
allowTools Record
learned editToolLearningServicemodel
learned
allowToolsToolNameEditFile learnedToolNameEditFile
allowToolsToolNameReplaceString learnedToolNameReplaceString
allowToolsToolNameMultiReplaceString learnedToolNameMultiReplaceString
allowToolsToolNameApplyPatch learnedToolNameApplyPatch
allowToolsToolNameEditFile
allowToolsToolNameReplaceString model
allowToolsToolNameApplyPatch model toolsServiceToolNameApplyPatch
allowToolsToolNameApplyPatch model
allowToolsToolNameEditFile
model
allowToolsToolNameReplaceString
allowToolsToolNameEditFile
allowToolsToolNameReplaceString model
allowToolsToolNameMultiReplaceString
allowToolsToolNameCoreRunTest testService
allowToolsToolNameCoreRunTask tasksServicelength
model
allowToolsToolNameSearchSubagent
allowToolsToolNameExploreSubagent
allowToolsToolNameExecutionSubagent
allowToolsToolNameCodebase
searchSubagentEnabled configurationServiceConfigKeyAdvancedSearchSubagentToolEnabled experimentationService
exploreAgentEnabled configurationServiceConfigKeyExploreAgentEnabled experimentationService
executionSubagentEnabled configurationServiceConfigKeyAdvancedExecutionSubagentToolEnabled experimentationService
allEndpoints searchSubagentEnabled
endpointProvidererr
logService
IChatEndpoint
searchAgentAvailable allEndpointse efamily
allowToolsToolNameSearchSubagent searchSubagentEnabled exploreAgentEnabled searchAgentAvailable
allowToolsToolNameExploreSubagent searchSubagentEnabled exploreAgentEnabled searchAgentAvailable
allowToolsToolNameExecutionSubagent executionSubagentEnabled
skillToolEnabled configurationServiceConfigKeyAdvancedSkillToolEnabled experimentationService
allowToolsToolNameSkill skillToolEnabled
getSCMChangesEnabled configurationServiceConfigKeyAdvancedGetChangedFilesToolEnabled experimentationService
allowToolsToolNameGetScmChanges getSCMChangesEnabled
allowToolsToolNameSessionStoreSql
allowTools modelsupportsToolSearch
model
allowToolsToolNameCoreManageTodoList
model configurationService experimentationService authenticationService request
allowToolsToolNameCoreManageTodoList
allowTools requestpermissionLevel
allowToolsToolNameEditFilesPlaceholder
Iterablerequesttools t enabled t t tname ContributedToolNameEditFilesPlaceholder enabled
allowToolsToolNameApplyPatch
allowToolsToolNameEditFile
allowToolsToolNameReplaceString
allowToolsToolNameMultiReplaceString
modelfamily configurationServiceConfigKeyAdvancedGemini3MultiReplaceString experimentationService
allowToolsToolNameMultiReplaceString
tools toolsServicerequest model tool
allowToolstoolname
allowToolstoolname
model configurationServiceConfigKeyAdvancedGpt5AlternativePatch experimentationService
ap toolst tname ToolNameApplyPatch
ap
toolsap toolsap description applyPatch5Description
configurationServiceConfigKeyAdvancedBatchReplaceStringDescriptions experimentationService
rs toolst tname ToolNameReplaceString
rs
toolsrs toolsrs description replaceStringBatchDescription
mrs toolst tname ToolNameMultiReplaceString
mrs
toolsmrs toolsmrs description multiReplaceStringPrimaryDescription
tools
override IntentAgent
override id AgentIntent
_backgroundSummarizers
_backgroundTodoProcessors
_sessionListeners
instantiationService IInstantiationService
endpointProvider IEndpointProvider
configurationService IConfigurationService
expService IExperimentationService
codeMapperService ICodeMapperService
workspaceService IWorkspaceService
chatSessionService IChatSessionService
_automodeService IAutomodeService
_logService ILogService
_toolsService IToolsService
_telemetryService ITelemetryService
_authenticationService IAuthenticationService
instantiationService endpointProvider configurationService expService codeMapperService workspaceService intentInvocation AgentIntentInvocation processCodeblocks
_sessionListenerschatSessionServicesessionId
summarizer _backgroundSummarizerssessionId
summarizer
summarizer
_backgroundSummarizerssessionId
_backgroundTodoProcessorssessionId
sessionId modelMaxPromptTokens endpointId BackgroundSummarizer
summarizer _backgroundSummarizerssessionId
summarizer summarizerendpointId endpointId
summarizer
_backgroundSummarizerssessionId
summarizer
summarizer
summarizer modelMaxPromptTokens endpointId
_backgroundSummarizerssessionId summarizer
summarizer
sessionId
summarizer _backgroundSummarizerssessionId
summarizer
summarizer
_backgroundSummarizerssessionId
promptContext IBuildPromptContext BackgroundTodoAgentProcessor
sessionId promptContextconversationsessionId
sessionId
processor _backgroundTodoProcessorssessionId
processor
processor
sessionId
promptContext
_toolsService
_telemetryService
instantiationService
_logService
_backgroundTodoProcessorssessionId processor
processor
override request vscodeChatRequest IDefaultIntentRequestHandlerOptions
maxToolCallIterations request
instantiationServicegetAgentMaxRequests
temperature configurationServiceConfigKeyAdvancedAgentTemperature
overrideRequestLocation ChatLocationAgent
override
conversation Conversation
request vscodeChatRequest
stream vscodeChatResponseStream
token vscodeCancellationToken
documentContext IDocumentContext
agentName
location ChatLocation
chatTelemetry ChatTelemetryBuilder
vscodeChatResult
requestcommand
conversation request stream token
conversation request stream token documentContext agentName location chatTelemetry yieldRequested
conversation request
conversation Conversation request vscodeChatRequest
requestsubAgentInvocationId requestsubAgentName
todoProcessor _backgroundTodoProcessorsconversationsessionId
todoProcessor
endpoint endpointProviderrequest
endpoint endpoint configurationService expService _authenticationService request
todoProcessorconversationid requesttoolInvocationToken
todoProcessor
conversation Conversation
request vscodeChatRequest
stream vscodeChatResponseStream
token vscodeCancellationToken
vscodeChatResult
conversationturns
history conversationturns
historylength
streaml10n
lastRoundId historyroundsid
lastRoundId
streaml10n
endpoint endpointProviderrequest
endpoint configurationService expService
streaml10n
conversationsessionId
availableTools instantiationServicegetAgentTools request endpoint
promptContext IBuildPromptContext
history
chatVariables
query
toolCallRounds
conversation
tools
availableTools
toolReferences requesttoolReferencesInternalToolReferencefrom
toolInvocationToken requesttoolInvocationToken
propsBuilder instantiationServiceSummarizedConversationHistoryPropsBuilder
propsInfo propsBuilder
priority
endpoint
location ChatLocationAgent
promptContext
tools availableTools
maxToolResultLength
propsInfo
streaml10n
streaml10n
progress vscodeProgressvscodeChatResponseReferencePart vscodeChatResponseProgressPart
renderer PromptRendererinstantiationService endpoint SummarizedConversationHistory
propsInfoprops
triggerSummarize
summarizationInstructions requestprompt
result rendererprogress token
summaryMetadata resultmetadataSummarizedConversationHistoryMetadata
summaryMetadata
streaml10n
summaryMetadatausage
stream
promptTokens summaryMetadatausageprompt_tokens
completionTokens summaryMetadatausagecompletion_tokens
copilotCredits summaryMetadatausagecopilot_usagetotal_nano_aiu
promptTokenDetails summaryMetadatapromptTokenDetails
streaml10n
lastTurn conversation
_automodeServicerequest
chatResult vscodeChatResult
metadata
summary
toolCallRoundId summaryMetadatatoolCallRoundId
text summaryMetadatatext
lastTurn
TurnStatusSuccess
type message
chatResult
lastTurnsummaryMetadata
chatResult
e
e
message e emessage e
streaml10n message
override codeblocksRepresentEdits
prompt AgentPrompt EditCodePrompt2 NotebookInlinePrompt AgentPrompt
extraPromptProps PartialAgentPromptProps
_resolvedCustomizations AgentPromptCustomizations
_lastRenderTokenCount
_lastModelCapabilities enableThinking reasoningEffort enableToolSearch enableContextEditing
Mathrandom
intent IIntent
location ChatLocation
endpoint IChatEndpoint
request vscodeChatRequest
intentOptions EditCodeIntentInvocationOptions
instantiationService IInstantiationService
codeMapperService ICodeMapperService
envService IEnvService
promptPathRepresentationService IPromptPathRepresentationService
endpointProvider IEndpointProvider
workspaceService IWorkspaceService
toolsService IToolsService
configurationService IConfigurationService
editLogService IEditLogService
commandService ICommandService
telemetryService ITelemetryService
notebookService INotebookService
logService ILogService
expService IExperimentationService
automodeService IAutomodeService
override otelService IOTelService
sessionTranscriptService ISessionTranscriptService
_automaticInstructionsCollector IAutomaticInstructionsCollector
authenticationService IAuthenticationService
intent location endpoint request request intentOptions instantiationService codeMapperService envService promptPathRepresentationService endpointProvider workspaceService toolsService configurationService editLogService commandService telemetryService notebookService otelService
override vscodeLanguageModelToolInformation
instantiationServicegetAgentTools request
override
promptContext IBuildPromptContext
progress vscodeProgressvscodeChatResponseReferencePart vscodeChatResponseProgressPart
token vscodeCancellationToken
IBuildPromptResult
_resolvedCustomizations PromptRegistryinstantiationService endpoint
collectInstructionsInExtension configurationServicePromptConfig
collectInstructionsInExtension
addedInstructionsAndIndex _automaticInstructionsCollectorrequest token
addedInstructionsAndIndexlength
promptContext promptContext chatVariables ChatVariablesCollectionpromptContextchatVariables addedInstructionsAndIndex
instantiationServiceCustomInstructionsReferenceLoggerrequest _automaticInstructionsCollector token
instantiationServiceCustomInstructionsReferenceLoggerpromptContextconversationsessionId promptContextchatVariablesreferences collectInstructionsInExtension
codebase promptContext token
variables promptContextchatVariables
toolReferences vscodeChatPromptReference
codebase
toolReferences variables codebasereferences
variables variablesreferences toolReferences
tools promptContexttoolsavailableTools
toolSearchEnabled endpointsupportsToolSearch
toolTokens toolslength endpointtools
summarizeThresholdOverride configurationServiceConfigKeyAdvancedSummarizeAgentConversationHistoryThreshold
configuredContextSize requestmodelConfigurationcontextSize
effectiveMaxTokens configuredContextSize configuredContextSize endpointmodelMaxPromptTokens
configuredContextSize
endpointmodelMaxPromptTokens
summarizeThresholdTokens summarizeThresholdOverride effectiveMaxTokens ConfigKeyAdvancedSummarizeAgentConversationHistoryThresholdid
baseBudget Math
summarizeThresholdTokens effectiveMaxTokens
effectiveMaxTokens
useTruncation endpointapiType configurationServiceConfigKeyAdvancedUseResponsesApiTruncation
responsesCompactionContextManagementEnabled endpoint configurationService expService
summarizationEnabled configurationServiceConfigKeySummarizeAgentConversationHistory prompt AgentPrompt responsesCompactionContextManagementEnabled
messageBudget Math MathbaseBudget toolTokens
safeBudget useTruncation Number messageBudget
endpoint toolTokens endpointsafeBudget endpoint
logService
result RenderPromptResult
isMessagesApi endpointapiType
props AgentPromptProps
endpoint
promptContext
promptContext
chatVariables variables
tools promptContexttools
promptContexttools
toolReferences stableToolReferencesr rname ToolNameCodebase
location location
enableSummarization summarizationEnabled
enableCacheBreakpoints summarizationEnabled isMessagesApi
extraPromptProps
customizations _resolvedCustomizations
backgroundSummarizer summarizationEnabled promptContextconversationsessionId
lastTurnPromptTokens promptContextconversationturns turn turnTurnTokenUsageMetadata
TurnTokenUsageMetadatapromptTokens
contextRatio backgroundSummarizer baseBudget
Math_lastRenderTokenCount toolTokens lastTurnPromptTokens baseBudget
didSummarizeThisIteration
summarizationEnabled backgroundSummarizerstate BackgroundSummarizationStateCompleted
contextRatio BackgroundSummarizationThresholdsapplyMinRatio
bgResult backgroundSummarizer
bgResult
logService
progress l10n l10n
bgResult promptContext
bgResult promptContext _lastRenderTokenCount
contextRatio promptContext
didSummarizeThisIteration
logService
contextRatio promptContext
promptContext
backgroundSummarizer
logService
contextRatio promptContext
renderWithoutSummarization reason renderProps AgentPromptProps props RenderPromptResult
logService
renderer PromptRendererinstantiationService endpoint prompt
renderProps
endpoint endpoint
enableSummarization
enableCacheBreakpoints
rendererprogress token
e
e
logServicee
maxTokens endpointmodelMaxPromptTokens
e
renderWithSummarization reason renderProps AgentPromptProps props RenderPromptResult
turn promptContextconversation
previousForegroundSummary turnSummarizedConversationHistoryMetadata
previousForegroundSummarysource previousForegroundSummaryoutcome previousForegroundSummaryoutcome
logService
telemetryService previousOutcome previousForegroundSummaryoutcome model renderPropsendpointmodel
GenAiMetricsotelService
renderProps
logService
renderer PromptRendererinstantiationService endpoint prompt
renderProps
endpoint endpoint
promptContext renderPropspromptContext
triggerSummarize
forceSimpleSummary
rendererprogress token
e
logServicee
errorKind e
telemetryService errorKind model renderPropsendpointmodel
GenAiMetricsotelService
turn promptContextconversation
turn
model renderPropsendpointmodel
source
outcome errorKind
contextLengthBefore _lastRenderTokenCount
renderProps
contextLengthBefore _lastRenderTokenCount
renderer PromptRendererinstantiationService endpoint prompt props
result rendererprogress token
e
e summarizationEnabled
promptContexttoolCallResults
promptContext
promptContext
toolCallResults
emetadataToolResultMetadatametadata
promptContexttoolCallResultsmetadatatoolCallId metadataresult
backgroundSummarizer backgroundSummarizerstate BackgroundSummarizationStateInProgress backgroundSummarizerstate BackgroundSummarizationStateCompleted
budgetExceededTrigger
backgroundSummarizerstate BackgroundSummarizationStateInProgress
budgetExceededTrigger
logService
summaryPromise backgroundSummarizer
progress l10n
summaryPromise
l10n
summaryPromise
budgetExceededTrigger
logService
progress l10n l10n
bgResult backgroundSummarizer
bgResult
logService
bgResult promptContext
bgResult promptContext contextLengthBefore
didSummarizeThisIteration
reRenderer PromptRendererinstantiationService endpoint prompt props promptContext
result reRendererprogress token
budgetExceededTrigger contextRatio promptContext
reRenderError
reRenderError
logService
budgetExceededTrigger contextRatio promptContext
result props promptContext
reRenderError
logService
budgetExceededTrigger contextRatio promptContext
promptContext budgetExceededTrigger
result
didSummarizeThisIteration
result
didSummarizeThisIteration
e
_lastRenderTokenCount resulttokenCount
summaryMeta resultmetadataSummarizedConversationHistoryMetadata
summaryMeta
turn promptContextconversation
turn
summaryMetatoolCallRoundId
summaryMetatext
thinking summaryMetathinking
usage summaryMetausage
promptTokenDetails summaryMetapromptTokenDetails
model summaryMetamodel
summarizationMode summaryMetasummarizationMode
numRounds summaryMetanumRounds
numRoundsSinceLastSummarization summaryMetanumRoundsSinceLastSummarization
durationMs summaryMetadurationMs
source
outcome
contextLengthBefore
summarizationEnabled backgroundSummarizer didSummarizeThisIteration
localPostRender resulttokenCount toolTokens
effectivePostRender MathlocalPostRender lastTurnPromptTokens
postRenderRatio baseBudget
effectivePostRender baseBudget
idleOrFailed backgroundSummarizerstate BackgroundSummarizationStateIdle
backgroundSummarizerstate BackgroundSummarizationStateFailed
cacheWarm promptContexttoolCallRoundslength
kickOff postRenderRatio cacheWarm _thresholdRng
kickOff idleOrFailed
strippedMessages ToolCallingLoopresultmessages
rawEffort requestmodelConfigurationreasoningEffort
isSubagent requestsubAgentInvocationId
shouldDisableThinking promptContextisContinuation endpoint ToolCallingLoopstrippedMessages
_lastModelCapabilities
enableThinking shouldDisableThinking
reasoningEffort rawEffort rawEffort
enableToolSearch isSubagent endpointsupportsToolSearch
enableContextEditing isSubagent endpoint configurationService expService
backgroundSummarizer resultmessages promptContext props token postRenderRatio
endpoint promptContext token
lastMessage resultmessages
lastMessagerole RawChatRoleUser
currentTurn promptContextconversation
currentTurn currentTurnRenderedUserMessageMetadata
currentTurn lastMessagecontent
endpointapiType
resultmessages endpointapiType
requestcommand
resultmessages
role RawChatRoleAssistant
content
toolCalls type id name arguments
result
metadata codebase resultmetadata codebasemetadatas resultmetadata
errorDetails vscodeChatErrorDetails response ChatResponse vscodeChatErrorDetails
errorDetailsresponseIsFiltered
errorDetailsconfirmationButtons
errorDetailsconfirmationButtons
data copilotContinueOnError satisfies IContinueOnErrorConfirmation label l10n
errorDetails
promptContext IBuildPromptContext ChatVariablesCollection
lastTurn promptContextconversationturns
lastTurn
lastTurnacceptedConfirmationData
turns promptContextconversationturns
turn Iterableturns
turnacceptedConfirmationData
turnpromptVariables
backgroundSummarizer BackgroundSummarizer
mainRenderMessages RawChatMessage
promptContext IBuildPromptContext
props AgentPromptProps
token vscodeCancellationToken
contextRatio
rounds promptContexttoolCallRounds
history promptContexthistory
toolCallRoundId rounds history
toolCallRoundId
logService
logService
bgStartTime Date
availableTools promptContexttoolsavailableTools
normalizedTools availableToolslength
endpointfamily
availableToolstool
name toolname
description tooldescription
parameters toolinputSchema ObjecttoolinputSchemalength toolinputSchema
type
tool rule
logService
toolOpts normalizedToolslength
tools normalizedTools
associatedRequestId promptContextconversationid
conversationId promptContextconversationsessionId
modelCapabilities _lastModelCapabilities
backgroundSummarizer bgToken
strippedMainMessages ToolCallingLoopmainRenderMessages
summaryMsgResult
instantiationService
endpoint
SummarizationUserMessage
endpoint endpoint
bgToken
messages
strippedMainMessages
summaryMsgResultmessages
response endpoint
debugName
messages
ignoreStatefulMarker
finishedCb
location ChatLocationAgent
conversationId
requestOptions
temperature
toolOpts
modelCapabilities
telemetryProperties associatedRequestId associatedRequestId
enableRetryOnFilter
interactionTypeOverride
bgToken
responsetype ChatFetchResponseTypeSuccess
rawSummaryText responsevalue
rawSummaryText
conversationId sessionTranscriptServiceconversationId
sessionTranscriptServiceconversationId
summaryText conversationId
rawSummaryText conversationId sessionTranscriptService
rawSummaryText
logService
numRounds numRoundsSinceLastSummarization history rounds
numRoundsInCurrentTurn roundslength
lastUsedTool roundstoolCallsname
historyroundstoolCallsname
promptTypes messagesmsg
telemetryService
outcome
model endpointmodel
summarizationMode
conversationId
chatRequestId associatedRequestId
lastUsedTool
requestId responserequestId
promptTypes
numRounds
turnIndex historylength
curTurnRoundIndex numRoundsInCurrentTurn
isDuringToolCalling numRoundsInCurrentTurn
duration Date bgStartTime
promptTokenCount responseusageprompt_tokens
promptCacheTokenCount responseusageprompt_tokens_detailscached_tokens
responseTokenCount responseusagecompletion_tokens
summary summaryText
toolCallRoundId
promptTokens responseusageprompt_tokens
promptCacheTokens responseusageprompt_tokens_detailscached_tokens
outputTokens responseusagecompletion_tokens
durationMs Date bgStartTime
model endpointmodel
summarizationMode
numRounds
numRoundsSinceLastSummarization
err
logServiceerr
telemetryService
outcome
detailedOutcome err errmessage err
model endpointmodel
summarizationMode
conversationId
chatRequestId associatedRequestId
duration Date bgStartTime
err
token
sessionId BackgroundSummarizer
sessionId intent
endpointId
intentsessionId endpointmodelMaxPromptTokens endpointId
bgResult summary toolCallRoundId promptContext IBuildPromptContext
currentRound promptContexttoolCallRoundsr rid bgResulttoolCallRoundId
currentRound
currentRoundsummary bgResultsummary
found
turn promptContexthistory
round turnroundsr rid bgResulttoolCallRoundId
round
roundsummary bgResultsummary
found
found
logService
automodeServicerequest
bgResult IBackgroundSummarizationResult promptContext IBuildPromptContext contextLengthBefore
turn promptContextconversation
chatResult turnresponseChatResult
chatResult
metadata chatResultmetadata Record
existingSummaries metadata
existingSummaries toolCallRoundId bgResulttoolCallRoundId text bgResultsummary
metadata existingSummaries
chatResult metadata metadata metadata
turnbgResulttoolCallRoundId bgResultsummary
usage bgResultpromptTokens bgResultoutputTokens
prompt_tokens bgResultpromptTokens completion_tokens bgResultoutputTokens total_tokens bgResultpromptTokens bgResultoutputTokens bgResultpromptCacheTokens prompt_tokens_details cached_tokens bgResultpromptCacheTokens
turn
bgResulttoolCallRoundId
bgResultsummary
usage
model bgResultmodel
summarizationMode bgResultsummarizationMode
numRounds bgResultnumRounds
numRoundsSinceLastSummarization bgResultnumRoundsSinceLastSummarization
durationMs bgResultdurationMs
source
outcome
contextLengthBefore
promptContext IBuildPromptContext trigger
turn promptContextconversation
turn
model endpointmodel
source
outcome
contextLengthBefore _lastRenderTokenCount
trigger
outcome
contextRatio
promptContext IBuildPromptContext
telemetryService
trigger
outcome
conversationId promptContextconversationsessionId
chatRequestId promptContextconversationid
model endpointmodel
contextRatio
GenAiMetricsotelService outcome
promptContext IBuildPromptContext
intent
intentpromptContext
endpoint IChatEndpoint promptContext IBuildPromptContext token vscodeCancellationToken
endpoint configurationService expService authenticationService request
request
requestsubAgentInvocationId
requestsubAgentName
endpoint configurationService expService authenticationService request
request
processor promptContext
processor
processorpromptContext token
override processResponse