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 { generateUuid } from '../../../util/vs/base/common/uuid';
import { CopilotChatAttr, GenAiAttr, GenAiOperationName } from '../../../platform/otel/common/genAiAttributes';
import type { ICompletedSpanData } from '../../../platform/otel/common/otelService';
import type { IDebugLogEntry } from '../../../platform/chat/common/chatDebugFileLoggerService';
import type { SessionEvent, WorkingDirectoryContext } from './cloudSessionTypes';
/**
* Per-token streaming events that must never be forwarded to the cloud. The
* current `translateSpan` does not emit any of these (assistant text is read
* from finalized `gen_ai.output.messages`), but the filter is kept defensively
* for parity with the CLI and for future translator changes.
*/
export const STREAMING_EVENT_TYPES ReadonlySet
ReadonlySet
event SessionEvent
eventtype
value limit
value
valuelength
value value
value value
value
size
item value
size limit
size
size item limit size
size
value
size
key v Objectvalue Record
size limit
size
size keylength
size v limit size
size
event SessionEvent limit
base
base limit
base
base eventdata limit base
started
titleEmitted
lastEventId
droppedCount
SessionTranslationState
started titleEmitted lastEventId droppedCount
content
content
contentlength
content
content
span ICompletedSpanData
state SessionTranslationState
context WorkingDirectoryContext
subagentId
SessionEvent
operationName spanattributesGenAiAttr
events SessionEvent
operationName GenAiOperationName
userRequest spanattributesCopilotChatAttr
statestarted subagentId
statestarted
events state
sessionId span
version
producer
copilotVersion
startTime spanstartTime
selectedModel spanattributesGenAiAttr
context
cwd contextcwd
repository contextrepository
hostType
branch contextbranch
headCommit contextheadCommit
userRequest subagentId
beforeLen eventslength
events state
content userRequest
agentMode
statetitleEmitted eventslength beforeLen
title userRequest
title
statetitleEmitted
events state title
assistantText span
toolRequests span
assistantText toolRequestslength
events state
messageId
content assistantText
toolRequests toolRequestslength toolRequests
subagentId
req toolRequests
events state
toolCallId reqtoolCallId
toolName reqname
arguments reqarguments
subagentId
operationName GenAiOperationName
toolName spanattributesGenAiAttr
toolName
toolCallId spanattributesGenAiAttr
resultText spanattributes
success spanstatuscode
resultContent resultText
events state
toolCallId
success
result success
content resultContent
detailedContent resultContent
error success
message resultContent
code
subagentId
operationName GenAiOperationName
inputTokens spanattributesGenAiAttr
outputTokens spanattributesGenAiAttr
model spanattributesGenAiAttr
spanattributesGenAiAttr
inputTokens outputTokens
data Record
model model
inputTokens
outputTokens
cacheReadTokens spanattributesGenAiAttr
cacheReadTokens
datacacheReadTokens cacheReadTokens
timeToFirstToken spanattributesCopilotChatAttr
timeToFirstToken
datatimeToFirstTokenMs timeToFirstToken
spanendTime spanstartTime
dataduration spanendTime spanstartTime
events state data subagentId
events
state SessionTranslationState SessionEvent
state
state SessionTranslationState SessionEvent
state
entry IDebugLogEntry
sessionId
state SessionTranslationState
SessionEvent
events SessionEvent
ts entryts
entrytype
statestarted
statestarted
events state ts
sessionId
version
producer
copilotVersion entryattrscopilotVersion entryattrscopilotVersion
startTime ts
context
cwd entryattrscwd entryattrscwd
repository entryattrsrepository entryattrsrepository
hostType
branch entryattrsbranch entryattrsbranch
content entryattrscontent
entryattrscontent
entryattrsuserRequest
entryattrsuserRequest
content
beforeLen eventslength
events state ts
content
agentMode
statetitleEmitted eventslength beforeLen
title content
title
statetitleEmitted
events state ts title
response entryattrsresponse entryattrsresponse
response
events state ts
messageId
content response
toolName entryname
toolName
toolCallId entryspanId
resultText entryattrsresult entryattrsresult
success entrystatus
resultContent resultText
events state ts
toolCallId
toolName
success
result success
content resultContent
detailedContent resultContent
error success
message resultContent entryattrserror entryattrserror
code
inputTokens entryattrsinputTokens
outputTokens entryattrsoutputTokens
inputTokens outputTokens
data Record
model entryattrsmodel entryattrsmodel
inputTokens
outputTokens
cacheReadTokens entryattrscacheReadTokens entryattrscachedTokens
cacheReadTokens
datacacheReadTokens cacheReadTokens
ttft entryattrsttft
ttft
datatimeToFirstTokenMs ttft
entrydur entrydur
dataduration entrydur
events state ts data
events
state SessionTranslationState
type
data Record
ephemeral
SessionEvent
state type data ephemeral
state SessionTranslationState
timestamp
type
data Record
ephemeral
SessionEvent
id
event SessionEvent
id
timestamp
parentId statelastEventId
type
data
ephemeral
eventephemeral
statelastEventId id
event
events SessionEvent
state SessionTranslationState
type
data Record
ephemeral
agentId
events state type data ephemeral agentId
events SessionEvent
state SessionTranslationState
timestamp
type
data Record
ephemeral
agentId
event SessionEvent
id
timestamp
parentId statelastEventId
type
data
ephemeral
eventephemeral
agentId
eventagentId agentId
event
statedroppedCount
statelastEventId eventid
eventsevent
span ICompletedSpanData
spanattributesCopilotChatAttr
spanattributesGenAiAttr
spanattributesCopilotChatAttr
span ICompletedSpanData
raw spanattributesGenAiAttr
raw
messages raw role parts type content
parts messages
m mrole
m mparts
p ptype
p pcontent
partslength parts
span ICompletedSpanData toolCallId name arguments type
raw spanattributesGenAiAttr
raw
messages raw role parts type toolCallId toolName args
toolParts messages
m mrole
m mparts
p ptype ptoolCallId ptoolName
toolPartsp
toolCallId ptoolCallId
name ptoolName
arguments pargs
type