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 type { SessionModelInfo } from './state/protocol/state.js';
import type { IAgentModelInfo } from './agent.js';
/**
* Well-known model picker metadata carried under a model's open `_meta` bag (see {@link IAgentModelInfo._meta} /
* {@link SessionModelInfo._meta}). Agents populate these keys so the chat model picker can render pricing,
* capability categories, and promotions.
*
* All cost values are expressed as credits per 1M tokens — the same unit the model picker hover renders (see
* `getModelHoverContent` in `modelPicker/modelPickerHover.ts`). Fields are optional; agents omit what they don't know.
*/
export interface IAgentModelPricingMeta {
/** Request multiplier (e.g. `1.5` rendered as "1.5x"). */
readonly multiplierNumeric?: number;
/** Default-tier input cost in credits per 1M tokens. */
readonly inputCost?: number;
/** Default-tier cached-input (read) cost in credits per 1M tokens. */
cacheCost
cacheWriteCost
outputCost
longContextInputCost
longContextCacheCost
longContextCacheWriteCost
longContextOutputCost
priceCategory
category
discountPercent
promo
id
discountPercent
endsAt
message
showBanner
satisfies IAgentModelPricingMeta
model IAgentModelInfo SessionModelInfo IAgentModelPricingMeta
meta model_meta
meta
result IAgentModelPricingMeta IAgentModelPricingMeta
key
value metakey
value
resultkey value
metapriceCategory
resultpriceCategory metapriceCategory
metacategory
resultcategory metacategory
rawPromo metapromo
rawPromo rawPromo rawPromo
p rawPromo Record
pid pdiscountPercent pmessage
resultpromo
id pid
discountPercent pdiscountPercent
message pmessage
pendsAt endsAt pendsAt
pshowBanner showBanner pshowBanner
result
pricing IAgentModelPricingMeta Record
entries Objectpricing value value
entrieslength Objectentries
raw ICAPIModelBilling
raw raw
billing raw Record
multiplier billingmultiplier billingmultiplier
priceCategory billingpriceCategory billingpriceCategory
billing Record price_category billing Record price_category
discountPercent billingdiscountPercent billingdiscountPercent
billing Record discount_percent billing Record discount_percent
rawTokenPrices billingtokenPrices billingtoken_prices Record
tokenPrices ICAPIModelBilling
rawTokenPrices rawTokenPrices
defaultTier rawTokenPricesdefault Record
hasDefault defaultTier defaultTier
batchSize rawTokenPricesbatchSize rawTokenPricesbatch_size
scale batchSize batchSize
price values
value valuesasNumbercandidate candidate
value value scale
inputPrice rawTokenPricesinputPrice hasDefault defaultTierinput_price
cachePrice rawTokenPricescacheReadPrice rawTokenPricescachePrice hasDefault defaultTiercache_read_price hasDefault defaultTiercache_price
cacheWritePrice rawTokenPricescacheWritePrice hasDefault defaultTiercache_write_price
outputPrice rawTokenPricesoutputPrice hasDefault defaultTieroutput_price
contextMax rawTokenPricesmaxPromptTokens rawTokenPricescontextMax hasDefault defaultTiermax_prompt_tokens hasDefault defaultTiercontext_max
rawLong rawTokenPriceslongContext rawTokenPriceslong_context Record
longContext contextMax inputPrice cachePrice cacheWritePrice outputPrice
rawLong rawLong
longContext
inputPrice rawLonginputPrice rawLonginput_price
cachePrice rawLongcacheReadPrice rawLongcachePrice rawLongcache_read_price rawLongcache_price
cacheWritePrice rawLongcacheWritePrice rawLongcache_write_price
outputPrice rawLongoutputPrice rawLongoutput_price
contextMax rawLongmaxPromptTokens rawLongcontextMax rawLongmax_prompt_tokens rawLongcontext_max
tokenPrices inputPrice cachePrice cacheWritePrice outputPrice contextMax longContext
multiplier priceCategory discountPercent promo billing tokenPrices
v
v v
billing Record ICAPIModelBilling
raw billingpromo Record
raw raw
id rawid rawid
discountPercent rawdiscountPercent rawdiscount_percent
endsAt rawendsAt rawendsAt
rawends_at rawends_at
message rawmessage rawmessage
showBanner rawshowBanner rawshowBanner
rawshow_banner rawshow_banner
id discountPercent message
id discountPercent message endsAt endsAt showBanner showBanner
multiplier
priceCategory
discountPercent
promo
id
discountPercent
endsAt
message
showBanner
tokenPrices
contextMax
inputPrice
cachePrice
cacheWritePrice
outputPrice
longContext
contextMax
inputPrice
cachePrice
cacheWritePrice
outputPrice
billing ICAPIModelBilling priceCategory category Record
tokenPrices billingtokenPrices
longContext tokenPriceslongContext
showLongContext longContext
longContextinputPrice longContextinputPrice tokenPricesinputPrice
longContextoutputPrice longContextoutputPrice tokenPricesoutputPrice
longContextcachePrice longContextcachePrice tokenPricescachePrice
longContextcacheWritePrice longContextcacheWritePrice tokenPricescacheWritePrice
multiplierNumeric billingmultiplier billingmultiplier
inputCost tokenPricesinputPrice
cacheCost tokenPricescachePrice
cacheWriteCost tokenPricescacheWritePrice
outputCost tokenPricesoutputPrice
longContextInputCost showLongContext longContextinputPrice tokenPricesinputPrice
longContextCacheCost showLongContext longContextcachePrice tokenPricescachePrice
longContextCacheWriteCost showLongContext longContextcacheWritePrice tokenPricescacheWritePrice
longContextOutputCost showLongContext longContextoutputPrice tokenPricesoutputPrice
priceCategory priceCategory billingpriceCategory billingpriceCategory
category
discountPercent billingdiscountPercent billingdiscountPercent
promo billingpromo
billing ICAPIModelBilling
tokenPrices billingtokenPrices
longContext tokenPriceslongContext
longContext
longContextinputPrice longContextinputPrice tokenPricesinputPrice
longContextoutputPrice longContextoutputPrice tokenPricesoutputPrice
longContextcachePrice longContextcachePrice tokenPricescachePrice
longContextcacheWritePrice longContextcacheWritePrice tokenPricescacheWritePrice