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 * as vscode from 'vscode';
import { IAuthenticationService } from '../../../platform/authentication/common/authentication';
import { CopilotToken } from '../../../platform/authentication/common/copilotToken';
import { IBlockedExtensionService } from '../../../platform/chat/common/blockedExtensionService';
import { ChatFetchResponseType, ChatLocation, getErrorDetailsFromChatFetchError } from '../../../platform/chat/common/commonTypes';
import { getTextPart } from '../../../platform/chat/common/globalStringUtils';
EmbeddingType getWellKnownEmbeddingTypeInfo IEmbeddingsComputer
defaultAutoModeTier selectableAutoModeTiers
ChatEndpointFamily IEndpointProvider
CustomDataPartMimeTypes
encodeStatefulMarker
AutoChatEndpoint
IAutomodeService
CopilotChatEndpoint
ExtensionLanguageModelRequestOptions
IEnvService isScenarioAutomation
IVSCodeExtensionContext
IOctoKitService
ILogService
FinishedCallback OpenAiFunctionTool OptionalChatRequestParams
IChatEndpoint IEndpoint
APIUsage
IOTelService
retrieveCapturingTokenByCorrelation runWithCapturingToken
IExperimentationService
ITelemetryService
isEncryptedThinkingDelta
BaseTokensPerCompletion
TelemetryCorrelationId
CancellationTokenSource
Emitter
Disposable MutableDisposable
isBoolean isDefined isNumber isString isStringArray
IInstantiationService
ChatLocation ApiChatLocation ExtensionMode
LMResponsePart
IExtensionContribution
PromptRenderer
isImageDataPart
LanguageModelAccessPrompt
formatPricingLabel formatTokenCount getAutoModelDescription getAutoModelDiscountLabel getModelCapabilitiesDescription resolveModelWarnings buildReasoningEffortSchemaProperty buildAutoModeTierSchemaProperty
endpoint IChatEndpoint value description isDefault
pricing endpointtokenPricing
pricingdefaultcontextMax
defaultMax pricingdefaultcontextMax
fullMax endpointmodelMaxPromptTokens
defaultMax fullMax
fullIsDefault pricinglongContext
value defaultMax description vscodel10n isDefault fullIsDefault
value fullMax
description vscodel10n
isDefault fullIsDefault
messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
options vscodeProvideLanguageModelChatResponseOptions
IAutoModeRoutingRequest
lastUserMessage messagesm mrole vscodeLanguageModelChatMessageRoleUser
lastUserMessage
content lastUserMessagecontent
parts content content
prompt content
content
parts
part part LanguageModelTextPart partvalue
prompt
references parts
part part vscodeLanguageModelDataPart part LanguageModelDataPart partmimeType
part value mimeType partmimeType
prompt sessionId references modelConfiguration optionsmodelConfiguration
endpoint IChatEndpoint autoTiersEnabled configurationSchema vscodeLanguageModelConfigurationSchema
endpoint
autoTiersEnabled
configurationSchema properties selectableAutoModeTiers defaultAutoModeTier
properties Record NonNullablevscodeLanguageModelConfigurationSchema
effortLevels endpointsupportsReasoningEffort
effortLevels effortLevelslength
propertiesreasoningEffort effortLevels endpointfamily
contextSizeOptions endpoint
contextSizeOptions
defaultOption contextSizeOptionso oisDefault
propertiescontextSize
type
title vscodel10n
contextSizeOptionso ovalue
enumItemLabels contextSizeOptionso ovalue
enumDescriptions contextSizeOptionso odescription
defaultOptionvalue
group
Objectpropertieslength
configurationSchema properties
dictationCleanupAliases ReadonlySet
utilityAliasFamilies ChatEndpointFamily
family ChatEndpointFamily
endpoint IChatEndpoint
models vscodeLanguageModelChatInformation
baseCount
requiresAuthorization vscodeLanguageModelChatInformation
info vscodeLanguageModelChatInformation synthesized
base endpoint modelsm mid endpointmodel
base
synthesized
info
base
id family
family
isUserSelectable
isDefault
synthesized
info
id family
name endpointname
family
version endpointversion
maxInputTokens endpointmodelMaxPromptTokens baseCount BaseTokensPerCompletion
maxOutputTokens endpointmaxOutputTokens
requiresAuthorization
isUserSelectable
isDefault
capabilities
toolCalling endpointsupportsToolCalls
imageInput endpointsupportsVision
id
activationBlocker
_onDidChange
_currentModels vscodeLanguageModelChatInformation
_chatEndpoints IChatEndpoint
_utilityAliasEndpoints Map IChatEndpoint
_resolvedUtilityEndpoints
_utilityOverridesRefresh
_lmWrapper CopilotLanguageModelWrapper
_promptBaseCountCache LanguageModelAccessPromptBaseCountCache
_logService ILogService
_instantiationService IInstantiationService
_authenticationService IAuthenticationService
_endpointProvider IEndpointProvider
_embeddingsComputer IEmbeddingsComputer
_vsCodeExtensionContext IVSCodeExtensionContext
_automodeService IAutomodeService
_expService IExperimentationService
_lmWrapper _instantiationServiceCopilotLanguageModelWrapper
_promptBaseCountCache _instantiationServiceLanguageModelAccessPromptBaseCountCache
_vsCodeExtensionContextextensionMode ExtensionModeTest isScenarioAutomation
_logService
activationBlocker
override
_utilityOverridesRefreshvalue
vscodeLanguageModelChatInformation
_currentModels
provider vscodeLanguageModelChatProvider
onDidChangeLanguageModelChatInformation _onDidChangeevent
provideLanguageModelChatInformation
provideLanguageModelChatResponse
provideTokenCount
vscodelm provider
_authenticationService
_authenticationServiceanyGitHubSession
_currentModels
_onDidChange
_endpointProvider
_resolvedUtilityEndpoints
_onDidChange
_automodeService
_onDidChange
err
_logService
options silent token vscodeCancellationToken vscodeLanguageModelChatInformation
session
session
_currentModels
models vscodeLanguageModelChatInformation
allEndpoints _endpointProvider
allEndpointslength
_currentModels
chatEndpoints allEndpointse eshowInModelPicker emodel
autoEndpoint _automodeServiceallEndpoints
chatEndpointsautoEndpoint
defaultChatEndpoint IChatEndpoint
defaultExpModel _expService
_authenticationServicecopilotTokenisNoAuthUser defaultExpModel defaultExpModel AutoChatEndpointpseudoModelId
defaultChatEndpoint autoEndpoint
defaultChatEndpoint chatEndpointse emodel defaultExpModel autoEndpoint
seenFamilies
autoTiersEnabled _automodeService
endpoint chatEndpoints
seenFamiliesendpointfamily endpointshowInModelPicker
seenFamiliesendpointfamily
sanitizedModelName endpointname
warnings endpoint endpoint
modelTooltip
warningsrowWarning
modelTooltip warningsrowWarning
endpoint
modelTooltip endpointdiscountRange
modelTooltip endpoint
baseCount _promptBaseCountCacheendpoint
multiplier endpointmultiplier
modelDetail
endpoint
modelDetail endpointdiscountRange
endpointcustomModel
customModel endpointcustomModel
modelDetail customModelowner_name
modelTooltip vscodel10n sanitizedModelName customModelowner_name customModelkey_name
session _authenticationServiceanyGitHubSession
isDefault endpoint defaultChatEndpoint
model vscodeLanguageModelChatInformation
id endpoint AutoChatEndpointpseudoModelId endpointmodel
name endpoint sanitizedModelName
family endpointfamily
tooltip modelTooltip
pricing endpoint multiplier endpointtokenPricing endpointtokenPricing
inputCost endpoint endpointtokenPricingdefaultinputPrice
outputCost endpoint endpointtokenPricingdefaultoutputPrice
cacheCost endpoint endpointtokenPricingdefaultcacheReadTokenPrice
cacheWriteCost endpoint endpointtokenPricingdefaultcacheWriteTokenPrice
longContextInputCost endpoint endpointtokenPricinglongContextinputPrice
longContextOutputCost endpoint endpointtokenPricinglongContextoutputPrice
longContextCacheCost endpoint endpointtokenPricinglongContextcacheReadTokenPrice
longContextCacheWriteCost endpoint endpointtokenPricinglongContextcacheWriteTokenPrice
multiplierNumeric endpoint endpointmultiplier
priceCategory endpoint endpointpriceCategory
category endpoint endpointmodelPickerCategory
detail modelDetail
statusIcon warningsrowWarning
version endpointversion
maxInputTokens endpointmodelMaxPromptTokens baseCount BaseTokensPerCompletion
maxOutputTokens endpointmaxOutputTokens
requiresAuthorization session label sessionaccountlabel
isDefault
ApiChatLocationPanel isDefault
ApiChatLocationTerminal isDefault
ApiChatLocationNotebook isDefault
ApiChatLocationEditor endpoint
isUserSelectable endpointshowInModelPicker
warningText warningstexts
infoText endpoint endpointinfoText
promo endpoint endpointpromo
capabilities
imageInput endpoint endpointsupportsVision
toolCalling endpointsupportsToolCalls
endpoint autoTiersEnabled
modelsmodel
_currentModels models
_chatEndpoints chatEndpoints
models
models
models vscodeLanguageModelChatInformation
_utilityAliasEndpoints
session _authenticationServiceanyGitHubSession
requiresAuthorization session label sessionaccountlabel
family utilityAliasFamilies
cached _resolvedUtilityEndpointsfamily
cached
endpoint cachedendpoint
_utilityAliasEndpointsfamily endpoint
aliasInfo family endpoint models cachedbaseCount requiresAuthorization
_logService
modelsaliasInfoinfo
err
_logService
err
_logService
_utilityOverridesRefreshvalue
cancellationSource
_utilityOverridesRefreshvalue cancellationSource
token cancellationSourcetoken
didChange
family utilityAliasFamilies
resolved IChatEndpoint
resolved _endpointProviderfamily
err
tokenisCancellationRequested
_logService
tokenisCancellationRequested
resolved
published _utilityAliasEndpointsfamily
published publishedmodel resolvedmodel publishedmodelProvider resolvedmodelProvider
baseCount
baseCount _promptBaseCountCacheresolved
err
tokenisCancellationRequested
_logService
tokenisCancellationRequested
_resolvedUtilityEndpointsfamily endpoint resolved baseCount
didChange
didChange
_onDidChange
model vscodeLanguageModelChatInformation autoRoutingContext IAutoModeRoutingRequest
modelid AutoChatEndpointpseudoModelId
allEndpoints _endpointProvider
allEndpointslength
_automodeServiceautoRoutingContext allEndpoints
aliasEndpoint _utilityAliasEndpointsmodelid
aliasEndpoint
aliasEndpoint
_chatEndpointse emodel modelid
model vscodeLanguageModelChatInformation
messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
options vscodeProvideLanguageModelChatResponseOptions
progress vscodeProgressvscodeLanguageModelResponsePart2
token vscodeCancellationToken
dictationCleanupAliasesmodelid optionsrequestInitiator
endpoint model messages options
endpoint
contextSize optionsmodelConfigurationcontextSize
contextSize contextSize endpointmodelMaxPromptTokens
endpoint endpointcontextSize
_lmWrapperendpoint messages
options
modelOptions optionsmodelOptions
optionsrequestInitiator progress token
model vscodeLanguageModelChatInformation
text vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
token vscodeCancellationToken
endpoint IChatEndpoint
modelid AutoChatEndpointpseudoModelId
allEndpoints _endpointProvider
endpoint allEndpointslength _automodeServiceallEndpoints
endpoint model
endpoint
_lmWrapperendpoint text
dispo
dispo
embeddingsComputer _embeddingsComputer
embeddingType EmbeddingTypetext3small_512
model embeddingTypemodel
model
dispo
dispovalue vscodelm EmbeddingsProvider
input token vscodeCancellationToken vscodeEmbedding
result embeddingsComputerembeddingType input token
resultvaluesembedding values embeddingvalue
_authenticationService
CopilotToken
_authenticationServicehasCopilotTokenSource
_logService
copilotToken _authenticationService
copilotToken
e
_logService
_logServicee
_extensionContext IVSCodeExtensionContext
_instantiationService IInstantiationService
_envService IEnvService
endpoint IChatEndpoint
key
cached _extensionContextglobalStatekey
cached cachedextensionVersion _envService cachedbaseCount
cachedbaseCount
baseCount endpoint
_extensionContextglobalStatekey extensionVersion _envService baseCount
err
baseCount
endpoint IChatEndpoint
baseCount PromptRenderer_instantiationService endpoint LanguageModelAccessPrompt noSafety messages
baseCount
_telemetryService ITelemetryService
_blockedExtensionService IBlockedExtensionService
_instantiationService IInstantiationService
_logService ILogService
_authenticationService IAuthenticationService
_envService IEnvService
_otelService IOTelService
_octoKitService IOctoKitService
_endpoint IChatEndpoint _messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2 _options vscodeProvideLanguageModelChatResponseOptions extensionId callback FinishedCallback token vscodeCancellationToken APIUsage
extensionId
extensionId
extensionInfo extensionId packageJSON version _envServicevscodeVersion vscodeextensionsextensionId
extensionInfo extensionInfopackageJSONversion
extensionVersion extensionInfopackageJSONversion
blockedExtensionMessage vscodel10n
extensionId _blockedExtensionServiceextensionId
vscodeLanguageModelErrorblockedExtensionMessage
toolTokenCount _optionstools _endpoint _optionstools
baseCount PromptRenderer_instantiationService _endpoint LanguageModelAccessPrompt noSafety messages
tokenLimit _endpointmodelMaxPromptTokens baseCount BaseTokensPerCompletion toolTokenCount
_messages
_optionstools
_optionstools
messages tokenCount PromptRenderer_instantiationService
_endpoint
modelMaxPromptTokens tokenLimit
LanguageModelAccessPrompt noSafety extensionId _envServiceextensionId messages _messages
_telemetryService
extensionId
extensionVersion
model _endpointmodel
tokenCount
tokenLimit
messageslength tokenCount tokenLimit
_optionstools _optionstoolslength _endpointsupportsToolSearch
endpoint IChatEndpoint _endpoint
target prop receiver
prop
extraHeaders targetgetExtraHeaders
extensionId
extraHeaders
extraHeaders
prop
targettarget
Reflecttarget prop receiver
internalModelOptions _options modelOptions ExtensionLanguageModelRequestOptions modelOptions
options OptionalChatRequestParams LanguageModelOptionsDefault_optionsmodelOptions
telemetryProperties messageSource
optionstools _optionstoolstool OpenAiFunctionTool
type
name toolname
description tooldescription
parameters toolinputSchema ObjecttoolinputSchemalength toolinputSchema
_optionstoolMode vscodeLanguageModelChatToolModeRequired _optionstoolslength _optionstoolslength
optionstool_choice _optionstoolMode vscodeLanguageModelChatToolModeRequired _optionstoolslength
type name _optionstoolsname
correlationId internalModelOptions_capturingTokenCorrelationId
capturingToken correlationId correlationId
parentTraceContext internalModelOptions_otelTraceContext
endpoint
debugName
messages
finishedCb callback
location ChatLocationOther
source extensionId
requestOptions options
userInitiatedRequest extensionId
conversationId internalModelOptions_conversationId
telemetryProperties
modelCapabilities
enableThinking internalModelOptions_enableThinking
reasoningEffort _optionsmodelConfigurationreasoningEffort _optionsmodelConfigurationreasoningEffort
token
wrappedRequest parentTraceContext
_otelServiceparentTraceContext
capturingToken
capturingToken makeRequest
capturingToken
capturingToken makeRequest
result
resulttype ChatFetchResponseTypeLength
_logService
resulttype ChatFetchResponseTypeSuccess
resulttype ChatFetchResponseTypeExtensionBlocked
extensionId
_blockedExtensionServiceextensionId resultretryAfter
vscodeLanguageModelErrorblockedExtensionMessage
resulttype ChatFetchResponseTypeQuotaExceeded
outageStatus _octoKitService
details result _authenticationServicecopilotTokencopilotPlan outageStatus _authenticationServicecopilotTokentokenBasedBilling _authenticationServicecopilotTokenquotaInfoquota_reset_date
err detailsmessage
errname
err
resulttype ChatFetchResponseTypeRateLimited
err resultreason
errname
err
resultreason
_telemetryService
extensionId
extensionVersion
requestid resultrequestId
query messagesmessageslength content
model _endpointmodel
tokenCount
tokenLimit
resultusage
endpoint IChatEndpoint messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2 options vscodeProvideLanguageModelChatResponseOptions extensionId progress vscodeProgressLMResponsePart token vscodeCancellationToken
thinkingActive
finishCallback FinishedCallback _text index delta
deltathinking
deltathinking
optionsincludeEncryptedThinking
progress
deltathinkingtext
deltathinkingid
encrypted_content deltathinkingencrypted
text deltathinkingtext
progress text deltathinkingid deltathinkingmetadata
thinkingActive
thinkingActive
progress vscode_reasoning_done
thinkingActive
deltatext
progress deltatext
deltacopilotToolCalls
call deltacopilotToolCalls
parameters object
parameters callarguments
err
_logServiceerr
parameters
progress callid callname parameters
deltastatefulMarker
progress
endpointmodel deltastatefulMarker CustomDataPartMimeTypesStatefulMarker
usage endpoint messages options extensionId finishCallback token
usage
progress usage CustomDataPartMimeTypesUsage
endpoint IEndpoint message vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
message
endpointmessage
raw RawChatMessage
content messagecontentpart RawChatCompletionContentPart
part LanguageModelTextPart
type RawChatCompletionContentPartKindText text partvalue
part LanguageModelDataPart partmimeType
type RawChatCompletionContentPartKindDocument documentData data Bufferpartdata mediaType partmimeType
part
type RawChatCompletionContentPartKindImage imageUrl url
isDefined
messagerole
vscodeLanguageModelChatMessageRoleUser
raw role RawChatRoleUser content name messagename
vscodeLanguageModelChatMessageRoleSystem
raw role RawChatRoleAssistant content name messagename
vscodeLanguageModelChatMessageRoleAssistant
raw
role RawChatRoleAssistant
content
name messagename
toolCalls messagecontent
part part LanguageModelToolCallPart
part part vscodeLanguageModelToolCallPart
part name partname arguments partinput id partcallId type
endpointraw
tools vscodeLanguageModelChatTool
tool tools
toolname
endpoint IChatEndpoint tools vscodeLanguageModelChatTool
endpointtools
_messages vscodeLanguageModelChatMessage vscodeLanguageModelChatMessage2
lastMessage _messages
lastMessage
_messagesmessage i
messagerole vscodeLanguageModelChatMessageRoleAssistant
filteredContent messagecontentpart part LanguageModelDataPart
toolCallIds filteredContent
part part LanguageModelToolCallPart
part partcallId
nextMessageIdx i
errMsg
toolCallIdssize
nextMessage _messagesnextMessageIdx
nextMessage nextMessagerole vscodeLanguageModelChatMessageRoleUser
errMsg
nextMessagecontentpart
part LanguageModelToolResultPart2 part LanguageModelToolResultPart
errMsg
toolCallIdspartcallId
checks value value
value checkscheck value
_defaultDesc Record value
stop isStringArray isString
temperature isNumber
max_tokens isNumber
frequency_penalty isNumber
presence_penalty isNumber
Default _defaultDesc
_description Record value
options name Record
result Record
key _description
isValid _descriptionkey
value optionskey
value value value
value value value
resultkey value
result