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 type { CancellationToken } from 'vscode';
import { ILogService, LogLevel } from '../../log/common/logService';
import { ITelemetryService } from '../../telemetry/common/telemetry';
import { TelemetryData } from '../../telemetry/common/telemetryData';
import { RawThinkingDelta, ThinkingDelta } from '../../thinking/common/thinking';
import { extractThinkingDeltaFromChoice, } from '../../thinking/common/thinkingUtils';
import { FinishedCallback, getRequestId, ICodeVulnerabilityAnnotation, ICopilotBeginToolCall ICopilotConfirmation ICopilotError ICopilotFunctionCall ICopilotReference ICopilotToolCall ICopilotToolCallStreamUpdate IIPCodeCitation isCodeCitationAnnotation isCopilotAnnotation RequestId
DestroyableStream Response
APIErrorResponse APIJsonData APIUsage ChoiceLogProbs FilterReason FinishedCompletionReason isApiUsage IToolCall
model
_text
_text
_newText
choice ExtendedChoiceJSON
choicetext
str APIJsonDataStreamingchoicetext
_textstr
_newTextstr
choicedeltacontent
str APIJsonDataStreamingchoicedeltacontent
_textstr
_newTextstr
choicedeltafunction_call choicedeltafunction_callname choicedeltafunction_callarguments
str APIJsonDataStreamingchoicedeltafunction_callarguments
_textstr
_newTextstr
delta _newText
_newText
delta
text
text
text _text
newText _newText
id
name
arguments
toolCall IToolCall
argumentsChanged
toolCallid
id toolCallid
toolCallfunctionname
name toolCallfunctionname
toolCallfunctionarguments
arguments toolCallfunctionarguments
argumentsChanged
argumentsChanged
toolCalls StreamingToolCall
ICopilotToolCall
toolCallscall
name callname
arguments callarguments
id callid
toolCallslength
choice ExtendedChoiceJSON ICopilotToolCallStreamUpdate
updates ICopilotToolCallStreamUpdate
choicedeltatool_callstoolCall
currentCall StreamingToolCall
toolCallid
currentCall toolCallscall callid toolCallid
currentCall
currentCall toolCalls
currentCall toolCallid currentCallid currentCallid toolCallid
currentCall
toolCallscurrentCall
argumentsChanged currentCalltoolCall
argumentsChanged currentCallname
updates
name currentCallname
arguments currentCallarguments
id currentCallid
updates
chunk
dataLines chunk
newExtra dataLines
dataLinesline line newExtra
solution APIJsonDataStreaming
finishOffset
reason FinishedCompletionReason
filterReason FilterReason
error APIErrorResponse
usage APIUsage
requestId RequestId
index
index
text
delta content
finish_reason FinishedCompletionReasonStop FinishedCompletionReasonLength FinishedCompletionReasonFunctionCall FinishedCompletionReasonContentFilter FinishedCompletionReasonServerError FinishedCompletionReasonToolCalls
logprobs ChoiceLogProbs
content_filter_results RecordExcludeFilterReason FilterReasonCopyright filtered severity
message RawThinkingDelta
delta
content
copilot_annotations
CodeVulnerability ICodeVulnerabilityAnnotation
IPCodeCitations IIPCodeCitation
TextCopyright
Sexual
SexualPattern
Violence
HateSpeech
HateSpeechPattern
SelfHarm
PromptPromBlockList
function_call name arguments
tool_calls IToolCall
role
name
RawThinkingDelta
requestId RequestId responseheaders
solutions Record APIJsonDataStreaming
completedFunctionCallIdxs Map
functionCalls Record APIJsonDataStreaming
toolCalls
functionCallName
logService ILogService
telemetryService ITelemetryService
expectedNumChoices
response Response
body DestroyableStream
cancellationToken CancellationToken
logService ILogService
telemetryService ITelemetryService
expectedNumChoices
response Response
cancellationToken CancellationToken
body responsebody
logService
telemetryService
expectedNumChoices
response
body
cancellationToken
async finishedCb AsyncIterableFinishedCompletion
expectedNumChoices
usageOrCompletions finishedCb
usageOrCompletions
usageOrCompletions
completion FinishedCompletion
usage APIUsage
usageOrCompletions finishedCb
usageOrCompletions
usage usageOrCompletions
completion usageOrCompletions
completion
completionusage usage
completion
logService
async finishedCb FinishedCallback AsyncIterableFinishedCompletion APIUsage
extraData
hadEarlyFinishedSolution
allowCompletingSolution
thinkingFound
chunk body
dataLines remainder extraData chunk
extraData remainder
dataLine dataLines
dataLine
lineWithoutData dataLinelength
lineWithoutData
json
choices ExtendedChoiceJSON
model
error APIErrorResponse
copilot_references
copilot_confirmation
copilot_errors
usage APIUsage
copilot_usage total_nano_aiu
json lineWithoutData
e
logService
telemetryService dataLine
jsonusage
jsoncopilot_usage jsoncopilot_usagetotal_nano_aiu
jsonusagecopilot_usage jsoncopilot_usage
jsonusage
jsoncopilot_confirmation jsoncopilot_confirmation
text copilotConfirmation jsoncopilot_confirmation
jsonchoices
jsoncopilot_references jsoncopilot_confirmation
jsonerror
logService
telemetryService jsonerrormessage
index
finishOffset
solution jsonmodel
reason FinishedCompletionReasonServerError
error jsonerror
requestId requestId
logService
telemetryService
jsoncopilot_errors
text copilotErrors jsoncopilot_errors
jsoncopilot_references
text copilotReferences jsoncopilot_references
requestIdcreated
requestId responseheaders json
requestIdcreated jsonchoiceslength
requestIdcreated MathDate
i i jsonchoiceslength i
choice jsonchoicesi
choice
thinkingDelta choice
thinkingFound thinkingDeltatext thinkingDeltaid
choiceindex solutions
solutionschoiceindex jsonmodel
solution solutionschoiceindex
solution
thinkingDelta
choiceindex text thinking thinkingDelta
finishOffset
delta vulnAnnotations ICodeVulnerabilityAnnotation ipCodeCitations IIPCodeCitation references ICopilotReference toolCalls ICopilotToolCall toolCallStreamUpdates ICopilotToolCallStreamUpdate functionCalls ICopilotFunctionCall errors ICopilotError beginToolCalls ICopilotBeginToolCall thinking ThinkingDelta
deltavulnAnnotations deltavulnAnnotations deltavulnAnnotationsa a
deltavulnAnnotations
deltaipCodeCitations deltaipCodeCitations deltaipCodeCitationsisCodeCitationAnnotation
deltaipCodeCitations
finishOffset solutiontext choiceindex
text solution
logprobs choicelogprobs
codeVulnAnnotations deltavulnAnnotations
ipCitations deltaipCodeCitations
copilotReferences deltareferences
copilotToolCalls deltatoolCalls
copilotToolCallStreamUpdates deltatoolCallStreamUpdates
_deprecatedCopilotFunctionCalls deltafunctionCalls
beginToolCalls deltabeginToolCalls
copilotErrors deltaerrors
thinking thinkingDelta deltathinking
finishOffset
hadEarlyFinishedSolution
handled
choicedeltatool_callslength
hadExistingToolCalls toolCalls
hadExistingToolCalls
firstToolCall choicedeltatool_calls
firstToolName firstToolCallfunctionname
firstToolName
solutiontextlength
solution index delta content
beginToolCalls name firstToolName id firstToolCallid
toolCallStreamUpdates toolCallschoice
toolCallStreamUpdateslength
toolCallStreamUpdates
choicedeltacopilot_annotationsCodeVulnerability choicedeltacopilot_annotationsIPCodeCitations
hadEarlyFinishedSolution
solutionchoice
vulnAnnotations choicedeltacopilot_annotationsCodeVulnerability ipCodeCitations choicedeltacopilot_annotationsIPCodeCitations
choicedeltarole
choicedeltacontent
references choicedeltacontent
references
references references
ex
logService
choicedeltafunction_call choicedeltafunction_callname choicedeltafunction_callarguments
allowCompletingSolution
functionCallName choicedeltafunction_callname
functionCallsfunctionCallName jsonmodel
functionCall functionCallsfunctionCallName
functionCallchoice
choicefinish_reason FinishedCompletionReasonFunctionCall choicefinish_reason FinishedCompletionReasonStop functionCallName
functionCallStreamObj functionCallsfunctionCallName
functionCall name functionCallName arguments functionCallStreamObj
completedFunctionCallIdxschoiceindex
functionCalls functionCall
error
logServiceerror
functionCallsfunctionCallName
functionCallName
choicefinish_reason FinishedCompletionReasonFunctionCall
handled
choicefinish_reason FinishedCompletionReasonToolCalls choicefinish_reason FinishedCompletionReasonStop toolCalls
handled
toolCalls toolCalls
completedFunctionCallIdxschoiceindex
toolId toolCallslength toolCallsid
toolCalls toolCalls thinking toolId thinkingFound metadata toolId
error
logServiceerror
handled
solutionchoice
solutionDone choicefinish_reason finishOffset
solutionDone
solution
finishOffset
reason choicefinish_reason FinishedCompletionReasonClientTrimmed
filterReason choice
requestId requestId
index choiceindex
allowCompletingSolution
solutionschoiceindex
index solution Objectsolutions
solutionIndex index
solution
solution
finishOffset
reason FinishedCompletionReasonClientIterationDone
requestId requestId
index solutionIndex
extraDatalength hadEarlyFinishedSolution
extraDataJson extraData
extraDataJsonerror
logServiceextraDataJsonerror
telemetryService extraDataJsonerror
e
logService
telemetryService
async AsyncIterableFinishedCompletion
index solution Objectsolutions
solutionIndex index
solution
completedFunctionCallIdxssolutionIndex
solution
finishOffset
reason completedFunctionCallIdxssolutionIndex FinishedCompletionReasonFunctionCall FinishedCompletionReasonToolCalls
requestId requestId
index solutionIndex
solution
finishOffset
reason FinishedCompletionReasonClientDone
requestId requestId
index solutionIndex
description
cancellationTokenisCancellationRequested
logService description
responsebody
choice ExtendedChoiceJSON
choiceCopy choice
choiceCopyindex
choiceCopycontent_filter_results
choiceCopycontent_filter_offsets
logService
obj obj ICopilotConfirmation
obj ICopilotConfirmationtitle
obj ICopilotConfirmationmessage
obj ICopilotConfirmationconfirmation
streamingData APIJsonDataStreaming APIJsonData
joinedText streamingDatatext
out APIJsonData
text joinedText
tokens streamingDatatext
out
choice ExtendedChoiceJSON FilterReason
choicefinish_reason FinishedCompletionReasonContentFilter
choicedeltacopilot_annotationsTextCopyright
FilterReasonCopyright
choicedeltacopilot_annotationsSexual choicedeltacopilot_annotationsSexualPattern
FilterReasonSexual
choicedeltacopilot_annotationsViolence
FilterReasonViolence
choicedeltacopilot_annotationsHateSpeech choicedeltacopilot_annotationsHateSpeechPattern
FilterReasonHate
choicedeltacopilot_annotationsSelfHarm
FilterReasonSelfHarm
choicedeltacopilot_annotationsPromptPromBlockList
FilterReasonPrompt
choicecontent_filter_results
filter Objectchoicecontent_filter_results ExcludeFilterReason FilterReasonCopyright
choicecontent_filter_resultsfilterfiltered
filter
telemetryService ITelemetryService message extra
args message extra
secureMessage argslength args
enhancedData TelemetryData
context
level LogLevelLogLevelError
message secureMessage
telemetryService enhancedDataproperties enhancedDatameasurements
data TelemetryData
context
level LogLevelLogLevelError
message
telemetryService
dataproperties
datameasurements