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 { describe, expect, test } from 'vitest';
import type * as vscode from 'vscode';
import { IChatHookService, type IPreToolUseHookResult } from '../../../../../platform/chat/common/chatHookService';
import { ConfigKey, IConfigurationService } from '../../../../../platform/configuration/common/configurationService';
import { IEndpointProvider } from '../../../../../platform/endpoint/common/endpointProvider';
import type { IChatEndpoint
DeferredPromise
CancellationToken
Event
constObservable
IInstantiationService
ITelemetryService
SpyingTelemetryService
LanguageModelDataPart LanguageModelTextPart LanguageModelToolResult
ChatVariablesCollection
Conversation
IBuildPromptContext IToolCallRound
createExtensionUnitTestingServices
ToolName
IToolsService
renderPromptElement
ChatToolCalls
_serviceBrand
lastPreToolUseCall
toolName
toolInput
toolCallId
hooks vscodeChatRequestHooks
sessionId
token vscodeCancellationToken
postToolUseCalled
hookResult IPreToolUseHookResult
toolName
toolInput
toolCallId
hooks vscodeChatRequestHooks
sessionId
token vscodeCancellationToken
IPreToolUseHookResult
lastPreToolUseCall toolName toolInput toolCallId hooks sessionId token
hookResult
postToolUseCalled
_serviceBrand
onWillInvokeTool EventNone
tools ReadonlyArrayvscodeLanguageModelToolInformation
copilotTools
modelSpecificTools
lastInvocation
name
options vscodeLanguageModelToolInvocationOptions
endpointModel
token vscodeCancellationToken
lastToolResult vscodeLanguageModelToolResult2
tool vscodeLanguageModelToolInformation
tools tool
ThenablevscodeLanguageModelToolResult2
name
options vscodeLanguageModelToolInvocationOptions
endpoint model
token vscodeCancellationToken
vscodeLanguageModelToolResult2
lastInvocation name options endpointModel endpointmodel token
result
lastToolResult result
result
name vscodeLanguageModelToolInformation
toolst tname name
_name input IToolValidationResult
inputObj input
vscodeLanguageModelToolInformation
_serviceBrand
onWillInvokeTool EventNone
tools ReadonlyArrayvscodeLanguageModelToolInformation
copilotTools
modelSpecificTools
startedCallIds
pendingCalls
startedWaiters expectedCount deferred DeferredPromise
tool vscodeLanguageModelToolInformation
tools tool
ThenablevscodeLanguageModelToolResult2
_name
options vscodeLanguageModelToolInvocationOptions
_endpoint model
_token vscodeCancellationToken
vscodeLanguageModelToolResult2
callId optionschatStreamToolCallId
startedCallIdscallId
deferred
pendingCallscallId deferred
deferredp
expectedCount
startedCallIdslength expectedCount
deferred
startedWaiters expectedCount deferred
deferredp
index startedWaiterslength index index
waiter startedWaitersindex
startedCallIdslength waiterexpectedCount
waiterdeferred
startedWaitersindex
callId value
pending pendingCallscallId
pending
pending value
pendingCallscallId
name vscodeLanguageModelToolInformation
toolst tname name
_name input IToolValidationResult
inputObj input
vscodeLanguageModelToolInformation
toolName ToolNameCoreRunSubagent
firstCallId
secondCallId
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
toolsService toolInfo
testingServiceCollectionIToolsService toolsService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
round IToolCallRound
id
response
toolInputRetry
toolCalls
name toolName arguments query id firstCallId
name toolName arguments query id secondCallId
promptContext IBuildPromptContext
query
history
chatVariables
conversation sessionId Conversation
request vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
renderPromise instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
toolsService
toolsServicestartedCallIdsfirstCallId secondCallId
toolsServicefirstCallId
toolsServicesecondCallId
renderPromise
toolName
toolArgs x
toolCallId
hookContext
updatedInput x safe
hooks vscodeChatRequestHooks PreToolUse
hookResult IPreToolUseHookResult
permissionDecision
permissionDecisionReason
updatedInput
additionalContext hookContext
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
toolsService toolInfo
hookService hookResult
testingServiceCollectionIToolsService toolsService
testingServiceCollectionIChatHookService hookService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
round IToolCallRound
id
response
toolInputRetry
toolCalls name toolName arguments toolArgs id toolCallId
conversation sessionId Conversation
promptContext IBuildPromptContext
query
history
chatVariables
conversation
request hooks vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
subAgentInvocationId
instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
hookServicelastPreToolUseCall
toolName
toolInput x
toolCallId
hooks
sessionId
token CancellationTokenNone
toolsServicelastInvocationnametoolName
toolsServicelastInvocationoptionsinputupdatedInput
toolsServicelastInvocationoptionssubAgentInvocationId
toolsServicelastInvocationoptionspreToolUseResult
permissionDecision
permissionDecisionReason
updatedInput
contentText toolsServicelastToolResultcontent
p p LanguageModelTextPart p
p pvalue
contentText
contentTexthookContext
toolName
toolArgs cmd
toolCallId
denyContext
hookResult IPreToolUseHookResult
permissionDecision
permissionDecisionReason
additionalContext denyContext
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
toolsService toolInfo
hookService hookResult
testingServiceCollectionIToolsService toolsService
testingServiceCollectionIChatHookService hookService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
round IToolCallRound
id
response
toolInputRetry
toolCalls name toolName arguments toolArgs id toolCallId
hooks vscodeChatRequestHooks PreToolUse
promptContext IBuildPromptContext
query
history
chatVariables
conversation sessionId Conversation
request hooks vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
hookServicelastPreToolUseCall
hookServicepostToolUseCalled
toolsServicelastInvocation
toolsServicelastInvocationname
toolsServicelastInvocationoptionspreToolUseResult
permissionDecision
permissionDecisionReason
updatedInput
contentText toolsServicelastToolResultcontent
p p LanguageModelTextPart p
p pvalue
contentText
contentTextdenyContext
contentTextnot
toolName
completedCallId
missingCallIds
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
testingServiceCollectionIToolsService toolInfo
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
responsesEndpoint Objectendpoint IChatEndpoint
ObjectresponsesEndpoint value
round IToolCallRound
id
response
toolInputRetry
statefulMarker
toolCalls completedCallId missingCallIdsid name toolName arguments id
toolCallResults Record vscodeLanguageModelToolResult
completedCallId
promptContext IBuildPromptContext
query
history
chatVariables
conversation sessionId Conversation
request vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
messages instantiationService responsesEndpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
isHistorical
assistantMessage messagesmessage message RawAssistantChatMessage messagerole RawChatRoleAssistant
toolMessages messagesmessage message RawToolChatMessage messagerole RawChatRoleTool
toolOutputs toolMessagesmessage
id messagetoolCallId
text messagecontent
part part RawChatCompletionContentPartText parttype RawChatCompletionContentPartKindText
part parttext
messages nonResponsesMessages instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
isHistorical
nonResponsesAssistantMessage nonResponsesMessagesmessage message RawAssistantChatMessage messagerole RawChatRoleAssistant
messages markerlessResponsesMessages instantiationService responsesEndpoint ChatToolCalls
promptContext
toolCallRounds round statefulMarker
toolCallResults
isHistorical
markerlessResponsesAssistantMessage markerlessResponsesMessagesmessage message RawAssistantChatMessage messagerole RawChatRoleAssistant
assistantToolCallIds assistantMessagetoolCallscall callid
toolOutputs
nonResponsesToolCallIds nonResponsesAssistantMessagetoolCallscall callid
markerlessResponsesToolCallIds markerlessResponsesAssistantMessagetoolCallscall callid
assistantToolCallIds completedCallId missingCallIds
toolOutputs
id completedCallId text
missingCallIdsid
id
text
status
message
nonResponsesToolCallIds completedCallId
markerlessResponsesToolCallIds completedCallId
toolName
toolCallId
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
toolsService toolInfo
testingServiceCollectionIToolsService toolsService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
imageData
toolCallResults Record vscodeLanguageModelToolResult
toolCallId
LanguageModelDataPartimageData
round IToolCallRound
id
response
toolInputRetry
toolCalls name toolName arguments id toolCallId
promptContext IBuildPromptContext
query
history
chatVariables
conversation sessionId Conversation
request vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
messages instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
isHistorical
serialized messages
serialized
serialized
serializednot
toolName
firstCallId
secondCallId
toolInfo vscodeLanguageModelToolInformation
name toolName
description
source
inputSchema
tags
testingServiceCollection
toolsService toolInfo
testingServiceCollectionIToolsService toolsService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
configService accessorIConfigurationService
configServiceConfigKeyEnableChatImageUpload
bigImage
toolCallResults Record vscodeLanguageModelToolResult
firstCallId
LanguageModelDataPartbigImage
secondCallId
LanguageModelDataPartbigImage
round IToolCallRound
id
response
toolInputRetry
toolCalls
name toolName arguments id firstCallId
name toolName arguments id secondCallId
promptContext IBuildPromptContext
query
history
chatVariables
conversation sessionId Conversation
request vscodeChatRequest
tools
toolReferences
toolInvocationToken vscodeChatParticipantToolToken
availableTools toolInfo
messages instantiationService endpoint ChatToolCalls
promptContext
toolCallRounds round
toolCallResults
serialized messages
serialized
serializednot
testingServiceCollection
spyingTelemetryService
testingServiceCollectionITelemetryService spyingTelemetryService
accessor testingServiceCollection
instantiationService accessorIInstantiationService
endpointProvider accessorIEndpointProvider
endpoint endpointProvider
telemetryService accessorITelemetryService
configService accessorIConfigurationService
configServiceConfigKeyEnableChatImageUpload
sendInvokedToolTelemetry
imageData
toolResult
LanguageModelDataPartimageData
instantiationService
endpoint IChatEndpoint
telemetryService
toolResult
conversationId requestId
not
resolve resolve
telemetryEvent spyingTelemetryServicetelemetryServiceEventsevent eventeventName
telemetryEvent
properties
conversationId
requestId
model endpointmodel
toolName
measurements
tokenCount expectNumber