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 { ChatCompletionContentPartKind } from '@vscode/prompt-tsx/dist/base/output/rawTypes';
import * as http from 'http';
import { ChatCompletionChunk, ChatCompletionCreateParamsBase, ChatCompletionMessageParam } from 'openai/resources/chat/completions.js';
import type { OpenAiFunctionTool } from '../../../../platform/networking/common/fetch';
import { IMakeChatRequestOptions } from '../../../../platform/networking/common/networking';
import { APIUsage } from '../../../../platform/networking/common/openai'
coalesce
IAgentStreamBlock IParsedRequest IProtocolAdapter IProtocolAdapterFactory IStreamEventData IStreamingContext
requestHooks body
responseHooks body
IProtocolAdapter
requestHooks responseHooks
requestHook body responseHook body
requestHook
requestHooksrequestHook
responseHook
responseHooksresponseHook
name
currentBlockIndex
hasTextBlock
hadToolCalls
requestHooks body responseHooks body
body IParsedRequest
body requestHooksb hook b body
requestBody ChatCompletionCreateParamsBase body
model requestBodymodel
msg
requestHooksb hook b msg
messages requestBodymessages
messagesmsg
msgcontentpart
parttype
ChatCompletionContentPartKindImage
partimageUrlurl partimageUrlurl
ChatCompletionContentPartKindOpaque
partvalue
partvalue partvalue
ChatCompletionContentPartKindText
parttext parttext
options IMakeChatRequestOptions
temperature requestBodytemperature
max_tokens requestBodymax_tokens requestBodymax_completion_tokens
requestBodytools requestBodytools requestBodytoolslength
tools requestBodytoolstool
tooltype toolfunction
chatTool OpenAiFunctionTool
type
name toolfunctionname
description toolfunctiondescription
parameters toolfunctionparameters
chatTool
toolslength
optionstools tools
model
messages
options
textMessages
context IStreamingContext content
existing textMessagescontextrequestId
textMessagescontextrequestId existing content
context IStreamingContext IStreamEventData
content textMessagescontextrequestId
content
textMessagescontextrequestId
content responseHooksb hook b content
event
id contextrequestId
object
created MathDate
model contextendpointmodelId
choices
index currentBlockIndex
delta
content
role
finish_reason
satisfies ChatCompletionChunk
event
data event
streamData IAgentStreamBlock
context IStreamingContext
IStreamEventData
events IStreamEventData
streamDatatype
hasTextBlock
hasTextBlock
context streamDatacontent
streamDatatype
hasTextBlock
event context
event
eventsevent
currentBlockIndex
hasTextBlock
hadToolCalls
toolArguments responseHooksb hook b streamDatainput
toolCallDelta ChatCompletionChunk
id contextrequestId
object
created MathDate
model contextendpointmodelId
choices
index currentBlockIndex
delta
tool_calls
index currentBlockIndex
id streamDatacallId
type
name streamDataname
arguments toolArguments
finish_reason
events
event
data toolCallDelta
currentBlockIndex
events
context IStreamingContext usage APIUsage IStreamEventData
events IStreamEventData
event context
event
eventsevent
finalCompletion
id contextrequestId
object
created MathDate
model contextendpointmodelId
choices
index
delta content
finish_reason hadToolCalls
usage usage
prompt_tokens usageprompt_tokens
completion_tokens usagecompletion_tokens
total_tokens usagetotal_tokens
prompt_tokens
completion_tokens
total_tokens
satisfies ChatCompletionChunk
events
event
data finalCompletion
events
context IStreamingContext IStreamEventData
headers httpIncomingHttpHeaders
authHeader headersauthorization
bearerSpace
authHeaderbearerSpace authHeaderbearerSpacelength
data
data
messages ChatCompletionMessageParam RawChatMessage
raw RawChatMessage
msg RawChatMessage
last rawrawlength
last lastrole msgrole lastrole RawChatRoleTool
lastcontentmsgcontent
lastrole RawChatRoleAssistant msgrole RawChatRoleAssistant msgtoolCalls
l last RawAssistantChatMessage
ltoolCalls ltoolCalls msg RawAssistantChatMessagetoolCalls
rawmsg
messagesm
contentParts RawChatCompletionContentPart
mcontent mcontent part
parttype
contentParts type RawChatCompletionContentPartKindText text parttext
contentParts imageUrl url partimage_urlurl detail partimage_urldetail type ChatCompletionContentPartKindImage
contentParts type ChatCompletionContentPartKindOpaque value
contentParts type RawChatCompletionContentPartKindText text
mcontent
contentParts type RawChatCompletionContentPartKindText text mcontent
mrole
role RawChatRoleUser content contentParts
raw role RawChatRoleTool content contentParts toolCallId mtool_call_id
toolCalls RawChatMessageToolCall mtool_calls tc
tctype
id tcid tcfunctionname
type
name tcfunctionname
arguments tcfunctionarguments tcfunctionarguments tcfunctionarguments
satisfies RawChatMessageToolCall
id type name arguments satisfies RawChatMessageToolCall
message RawAssistantChatMessage role RawChatRoleAssistant content contentParts
toolCallslength
messagetoolCalls toolCalls
message
role RawChatRoleSystem content contentParts name mname
raw