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 { OutputMode, Raw, toMode } from '@vscode/prompt-tsx';
import type { LanguageModelChatTool } from 'vscode';
import { LRUCache } from '../../../util/common/cache';
import { getImageDimensions } from '../../../util/common/imageUtils';
import { createServiceIdentifier } from '../../../util/common/services';
import { ITokenizer, TokenizerType } from '../../../util/common/tokenizer';
import { WorkerWithRpcProxy } from '../../../util/node/worker';
assertNever
Lazy
Disposable toDisposable
basename join
ITelemetryService
TikTokenImpl
ITokenizerProvider
tokenizer TokenizerType
_serviceBrand
endpoint TokenizationEndpoint ITokenizer
BaseTokensPerCompletion
BaseTokensPerMessage
BaseTokensPerName
_serviceBrand
_cl100kTokenizer LazyBPETokenizer
_o200kTokenizer LazyBPETokenizer
useWorker
telmetryService ITelemetryService
_cl100kTokenizer useWorker __dirname telmetryService
_o200kTokenizer useWorker __dirname telmetryService
_cl100kTokenizerrawValue
_o200kTokenizerrawValue
endpoint TokenizationEndpoint ITokenizer
endpointtokenizer
TokenizerType
_cl100kTokenizervalue
TokenizerType
_o200kTokenizervalue
text allowedSpecial ReadonlyArray
_tokenizer TikTokenWorker
_cache
baseTokensPerMessage BaseTokensPerMessage
baseTokensPerName BaseTokensPerName
mode OutputModeRaw
_useWorker
_tokenFilePath
_encoderName
_telemetryService ITelemetryService
messages RawChatMessage
numTokens BaseTokensPerMessage
message messages
numTokens message
numTokens
text
text
text RawChatCompletionContentPart
text
text
texttype
RawChatCompletionContentPartKindText
texttext
RawChatCompletionContentPartKindOpaque
texttokenUsage
RawChatCompletionContentPartKindImage
textimageUrlurl
textimageUrlurl textimageUrldetail
textimageUrlurl
textimageUrlurl
RawChatCompletionContentPartKindCacheBreakpoint
RawChatCompletionContentPartKindDocument
textdocumentDatadata
text
text
text
cacheValue _cachetext
cacheValue
cacheValue textlength
_cachetext cacheValue
cacheValue
message RawChatMessage
baseTokensPerMessage OutputModeOpenAI message
tools LanguageModelChatTool
baseToolTokens
numTokens
toolslength
numTokens baseToolTokens
baseTokensPerTool
tool tools
numTokens baseTokensPerTool
numTokens name toolname description tooldescription parameters toolinputSchema
MathnumTokens
obj
numTokens
key value Objectobj
value
value
numTokens value
value
casted value
castedtype
numTokens castedtext
castedtype castedimage_url
castedimage_urlurl
numTokens castedimage_urlurl castedimage_urldetail
numTokens castedimage_urlurl
numTokens castedimage_urlurl
newTokens value
key
newTokens MathnewTokens
numTokens newTokens
key value
numTokens baseTokensPerName
numTokens
obj
numTokens
key value Objectobj
value
numTokens key
value
numTokens value
value
numTokens value
numTokens
TikTokenWorker
_tokenizer
_tokenizer
TikTokenWorker
useBinaryTokens __dirname
_useWorker
handle TikTokenImplinstance_tokenFilePath _encoderName useBinaryTokens
cleanup
TikTokenImplinstancehandle
_storecleanup
_tokenizer
_storecleanup
text allowedSpecial
TikTokenImplinstancehandle text allowedSpecial
workerPath __dirname
worker workerPath name
handle workerproxy_tokenFilePath _encoderName useBinaryTokens
cleanup
worker
_storecleanup
_tokenizer
timeout TimeoutHandle
text allowedSpecial
result workerproxyhandle text allowedSpecial
timeout
timeout cleanup
Math
workerproxystats
_telemetryService stats
result
imageUrl detail
width height imageUrl
detail
width height
scaleFactor Mathwidth height
width Mathwidth scaleFactor
height Mathheight scaleFactor
scaleFactor Mathwidth height
width Mathwidth scaleFactor
height Mathheight scaleFactor
tiles Mathwidth Mathheight
tiles
base64Data
base64Data
length base64Datalength
estimatedBytes Mathlength
estimatedTokens MathestimatedBytes
estimatedTokens