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 { Raw } from '@vscode/prompt-tsx';
import type { OpenAI } from 'openai';
import { describe, expect, it } from 'vitest';
import { TokenizerType } from '../../../../util/common/tokenizer';
import { IInstantiationService } from '../../../../util/vs/platform/instantiation/common/instantiation';
import { ChatLocation } from '../../../chat/common/commonTypes';
import { ConfigKey, IConfigurationService } from '../../../configuration/common/configurationService';
ILogService
FinishedCallback IResponseDelta isOpenAIContextManagementResponse
IChatEndpoint ICreateEndpointBodyOptions
ChatCompletion FilterReason FinishedCompletionReason openAIContextManagementCompactionType OpenAIContextManagementResponse
IToolDeferralService
IChatWebSocketManager NullChatWebSocketManager
TelemetryData
SpyingTelemetryService
createFakeStreamResponse
createPlatformServices
ThinkingData
CacheType CustomDataPartMimeTypes
createResponsesRequestBody getResponsesApiCompactionThresholdFromBody OpenAIResponsesProcessor processResponseFromChatEndpoint responseApiInputToRawMessagesForLogging
testEndpoint IChatEndpoint
urlOrRequestMetadata
modelMaxPromptTokens
name
version
family
tokenizer TokenizerType
maxOutputTokens
model
modelProvider
supportsToolCalls
supportsVision
supportsPrediction
showInModelPicker
isFallback
createRequestOptions messages RawChatMessage useWebSocket ICreateEndpointBodyOptions
debugName
messages
requestId
postOptions
finishedCb
location
useWebSocket
createStatefulMarkerMessage modelId marker RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindOpaque
value
type CustomDataPartMimeTypesStatefulMarker
value
modelId
marker
createCompactionResponse id encrypted_content OpenAIContextManagementResponse
type openAIContextManagementCompactionType
id
encrypted_content
createCompactionAssistantMessage compaction OpenAIContextManagementResponse RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindOpaque
value
type CustomDataPartMimeTypesContextManagement
compaction
createThinkingAssistantMessage thinking ThinkingData RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindOpaque
value type CustomDataPartMimeTypesThinkingData thinking
type RawChatCompletionContentPartKindText text
OpenAIResponsesResponseInputItem
type
name
namespace
item OpenAIResponsesResponseInputItem name item ResponseFunctionCallInputItem
itemtype item itemname name
body OpenAIResponsesResponseCreateParams
model
input
result body
result
resultroleRawChatRoleUser
resultcontent
type RawChatCompletionContentPartKindText text
body OpenAIResponsesResponseCreateParams
model
input
instructions
result body
result
resultroleRawChatRoleSystem
resultcontent
type RawChatCompletionContentPartKindText text
resultroleRawChatRoleUser
body OpenAIResponsesResponseCreateParams
model
input
role
content type text
result body
result
resultroleRawChatRoleUser
resultcontent
type RawChatCompletionContentPartKindText text
body OpenAIResponsesResponseCreateParams
model
input
role
content
result body
result
resultroleRawChatRoleSystem
body OpenAIResponsesResponseCreateParams
model
input
type
call_id
name
arguments
result body
result
resultroleRawChatRoleAssistant
assistantMsg result RawAssistantChatMessage
assistantMsgtoolCalls
assistantMsgtoolCalls
id
type
name
arguments
body OpenAIResponsesResponseCreateParams
model
input
type
call_id
output
result body
result
resultroleRawChatRoleTool
toolMsg result RawToolChatMessage
toolMsgtoolCallId
toolMsgcontent
type RawChatCompletionContentPartKindText text
body OpenAIResponsesResponseCreateParams
model
instructions
input
role
content
type
call_id
name
arguments
type
call_id
output
role
content
result body
result
resultroleRawChatRoleSystem
resultroleRawChatRoleUser
resultroleRawChatRoleAssistant
result RawAssistantChatMessagetoolCalls
resultroleRawChatRoleTool
resultroleRawChatRoleUser
body OpenAIResponsesResponseCreateParams
model
input
result body
result
body OpenAIResponsesResponseCreateParams
model
input
type
call_id
name
arguments
type
call_id
name
arguments
result body
result
resultroleRawChatRoleAssistant
result RawAssistantChatMessagetoolCalls
body OpenAIResponsesResponseCreateParams
model
input
type
execution
call_id
status
arguments query
OpenAIResponsesResponseInputItem
type
execution
call_id
status
tools
type name description defer_loading parameters
type name description defer_loading parameters
OpenAIResponsesResponseInputItem
result body
result
role RawChatRoleAssistant
content
toolCalls
id
type
name
arguments
role RawChatRoleTool
content type RawChatCompletionContentPartKindText text
toolCallId
context_management
type openAIContextManagementCompactionType
compact_threshold
services
accessor services
instantiationService accessorIInstantiationService
messages id text encrypted
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinput type id summary encrypted_content
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
messages id text encrypted
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinputitem itemtype
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
endpoint testEndpoint family supportsVision
base64Data
messages RawChatMessage
role RawChatRoleUser
content
type RawChatCompletionContentPartKindDocument
documentData data base64Data mediaType
body instantiationServiceservicesAccessor servicesAccessor messages endpointmodel endpoint
bodyinput
type
role
content
type
filename
file_data
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
base64Data
messages RawChatMessage
role RawChatRoleAssistant
content
toolCalls id type name arguments
role RawChatRoleTool
toolCallId
content type RawChatCompletionContentPartKindDocument documentData data base64Data mediaType
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinput type call_id output
bodyinput
type
role
content
type text
type filename file_data
accessor
services
services
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
endpointWithoutCompaction testEndpoint family
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
webSocketBody instantiationServiceservicesAccessor servicesAccessor messages conversationId endpointWithoutCompactionmodel endpointWithoutCompaction
webSocketBodyprevious_response_id
webSocketBodyinput
webSocketBodyinput
role
content type text
accessor
services
services
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
latestCompaction
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
latestCompaction
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
webSocketBody instantiationServiceservicesAccessor servicesAccessor messages conversationId testEndpointmodel testEndpoint
webSocketBodyprevious_response_id
webSocketBodyinput
type openAIContextManagementCompactionType
id
encrypted_content
webSocketBodyinput
type
role
content type text
accessor
services
services
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages conversationId testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
bodyinput
role
content type text
bodyinput
role
content type text
accessor
services
services
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages conversationId modeChanged testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
bodyinput
role
content type text
bodyinput
role
content type text
accessor
services
services
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
websocketEndpoint testEndpoint family model
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
websocketEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
websocketEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId
websocketEndpointmodel
websocketEndpoint
bodyprevious_response_id
bodyinput
bodyinput
role
content type text
accessor
services
services
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
websocketEndpoint testEndpoint family model
wsManager
planMessages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
websocketEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
planBody instantiationServiceservicesAccessor
servicesAccessor
planMessages conversationId modeChanged
websocketEndpointmodel
websocketEndpoint
planBodyprevious_response_id
planBodyinput
planBodyinput
role
content type text
planBodyinput
role
content type text
wsManager
implementationMessages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
websocketEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
implementationBody instantiationServiceservicesAccessor
servicesAccessor
implementationMessages conversationId modeChanged
websocketEndpointmodel
websocketEndpoint
implementationBodyprevious_response_id
implementationBodyinput
implementationBodyinput
role
content type text
implementationBodyinput
role
content type text
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
latestCompaction
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
latestCompaction
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
type openAIContextManagementCompactionType
id
encrypted_content
bodyinput
type
role
content type text
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
completedCallId
missingCallIds
markerMessage RawAssistantChatMessage
testEndpointmodel RawAssistantChatMessage
toolCalls completedCallId missingCallIdsid
id
type
name arguments
messages RawChatMessage
markerMessage
role RawChatRoleTool
toolCallId completedCallId
content type RawChatCompletionContentPartKindText text
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
outputs bodyinput
item itemtype
item
output item OpenAIResponsesResponseInputItemFunctionCallOutput
callId outputcall_id output outputoutput
previousResponseId bodyprevious_response_id
outputs
previousResponseId
outputs
missingCallIdscallId callId output
callId completedCallId output
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages modeChanged testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
bodyinput
role
content type text
bodyinput
role
content type text
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
latestCompaction
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
latestCompaction
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinput
type openAIContextManagementCompactionType
id
encrypted_content
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleAssistant
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinput
role
content type text
type
bodyinputnot
bodyinputnot
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleAssistant
content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor servicesAccessor messages testEndpointmodel testEndpoint
bodyinput
accessor
services
services
servicesIToolDeferralService _serviceBrand name name name
accessor services
instantiationService accessorIInstantiationService
endpoint testEndpoint model family supportsToolSearch
tools
type name description parameters
type name description parameters
type name description parameters
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
role RawChatRoleAssistant
content
toolCalls id type name arguments
role RawChatRoleTool
content type RawChatCompletionContentPartKindText text
toolCallId
role RawChatRoleAssistant
content
toolCalls
id type name arguments
id type name arguments
body instantiationServiceservicesAccessor servicesAccessor messages location ChatLocationAgent requestOptions tools endpointmodel endpoint
input bodyinput OpenAIResponsesResponseInputItem
mcpCall inputitem item
mcpCall
mcpCallnamespace
readCall inputitem item
readCall
readCallnot
accessor
services
expectedPromptCacheBreakpoint mode
cacheBreakpointEndpoint IChatEndpoint testEndpoint family
cacheBreakpoint RawChatCompletionContentPart
type RawChatCompletionContentPartKindCacheBreakpoint
cacheType CacheType
messages RawChatMessage endpoint cacheBreakpointEndpoint enablePromptCacheBreakpoint
services
accessor services
accessorIConfigurationServiceConfigKeyResponsesApiPromptCacheBreakpointEnabled enablePromptCacheBreakpoint
instantiationService accessorIInstantiationService
body instantiationServiceservicesAccessor servicesAccessor messages endpointmodel endpoint
accessor
services
body
messages RawChatMessage
role RawChatRoleUser
content
type RawChatCompletionContentPartKindText text
body messages cacheBreakpointEndpoint
bodyprompt_cache_options mode
bodyinput content contentnot
messages RawChatMessage
role RawChatRoleUser
content
type RawChatCompletionContentPartKindText text
type RawChatCompletionContentPartKindText text
body messages
bodyprompt_cache_optionsexpectedPromptCacheBreakpoint
bodyinput
type
role
content
type text prompt_cache_breakpoint expectedPromptCacheBreakpoint
type text
bodyinput content contentnot
messages RawChatMessage
role RawChatRoleSystem
content
type RawChatCompletionContentPartKindText text
body messages
bodyinput
type
role
content type text prompt_cache_breakpoint expectedPromptCacheBreakpoint
messages RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindText text
body messages
bodyinput content contentnot
messages RawChatMessage
role RawChatRoleAssistant
content
toolCalls id type name arguments
role RawChatRoleTool
toolCallId
content
type RawChatCompletionContentPartKindText text
body messages
bodyinput
type
call_id
output
type
text
prompt_cache_breakpoint expectedPromptCacheBreakpoint
it
name endpoint cacheBreakpointEndpoint enabled
name endpoint testEndpoint enabled
endpoint enabled
messages RawChatMessage
role RawChatRoleAssistant
content
toolCalls id type name arguments
role RawChatRoleTool
toolCallId
content
type RawChatCompletionContentPartKindText text
body messages endpoint enabled
bodyinput
type
call_id
output
messages RawChatMessage
role RawChatRoleAssistant
content
type RawChatCompletionContentPartKindText text
toolCalls
id type name arguments
id type name arguments
body messages
input bodyinput OpenAIResponsesResponseInputItem
lastCall inputitem item
lastCallnot
firstCall inputitem item
firstCallnot
messageItem inputitem item type type
messageItem content contentnot
messages RawChatMessage
role RawChatRoleAssistant
content
toolCalls id type name arguments
role RawChatRoleTool
toolCallId
content
type RawChatCompletionContentPartKindText text
type RawChatCompletionContentPartKindImage imageUrl url detail
body messages
bodyinput
type
call_id
output
type text
type image_url prompt_cache_breakpoint expectedPromptCacheBreakpoint
bodyinput
messages RawChatMessage
role RawChatRoleUser
content
body messages
bodyinput
role
content
messages RawChatMessage
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
body messages
bodyinput content contentnot
messages RawChatMessage
role RawChatRoleUser
content
type RawChatCompletionContentPartKindText text
body messages testEndpoint
bodyprompt_cache_options
bodyinput content contentnot
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
type
content type text
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
telemetryData
_ stream
events telemetryServicetelemetryServiceEventse eeventName
eventslength
outputEvent eventseventslength
messagesJson outputEventproperties Record messagesJson
messagesJson
messagesJsonrole
messagesJsoncontent
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
streamedCompactions OpenAIContextManagementResponse
olderCompaction
newerCompaction
compactionAddedEvent
type
output_index
item olderCompaction
compactionEvent
type
output_index
item olderCompaction
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
olderCompaction
type
content type text
newerCompaction
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
_text _unused delta
deltacontextManagement deltacontextManagement
streamedCompactionsdeltacontextManagement
telemetryData
_ stream
streamedCompactionsitem itemid
body instantiationServiceservicesAccessor servicesAccessor
streamedCompactionsstreamedCompactionslength
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel testEndpoint
bodyinput
type openAIContextManagementCompactionType
id
encrypted_content
bodyinputnot
type openAIContextManagementCompactionType
id
encrypted_content
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
compactionEvent
type
output_index
item
type openAIContextManagementCompactionType
id
encrypted_content
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
telemetryData
_ stream
event telemetryServicetelemetryServiceEventse eeventName
event
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
streamedCompactions OpenAIContextManagementResponse
earlyCompaction
compactionAddedEvent
type
output_index
item earlyCompaction
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
type
content type text
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
_text _unused delta
deltacontextManagement deltacontextManagement
streamedCompactionsdeltacontextManagement
telemetryData
_ stream
streamedCompactionsitem itemid
body instantiationServiceservicesAccessor servicesAccessor
streamedCompactionsstreamedCompactionslength
role RawChatRoleUser
content type RawChatCompletionContentPartKindText text
testEndpointmodel testEndpoint
bodyinput
type openAIContextManagementCompactionType
id
encrypted_content
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
compactionEvent
type
output_index
item
type openAIContextManagementCompactionType
id
encrypted_content
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
telemetryData
_ stream
event telemetryServicetelemetryServiceEventse eeventName
event
eventproperties
outcome
model
eventmeasurements
compactThreshold
promptTokens
totalTokens
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
completedEvent
type
response
id
model
created_at
usage
input_tokens
output_tokens
total_tokens
input_tokens_details cached_tokens
output_tokens_details reasoning_tokens
output
type
content type text
response
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
telemetryData
_ stream
event telemetryServicetelemetryServiceEventse eeventName
event
eventproperties
outcome
model
eventmeasurements
compactThreshold
promptTokens
totalTokens
accessor
services
services
wsManager IChatWebSocketManager
_serviceBrand
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId summarizedAtRoundId
testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
accessor
services
services
wsManager
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId summarizedAtRoundId
testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
accessor
services
services
wsManager
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId
testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
accessor
services
services
wsManager
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId summarizedAtRoundId
testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
accessor
services
services
wsManager
wsManager
wsManager
servicesIChatWebSocketManager wsManager
accessor services
instantiationService accessorIInstantiationService
messages RawChatMessage
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
testEndpointmodel
role RawChatRoleUser content type RawChatCompletionContentPartKindText text
body instantiationServiceservicesAccessor
servicesAccessor
messages conversationId summarizedAtRoundId
testEndpointmodel testEndpoint
bodyprevious_response_id
bodyinput
accessor
services
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
accumulatedTexts
phases
commentaryText
finalText
events
type output_index item type role content phase status sequence_number
type output_index content_index item_id part type text annotations logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id text commentaryText logprobs sequence_number
type output_index content_index item_id part type text commentaryText annotations logprobs sequence_number
type output_index item type role content type text commentaryText annotations logprobs phase status sequence_number
type output_index item type role content phase status sequence_number
type output_index content_index item_id part type text annotations logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id delta logprobs sequence_number
type output_index content_index item_id text finalText logprobs sequence_number
type output_index content_index item_id part type text finalText annotations logprobs sequence_number
type output_index item type role content type text finalText annotations logprobs phase status sequence_number
type
response
id
model
created_at
usage input_tokens output_tokens total_tokens input_tokens_details cached_tokens output_tokens_details reasoning_tokens
output
type content type text commentaryText annotations logprobs phase role status
type content type text finalText annotations logprobs phase role status
sequence_number
sseBody eventse
response sseBody
telemetryData TelemetryData modelCallId
stream
instantiationService
telemetryService
logService
response
text _unused delta
accumulatedTextstext
deltaphase
phasesdeltaphase
telemetryData
_ stream
phases
finalAccumulatedText accumulatedTextsaccumulatedTextslength
finalAccumulatedText
commentaryText finalText
accessor
services
sseBody
services
accessor services
instantiationService accessorIInstantiationService
logService accessorILogService
telemetryService
telemetryData TelemetryData modelCallId
response sseBody
stream
instantiationService
telemetryService
logService
response
telemetryData
completions ChatCompletion
completion stream
completionscompletion
accessor
services
completions
incompleteEvent
type
response
id
model
created_at
incomplete_details reason
content_filters
source_type blocked
source_type
blocked
content_filter_raw
action label result
action label result
output
type content type text
completion
completion
completionfinishReasonFinishedCompletionReasonContentFilter
completionfilterReasonFilterReasonCopyright
incompleteEvent
type
response
id
model
created_at
incomplete_details reason
output
type content type text
completion
completion
completionfinishReasonFinishedCompletionReasonLength
completionfilterReason
failedEvent
type
response
id
model
created_at
error code message
output
completion
completion
completionfinishReasonFinishedCompletionReasonServerError
completionerror
code
message
metadata code responseId
failedEvent
type
response
id
model
created_at
status
error
output
completion
finishReason completionfinishReason
error completionerror
finishReason FinishedCompletionReasonServerError
error
code
message
metadata responseId
failedEvent
type
response
id
model
created_at
status
error code
output
completion
completionerror
code
message
metadata code responseId
incompleteEvent
type
response
id
model
created_at
status
error
output
completion
finishReason completionfinishReason
error completionerror
finishReason FinishedCompletionReasonServerError
error
code
message
metadata responseId
services
accessor services
processor accessorIInstantiationService
OpenAIResponsesProcessor
TelemetryData
deltas IResponseDelta
capture _text _index delta
deltasdelta
processor
type
item_id
output_index
summary_index
delta
sequence_number
capture
processor
type
item_id
output_index
summary_index
part type text
sequence_number
capture
processor
type
item_id
output_index
summary_index
delta
sequence_number
capture
deltasdelta deltathinking
id text
id metadata vscode_reasoning_summary_part_done
id text
accessor
services
errorEvent
type
code
message
param
completion
completion
completionfinishReasonFinishedCompletionReasonServerError
completionerror
code
message
metadata code