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 { OpenAI, OutputMode, Raw, toMode } from '@vscode/prompt-tsx';
import { ChatCompletionContentPartImage } from '@vscode/prompt-tsx/dist/base/output/openaiTypes';
import { ChatCompletionContentPartKind } from '@vscode/prompt-tsx/dist/base/output/rawTypes';
import { rawPartAsThinkingData } from '../../endpoint/common/thinkingDataContainer';
import { TelemetryData } from '../../telemetry/common/telemetryData';
import { ThinkingData, ThinkingDataInMessage } from '../../thinking/common/thinking';
import { ICopilotReference, RequestId }
text_offset
token_logprobs
top_logprobs key
tokens
prompt_tokens
completion_tokens
total_tokens
prompt_tokens_details
cached_tokens
cache_creation_input_tokens
anthropic_cache_creation
ephemeral_1h_input_tokens
ephemeral_5m_input_tokens
completion_tokens_details
reasoning_tokens
accepted_prediction_tokens
rejected_prediction_tokens
copilot_usage
total_nano_aiu
obj obj APIUsage
obj APIUsageprompt_tokens
obj APIUsagecompletion_tokens
obj APIUsagetotal_tokens
nanoAiu
nanoAiu nanoAiu nanoAiu
text
tokens
logprobs APILogprobs
code
message
metadata Record
openAIContextManagementCompactionType
modelsWithoutResponsesContextManagement
type openAIContextManagementCompactionType
compact_threshold
encrypted_content
type openAIContextManagementCompactionType
id
ChatRole
System
User
Assistant
Tool
OpenAIChatMessage
copilot_references ICopilotReference
copilot_confirmations state confirmation
copilot_cache_control
ThinkingDataInMessage
content OpenAIChatCompletionContentPart OpenAIChatCompletionContentPart
content
contentpart part
content
content
content content
contenttext
message CAPIChatMessage thinkingData ThinkingData
message RawChatMessage callback RawMessageConversionCallback CAPIChatMessage
message RawChatMessage callback RawMessageConversionCallback CAPIChatMessage
message RawChatMessage RawChatMessage callback RawMessageConversionCallback CAPIChatMessage CAPIChatMessage
message
messagem m callback
out CAPIChatMessage OutputModeOpenAI message
message
outcopilot_references message copilot_references
message
outcopilot_confirmations message copilot_confirmations
outcontent
outcontent outcontent
i i outcontentlength i
part outcontenti
parttype
parttext parttext
parttype messagecontent i messagecontentlength
rawPart messagecontenti RawChatCompletionContentPart
rawParttype RawChatCompletionContentPartKindImage rawPartimageUrlmediaType
mediaType rawImageUrl rawPartimageUrl
partimage_url ChatCompletionContentPartImageImageURL media_type
rawImageUrl
media_type mediaType
messagecontentpart parttype ChatCompletionContentPartKindCacheBreakpoint
outcopilot_cache_control type
content messagecontent
contenttype RawChatCompletionContentPartKindOpaque
data content
callback data
out data
out
FinishedCompletionReason
Stop
Length
FunctionCall
ToolCalls
ContentFilter
Refusal
ServerError
ClientTrimmed
ClientIterationDone
ClientDone
index
id
name arguments
FilterReason
Hate
SelfHarm
Sexual
Violence
Copyright
Prompt
message RawChatMessage
choiceIndex
requestId RequestId
tokens
usage APIUsage
model
blockFinished
finishReason FinishedCompletionReason
filterReason FilterReason
telemetryData TelemetryData
error APIErrorResponse
content ChoiceLogProbsContent
bytes
token
logprob
top_logprobs TokenLogProb