@ellipsis-dev/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-
|
|
2
|
-
export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame,
|
|
1
|
+
import { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-CtTRS9eJ.js';
|
|
2
|
+
export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame, P as ParentKind, o as PromptBlockedReason, p as RecordsAppendFrame, q as ResolvedReviewScope, r as ReviewCounters, s as ReviewScope, t as ReviewScopeKind, u as SendSessionMessageRequest, v as SessionExecutionWire, w as SessionFrame, x as SessionLiveness, y as SessionMessageStatus, z as SessionPrompting, I as SessionRecordWire, J as SessionState, K as SessionStreamFrame, M as SessionSurface, N as SnapshotFrame, O as StreamFrame, T as TokensInfo, Q as components, U as paths } from './types-CtTRS9eJ.js';
|
|
3
3
|
|
|
4
4
|
type FetchJson = (path: string, init?: {
|
|
5
5
|
method?: string;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire,
|
|
1
|
+
import { I as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire, O as StreamFrame } from '../types-CtTRS9eJ.js';
|
|
2
2
|
|
|
3
3
|
interface ChatToolNode {
|
|
4
4
|
key: string;
|
package/dist/stream/index.d.ts
CHANGED
|
@@ -1050,34 +1050,6 @@ interface components {
|
|
|
1050
1050
|
/** Turns */
|
|
1051
1051
|
turns: components['schemas']['AgentTurn'][];
|
|
1052
1052
|
};
|
|
1053
|
-
/** ModelTokensInfo */
|
|
1054
|
-
ModelTokensInfo: {
|
|
1055
|
-
/**
|
|
1056
|
-
* Cache Creation Input Tokens
|
|
1057
|
-
* @default 0
|
|
1058
|
-
*/
|
|
1059
|
-
cache_creation_input_tokens: number;
|
|
1060
|
-
/**
|
|
1061
|
-
* Cache Read Input Tokens
|
|
1062
|
-
* @default 0
|
|
1063
|
-
*/
|
|
1064
|
-
cache_read_input_tokens: number;
|
|
1065
|
-
/**
|
|
1066
|
-
* Cost Usd
|
|
1067
|
-
* @default 0
|
|
1068
|
-
*/
|
|
1069
|
-
cost_usd: number;
|
|
1070
|
-
/**
|
|
1071
|
-
* Input Tokens
|
|
1072
|
-
* @default 0
|
|
1073
|
-
*/
|
|
1074
|
-
input_tokens: number;
|
|
1075
|
-
/**
|
|
1076
|
-
* Output Tokens
|
|
1077
|
-
* @default 0
|
|
1078
|
-
*/
|
|
1079
|
-
output_tokens: number;
|
|
1080
|
-
};
|
|
1081
1053
|
/**
|
|
1082
1054
|
* ParentKind
|
|
1083
1055
|
* @description How a session relates to its predecessor (parent_agent_session_id) —
|
|
@@ -1618,7 +1590,19 @@ interface components {
|
|
|
1618
1590
|
/** Status */
|
|
1619
1591
|
status: string | null;
|
|
1620
1592
|
};
|
|
1621
|
-
/**
|
|
1593
|
+
/**
|
|
1594
|
+
* TokensInfo
|
|
1595
|
+
* @description Token/cost usage, per record (one API call's counts, aggregate fields at
|
|
1596
|
+
* their zero defaults) or aggregated per execution/session
|
|
1597
|
+
* (compute_spend_from_records derives num_turns and cost_usd).
|
|
1598
|
+
*
|
|
1599
|
+
* Strict on purpose: this is our own persisted schema, so an unknown key is a
|
|
1600
|
+
* writer bug (the num_turns=0 bug shipped because a Claude Code usage dict
|
|
1601
|
+
* validated leniently against this model, silently zeroing every
|
|
1602
|
+
* non-overlapping field). Legacy keys were dropped from persisted blobs by
|
|
1603
|
+
* the 2026-07-26 tokens_info migration; per-model usage lives on
|
|
1604
|
+
* `execution.model_usage` (CC's modelUsage, verbatim).
|
|
1605
|
+
*/
|
|
1622
1606
|
TokensInfo: {
|
|
1623
1607
|
/**
|
|
1624
1608
|
* Cache Creation Input Tokens
|
|
@@ -1635,11 +1619,6 @@ interface components {
|
|
|
1635
1619
|
* @default 0
|
|
1636
1620
|
*/
|
|
1637
1621
|
cost_usd: number;
|
|
1638
|
-
/**
|
|
1639
|
-
* Initial System Prompt Tokens
|
|
1640
|
-
* @default 0
|
|
1641
|
-
*/
|
|
1642
|
-
initial_system_prompt_tokens: number;
|
|
1643
1622
|
/**
|
|
1644
1623
|
* Input Tokens
|
|
1645
1624
|
* @default 0
|
|
@@ -1655,46 +1634,6 @@ interface components {
|
|
|
1655
1634
|
* @default 0
|
|
1656
1635
|
*/
|
|
1657
1636
|
output_tokens: number;
|
|
1658
|
-
/**
|
|
1659
|
-
* Per Model
|
|
1660
|
-
* @default {}
|
|
1661
|
-
*/
|
|
1662
|
-
per_model: {
|
|
1663
|
-
[key: string]: components['schemas']['ModelTokensInfo'];
|
|
1664
|
-
};
|
|
1665
|
-
/**
|
|
1666
|
-
* Per Turn
|
|
1667
|
-
* @default []
|
|
1668
|
-
*/
|
|
1669
|
-
per_turn: components['schemas']['TurnTokensInfo'][];
|
|
1670
|
-
/**
|
|
1671
|
-
* Thinking Tokens
|
|
1672
|
-
* @default 0
|
|
1673
|
-
*/
|
|
1674
|
-
thinking_tokens: number;
|
|
1675
|
-
};
|
|
1676
|
-
/** TurnTokensInfo */
|
|
1677
|
-
TurnTokensInfo: {
|
|
1678
|
-
/**
|
|
1679
|
-
* Cache Creation Input Tokens
|
|
1680
|
-
* @default 0
|
|
1681
|
-
*/
|
|
1682
|
-
cache_creation_input_tokens: number;
|
|
1683
|
-
/**
|
|
1684
|
-
* Cache Read Input Tokens
|
|
1685
|
-
* @default 0
|
|
1686
|
-
*/
|
|
1687
|
-
cache_read_input_tokens: number;
|
|
1688
|
-
/**
|
|
1689
|
-
* Input Tokens
|
|
1690
|
-
* @default 0
|
|
1691
|
-
*/
|
|
1692
|
-
input_tokens: number;
|
|
1693
|
-
/**
|
|
1694
|
-
* Output Tokens
|
|
1695
|
-
* @default 0
|
|
1696
|
-
*/
|
|
1697
|
-
output_tokens: number;
|
|
1698
1637
|
};
|
|
1699
1638
|
/** ValidationError */
|
|
1700
1639
|
ValidationError: {
|
|
@@ -2240,32 +2179,25 @@ interface SessionRecordWire {
|
|
|
2240
2179
|
tokens_info: TokensInfo | null;
|
|
2241
2180
|
tools: string[] | null;
|
|
2242
2181
|
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Token/cost usage, per record (one API call's counts, aggregate fields at
|
|
2184
|
+
* their zero defaults) or aggregated per execution/session
|
|
2185
|
+
* (compute_spend_from_records derives num_turns and cost_usd).
|
|
2186
|
+
*
|
|
2187
|
+
* Strict on purpose: this is our own persisted schema, so an unknown key is a
|
|
2188
|
+
* writer bug (the num_turns=0 bug shipped because a Claude Code usage dict
|
|
2189
|
+
* validated leniently against this model, silently zeroing every
|
|
2190
|
+
* non-overlapping field). Legacy keys were dropped from persisted blobs by
|
|
2191
|
+
* the 2026-07-26 tokens_info migration; per-model usage lives on
|
|
2192
|
+
* `execution.model_usage` (CC's modelUsage, verbatim).
|
|
2193
|
+
*/
|
|
2243
2194
|
interface TokensInfo {
|
|
2244
2195
|
cache_creation_input_tokens: number;
|
|
2245
2196
|
cache_read_input_tokens: number;
|
|
2246
2197
|
cost_usd: number;
|
|
2247
|
-
initial_system_prompt_tokens: number;
|
|
2248
2198
|
input_tokens: number;
|
|
2249
2199
|
num_turns: number;
|
|
2250
2200
|
output_tokens: number;
|
|
2251
|
-
per_model: {
|
|
2252
|
-
[k: string]: ModelTokensInfo;
|
|
2253
|
-
};
|
|
2254
|
-
per_turn: TurnTokensInfo[];
|
|
2255
|
-
thinking_tokens: number;
|
|
2256
|
-
}
|
|
2257
|
-
interface ModelTokensInfo {
|
|
2258
|
-
cache_creation_input_tokens: number;
|
|
2259
|
-
cache_read_input_tokens: number;
|
|
2260
|
-
cost_usd: number;
|
|
2261
|
-
input_tokens: number;
|
|
2262
|
-
output_tokens: number;
|
|
2263
|
-
}
|
|
2264
|
-
interface TurnTokensInfo {
|
|
2265
|
-
cache_creation_input_tokens: number;
|
|
2266
|
-
cache_read_input_tokens: number;
|
|
2267
|
-
input_tokens: number;
|
|
2268
|
-
output_tokens: number;
|
|
2269
2201
|
}
|
|
2270
2202
|
/**
|
|
2271
2203
|
* LWW snapshot of the enriched public session (§4.1) — the only way
|
|
@@ -2332,4 +2264,4 @@ type ResolvedReviewScope = components['schemas']['ResolvedReviewScope'];
|
|
|
2332
2264
|
type ReviewCounters = components['schemas']['ReviewCounters'];
|
|
2333
2265
|
type Finding = components['schemas']['Finding'];
|
|
2334
2266
|
|
|
2335
|
-
export type { AgentSessionWire as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionRecordWire as I, SessionState as J, SessionStreamFrame as K, ListSessionRecordsResponse as L,
|
|
2267
|
+
export type { AgentSessionWire as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionRecordWire as I, SessionState as J, SessionStreamFrame as K, ListSessionRecordsResponse as L, SessionSurface as M, SnapshotFrame as N, StreamFrame as O, ParentKind as P, components as Q, Review as R, SessionMessageWire as S, TokensInfo as T, paths as U, ListSessionTurnsResponse as a, ListSessionExecutionsResponse as b, ListReviewsResponse as c, AgentSessionExitStatus as d, AgentSessionPr as e, AgentSessionSource as f, AgentSessionStatus as g, AgentTurn as h, AgentTurnStatus as i, AttributionType as j, DeltaFrame as k, DoneFrame as l, GithubAccountType as m, HeartbeatFrame as n, PromptBlockedReason as o, RecordsAppendFrame as p, ResolvedReviewScope as q, ReviewCounters as r, ReviewScope as s, ReviewScopeKind as t, SendSessionMessageRequest as u, SessionExecutionWire as v, SessionFrame as w, SessionLiveness as x, SessionMessageStatus as y, SessionPrompting as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ellipsis-dev/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "TypeScript SDK for the Ellipsis agents platform: /v1 REST types + client, the session stream WebSocket client, and the session transcript store.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -761,44 +761,6 @@
|
|
|
761
761
|
"title": "HeartbeatFrame",
|
|
762
762
|
"type": "object"
|
|
763
763
|
},
|
|
764
|
-
"ModelTokensInfo": {
|
|
765
|
-
"properties": {
|
|
766
|
-
"cache_creation_input_tokens": {
|
|
767
|
-
"default": 0,
|
|
768
|
-
"title": "Cache Creation Input Tokens",
|
|
769
|
-
"type": "integer"
|
|
770
|
-
},
|
|
771
|
-
"cache_read_input_tokens": {
|
|
772
|
-
"default": 0,
|
|
773
|
-
"title": "Cache Read Input Tokens",
|
|
774
|
-
"type": "integer"
|
|
775
|
-
},
|
|
776
|
-
"cost_usd": {
|
|
777
|
-
"default": 0,
|
|
778
|
-
"title": "Cost Usd",
|
|
779
|
-
"type": "number"
|
|
780
|
-
},
|
|
781
|
-
"input_tokens": {
|
|
782
|
-
"default": 0,
|
|
783
|
-
"title": "Input Tokens",
|
|
784
|
-
"type": "integer"
|
|
785
|
-
},
|
|
786
|
-
"output_tokens": {
|
|
787
|
-
"default": 0,
|
|
788
|
-
"title": "Output Tokens",
|
|
789
|
-
"type": "integer"
|
|
790
|
-
}
|
|
791
|
-
},
|
|
792
|
-
"required": [
|
|
793
|
-
"cache_creation_input_tokens",
|
|
794
|
-
"cache_read_input_tokens",
|
|
795
|
-
"cost_usd",
|
|
796
|
-
"input_tokens",
|
|
797
|
-
"output_tokens"
|
|
798
|
-
],
|
|
799
|
-
"title": "ModelTokensInfo",
|
|
800
|
-
"type": "object"
|
|
801
|
-
},
|
|
802
764
|
"ParentKind": {
|
|
803
765
|
"description": "How a session relates to its predecessor (parent_agent_session_id) \u2014\nthe ONE \"preceded-by\" chain for every predecessor relationship. Routing\nreads this when the distinction matters.\n\nCONTINUATION \u2014 a follow-up in the same conversation surface (e.g. a Slack\nthread reply spawning a fresh session on the same thread).\nHANDOFF \u2014 a session started to take over work from another surface (e.g.\nlaptop \u2192 cloud handoff; later phase).\nRESUME \u2014 a conversation re-hosted on a new box after its sandbox was torn\ndown (interactive platform; later phase).",
|
|
804
766
|
"enum": [
|
|
@@ -1312,6 +1274,8 @@
|
|
|
1312
1274
|
"type": "object"
|
|
1313
1275
|
},
|
|
1314
1276
|
"TokensInfo": {
|
|
1277
|
+
"additionalProperties": false,
|
|
1278
|
+
"description": "Token/cost usage, per record (one API call's counts, aggregate fields at\ntheir zero defaults) or aggregated per execution/session\n(compute_spend_from_records derives num_turns and cost_usd).\n\nStrict on purpose: this is our own persisted schema, so an unknown key is a\nwriter bug (the num_turns=0 bug shipped because a Claude Code usage dict\nvalidated leniently against this model, silently zeroing every\nnon-overlapping field). Legacy keys were dropped from persisted blobs by\nthe 2026-07-26 tokens_info migration; per-model usage lives on\n`execution.model_usage` (CC's modelUsage, verbatim).",
|
|
1315
1279
|
"properties": {
|
|
1316
1280
|
"cache_creation_input_tokens": {
|
|
1317
1281
|
"default": 0,
|
|
@@ -1328,11 +1292,6 @@
|
|
|
1328
1292
|
"title": "Cost Usd",
|
|
1329
1293
|
"type": "number"
|
|
1330
1294
|
},
|
|
1331
|
-
"initial_system_prompt_tokens": {
|
|
1332
|
-
"default": 0,
|
|
1333
|
-
"title": "Initial System Prompt Tokens",
|
|
1334
|
-
"type": "integer"
|
|
1335
|
-
},
|
|
1336
1295
|
"input_tokens": {
|
|
1337
1296
|
"default": 0,
|
|
1338
1297
|
"title": "Input Tokens",
|
|
@@ -1347,74 +1306,17 @@
|
|
|
1347
1306
|
"default": 0,
|
|
1348
1307
|
"title": "Output Tokens",
|
|
1349
1308
|
"type": "integer"
|
|
1350
|
-
},
|
|
1351
|
-
"per_model": {
|
|
1352
|
-
"additionalProperties": {
|
|
1353
|
-
"$ref": "#/$defs/ModelTokensInfo"
|
|
1354
|
-
},
|
|
1355
|
-
"default": {},
|
|
1356
|
-
"title": "Per Model",
|
|
1357
|
-
"type": "object"
|
|
1358
|
-
},
|
|
1359
|
-
"per_turn": {
|
|
1360
|
-
"default": [],
|
|
1361
|
-
"items": {
|
|
1362
|
-
"$ref": "#/$defs/TurnTokensInfo"
|
|
1363
|
-
},
|
|
1364
|
-
"title": "Per Turn",
|
|
1365
|
-
"type": "array"
|
|
1366
|
-
},
|
|
1367
|
-
"thinking_tokens": {
|
|
1368
|
-
"default": 0,
|
|
1369
|
-
"title": "Thinking Tokens",
|
|
1370
|
-
"type": "integer"
|
|
1371
1309
|
}
|
|
1372
1310
|
},
|
|
1373
1311
|
"required": [
|
|
1374
1312
|
"cache_creation_input_tokens",
|
|
1375
1313
|
"cache_read_input_tokens",
|
|
1376
1314
|
"cost_usd",
|
|
1377
|
-
"initial_system_prompt_tokens",
|
|
1378
1315
|
"input_tokens",
|
|
1379
1316
|
"num_turns",
|
|
1380
|
-
"output_tokens",
|
|
1381
|
-
"per_model",
|
|
1382
|
-
"per_turn",
|
|
1383
|
-
"thinking_tokens"
|
|
1384
|
-
],
|
|
1385
|
-
"title": "TokensInfo",
|
|
1386
|
-
"type": "object"
|
|
1387
|
-
},
|
|
1388
|
-
"TurnTokensInfo": {
|
|
1389
|
-
"properties": {
|
|
1390
|
-
"cache_creation_input_tokens": {
|
|
1391
|
-
"default": 0,
|
|
1392
|
-
"title": "Cache Creation Input Tokens",
|
|
1393
|
-
"type": "integer"
|
|
1394
|
-
},
|
|
1395
|
-
"cache_read_input_tokens": {
|
|
1396
|
-
"default": 0,
|
|
1397
|
-
"title": "Cache Read Input Tokens",
|
|
1398
|
-
"type": "integer"
|
|
1399
|
-
},
|
|
1400
|
-
"input_tokens": {
|
|
1401
|
-
"default": 0,
|
|
1402
|
-
"title": "Input Tokens",
|
|
1403
|
-
"type": "integer"
|
|
1404
|
-
},
|
|
1405
|
-
"output_tokens": {
|
|
1406
|
-
"default": 0,
|
|
1407
|
-
"title": "Output Tokens",
|
|
1408
|
-
"type": "integer"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
"required": [
|
|
1412
|
-
"cache_creation_input_tokens",
|
|
1413
|
-
"cache_read_input_tokens",
|
|
1414
|
-
"input_tokens",
|
|
1415
1317
|
"output_tokens"
|
|
1416
1318
|
],
|
|
1417
|
-
"title": "
|
|
1319
|
+
"title": "TokensInfo",
|
|
1418
1320
|
"type": "object"
|
|
1419
1321
|
},
|
|
1420
1322
|
"WebhookType": {
|
package/schema/openapi.v1.json
CHANGED
|
@@ -2083,37 +2083,6 @@
|
|
|
2083
2083
|
"title": "ListSessionTurnsResponse",
|
|
2084
2084
|
"type": "object"
|
|
2085
2085
|
},
|
|
2086
|
-
"ModelTokensInfo": {
|
|
2087
|
-
"properties": {
|
|
2088
|
-
"cache_creation_input_tokens": {
|
|
2089
|
-
"default": 0,
|
|
2090
|
-
"title": "Cache Creation Input Tokens",
|
|
2091
|
-
"type": "integer"
|
|
2092
|
-
},
|
|
2093
|
-
"cache_read_input_tokens": {
|
|
2094
|
-
"default": 0,
|
|
2095
|
-
"title": "Cache Read Input Tokens",
|
|
2096
|
-
"type": "integer"
|
|
2097
|
-
},
|
|
2098
|
-
"cost_usd": {
|
|
2099
|
-
"default": 0,
|
|
2100
|
-
"title": "Cost Usd",
|
|
2101
|
-
"type": "number"
|
|
2102
|
-
},
|
|
2103
|
-
"input_tokens": {
|
|
2104
|
-
"default": 0,
|
|
2105
|
-
"title": "Input Tokens",
|
|
2106
|
-
"type": "integer"
|
|
2107
|
-
},
|
|
2108
|
-
"output_tokens": {
|
|
2109
|
-
"default": 0,
|
|
2110
|
-
"title": "Output Tokens",
|
|
2111
|
-
"type": "integer"
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
"title": "ModelTokensInfo",
|
|
2115
|
-
"type": "object"
|
|
2116
|
-
},
|
|
2117
2086
|
"ParentKind": {
|
|
2118
2087
|
"description": "How a session relates to its predecessor (parent_agent_session_id) \u2014\nthe ONE \"preceded-by\" chain for every predecessor relationship. Routing\nreads this when the distinction matters.\n\nCONTINUATION \u2014 a follow-up in the same conversation surface (e.g. a Slack\nthread reply spawning a fresh session on the same thread).\nHANDOFF \u2014 a session started to take over work from another surface (e.g.\nlaptop \u2192 cloud handoff; later phase).\nRESUME \u2014 a conversation re-hosted on a new box after its sandbox was torn\ndown (interactive platform; later phase).",
|
|
2119
2088
|
"enum": [
|
|
@@ -3392,6 +3361,8 @@
|
|
|
3392
3361
|
"type": "object"
|
|
3393
3362
|
},
|
|
3394
3363
|
"TokensInfo": {
|
|
3364
|
+
"additionalProperties": false,
|
|
3365
|
+
"description": "Token/cost usage, per record (one API call's counts, aggregate fields at\ntheir zero defaults) or aggregated per execution/session\n(compute_spend_from_records derives num_turns and cost_usd).\n\nStrict on purpose: this is our own persisted schema, so an unknown key is a\nwriter bug (the num_turns=0 bug shipped because a Claude Code usage dict\nvalidated leniently against this model, silently zeroing every\nnon-overlapping field). Legacy keys were dropped from persisted blobs by\nthe 2026-07-26 tokens_info migration; per-model usage lives on\n`execution.model_usage` (CC's modelUsage, verbatim).",
|
|
3395
3366
|
"properties": {
|
|
3396
3367
|
"cache_creation_input_tokens": {
|
|
3397
3368
|
"default": 0,
|
|
@@ -3408,11 +3379,6 @@
|
|
|
3408
3379
|
"title": "Cost Usd",
|
|
3409
3380
|
"type": "number"
|
|
3410
3381
|
},
|
|
3411
|
-
"initial_system_prompt_tokens": {
|
|
3412
|
-
"default": 0,
|
|
3413
|
-
"title": "Initial System Prompt Tokens",
|
|
3414
|
-
"type": "integer"
|
|
3415
|
-
},
|
|
3416
3382
|
"input_tokens": {
|
|
3417
3383
|
"default": 0,
|
|
3418
3384
|
"title": "Input Tokens",
|
|
@@ -3427,58 +3393,11 @@
|
|
|
3427
3393
|
"default": 0,
|
|
3428
3394
|
"title": "Output Tokens",
|
|
3429
3395
|
"type": "integer"
|
|
3430
|
-
},
|
|
3431
|
-
"per_model": {
|
|
3432
|
-
"additionalProperties": {
|
|
3433
|
-
"$ref": "#/components/schemas/ModelTokensInfo"
|
|
3434
|
-
},
|
|
3435
|
-
"default": {},
|
|
3436
|
-
"title": "Per Model",
|
|
3437
|
-
"type": "object"
|
|
3438
|
-
},
|
|
3439
|
-
"per_turn": {
|
|
3440
|
-
"default": [],
|
|
3441
|
-
"items": {
|
|
3442
|
-
"$ref": "#/components/schemas/TurnTokensInfo"
|
|
3443
|
-
},
|
|
3444
|
-
"title": "Per Turn",
|
|
3445
|
-
"type": "array"
|
|
3446
|
-
},
|
|
3447
|
-
"thinking_tokens": {
|
|
3448
|
-
"default": 0,
|
|
3449
|
-
"title": "Thinking Tokens",
|
|
3450
|
-
"type": "integer"
|
|
3451
3396
|
}
|
|
3452
3397
|
},
|
|
3453
3398
|
"title": "TokensInfo",
|
|
3454
3399
|
"type": "object"
|
|
3455
3400
|
},
|
|
3456
|
-
"TurnTokensInfo": {
|
|
3457
|
-
"properties": {
|
|
3458
|
-
"cache_creation_input_tokens": {
|
|
3459
|
-
"default": 0,
|
|
3460
|
-
"title": "Cache Creation Input Tokens",
|
|
3461
|
-
"type": "integer"
|
|
3462
|
-
},
|
|
3463
|
-
"cache_read_input_tokens": {
|
|
3464
|
-
"default": 0,
|
|
3465
|
-
"title": "Cache Read Input Tokens",
|
|
3466
|
-
"type": "integer"
|
|
3467
|
-
},
|
|
3468
|
-
"input_tokens": {
|
|
3469
|
-
"default": 0,
|
|
3470
|
-
"title": "Input Tokens",
|
|
3471
|
-
"type": "integer"
|
|
3472
|
-
},
|
|
3473
|
-
"output_tokens": {
|
|
3474
|
-
"default": 0,
|
|
3475
|
-
"title": "Output Tokens",
|
|
3476
|
-
"type": "integer"
|
|
3477
|
-
}
|
|
3478
|
-
},
|
|
3479
|
-
"title": "TurnTokensInfo",
|
|
3480
|
-
"type": "object"
|
|
3481
|
-
},
|
|
3482
3401
|
"ValidationError": {
|
|
3483
3402
|
"properties": {
|
|
3484
3403
|
"ctx": {
|