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 { ContentBlockParam, DocumentBlockParam, ImageBlockParam, MessageParam, RedactedThinkingBlockParam, TextBlockParam, ThinkingBlockParam } from '@anthropic-ai/sdk/resources';
import { Raw } from '@vscode/prompt-tsx';
import type { LanguageModelChatMessage } from 'vscode';
import { CustomDataPartMimeTypes } from '../../../platform/endpoint/common/endpointTypes';
import { isDefined } from '../../../util/vs/base/common/types';
import { LanguageModelChatMessageRole, LanguageModelDataPart, LanguageModelTextPart, LanguageModelThinkingPart, LanguageModelToolCallPart LanguageModelToolResultPart LanguageModelToolResultPart2
content LanguageModelTextPart LanguageModelToolResultPart LanguageModelToolCallPart LanguageModelDataPart LanguageModelThinkingPart ContentBlockParam
convertedContent ContentBlockParam
part content
part
partmetadataredactedData
convertedContent
type
data partmetadataredactedData
partmetadata_completeThinking
convertedContent
type
thinking partmetadata_completeThinking
signature partmetadatasignature
part
convertedContent
type
id partcallId
input partinput
name partname
part partmimeType CustomDataPartMimeTypesCacheControl partdata
previousBlock convertedContent
previousBlock previousBlock
previousBlockcache_control type
convertedContent
type
text
cache_control type
part
partmimeType CustomDataPartMimeTypesStatefulMarker
partmimeType
convertedContent
type
source
type
data Bufferpartdata
media_type
convertedContent
type
source
type
data Bufferpartdata
media_type partmimeType
part part
convertedContent
type
tool_use_id partcallId
content partcontentp TextBlockParam ImageBlockParam DocumentBlockParam
p
type text pvalue
p pmimeType CustomDataPartMimeTypesCacheControl pdata
type text cache_control type
p pmimeType
type source type media_type data Bufferpdata
p
type source type media_type pmimeType data Bufferpdata
isDefined
partvalue
convertedContent
type
text partvalue
convertedContent
messages LanguageModelChatMessage messages MessageParam system TextBlockParam
unmergedMessages MessageParam
systemMessage TextBlockParam
type
text
message messages
messagerole LanguageModelChatMessageRoleAssistant
unmergedMessages
role
content messagecontent
messagerole LanguageModelChatMessageRoleUser
unmergedMessages
role
content messagecontent
systemMessagetext messagecontentp
p
pvalue
p pmimeType CustomDataPartMimeTypesCacheControl pdata
systemMessagecache_control type
mergedMessages MessageParam
message unmergedMessages
mergedMessageslength mergedMessagesmergedMessageslength role messagerole
mergedMessagesmessage
prevMessage mergedMessagesmergedMessageslength
prevMessagecontent messagecontent
prevMessagecontent ContentBlockParammessagecontent ContentBlockParam
messages mergedMessages system systemMessage
block ContentBlockParam block ExcludeContentBlockParam ThinkingBlockParam RedactedThinkingBlockParam
blocktype blocktype
messages MessageParam system TextBlockParam RawChatMessage
fullMessages messages system
fullMessagesmessage
content messagecontentpart
parttype RawChatCompletionContentPartKindImage
part
imageUrl url
parttype RawChatCompletionContentPartKindDocument
part
documentData partdocumentData data
part
messagerole RawChatRoleTool
message
content type RawChatCompletionContentPartKindText text
message
content
messages MessageParam system TextBlockParam RawChatMessage
rawMessages RawChatMessage
system
systemContent RawChatCompletionContentPart
systemtext
systemContent type RawChatCompletionContentPartKindText text systemtext
systemcache_control
systemContent type RawChatCompletionContentPartKindCacheBreakpoint cacheType systemcache_controltype
systemContentlength
rawMessages role RawChatRoleSystem content systemContent
message messages
content RawChatCompletionContentPart
toolCalls RawChatMessageToolCall
toolCallId
toRawImage img ImageBlockParam RawChatCompletionContentPartImage
imgsourcetype
type RawChatCompletionContentPartKindImage imageUrl url
imgsourcetype
type RawChatCompletionContentPartKindImage imageUrl url imgsourceurl
toRawDocument document DocumentBlockParam RawChatCompletionContentPartDocument
documentsourcetype
type RawChatCompletionContentPartKindDocument
documentData data documentsourcedata mediaType documentsourcemedia_type
img ImageBlockParam
imagePart img
imagePart
contentimagePart
block ContentBlockParam
block block blockcache_control
content type RawChatCompletionContentPartKindCacheBreakpoint cacheType blockcache_controltype
messagecontent
block messagecontent
blocktype
content type RawChatCompletionContentPartKindText text blocktext
block
blocktype
block
block
blocktype
documentPart block
documentPart
contentdocumentPart
block
blocktype
content
type RawChatCompletionContentPartKindText
text
blocktype
content
type RawChatCompletionContentPartKindText
text
blocktype
toolCalls
toolCalls
id blockid
type
name blockname arguments blockinput
block
blocktype
toolCallId blocktool_use_id
toolContent RawChatCompletionContentPart
blockcontent
toolContent type RawChatCompletionContentPartKindText text blockcontent
c blockcontent
ctype
toolContent type RawChatCompletionContentPartKindText text ctext
ctype
imagePart c
imagePart
toolContentimagePart
ctype
documentPart c
documentPart
toolContentdocumentPart
rawMessages role RawChatRoleTool content toolContentlength toolContent type RawChatCompletionContentPartKindText text toolCallId
toolCallId
messagecontent
content type RawChatCompletionContentPartKindText text messagecontent
messagerole
msg RawAssistantChatMessage role RawChatRoleAssistant content
toolCalls toolCallslength
msgtoolCalls toolCalls
rawMessagesmsg
messagerole
contentlength
rawMessages role RawChatRoleUser content
rawMessages