You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema/schema.unstable.json
+121Lines changed: 121 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1013,6 +1013,22 @@
1013
1013
"required": ["content"],
1014
1014
"type": "object"
1015
1015
},
1016
+
"Cost": {
1017
+
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nCost information for a session.",
1018
+
"properties": {
1019
+
"amount": {
1020
+
"description": "Total cumulative cost for session.",
"description": "Request to create a new terminal and execute a command.",
1018
1034
"properties": {
@@ -2224,6 +2240,17 @@
2224
2240
}
2225
2241
],
2226
2242
"description": "Indicates why the agent stopped processing the turn."
2243
+
},
2244
+
"usage": {
2245
+
"anyOf": [
2246
+
{
2247
+
"$ref": "#/$defs/Usage"
2248
+
},
2249
+
{
2250
+
"type": "null"
2251
+
}
2252
+
],
2253
+
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nToken usage for this turn (optional)."
2227
2254
}
2228
2255
},
2229
2256
"required": ["stopReason"],
@@ -3191,6 +3218,22 @@
3191
3218
},
3192
3219
"required": ["sessionUpdate"],
3193
3220
"type": "object"
3221
+
},
3222
+
{
3223
+
"allOf": [
3224
+
{
3225
+
"$ref": "#/$defs/UsageUpdate"
3226
+
}
3227
+
],
3228
+
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nContext window and cost update for the session.",
3229
+
"properties": {
3230
+
"sessionUpdate": {
3231
+
"const": "usage_update",
3232
+
"type": "string"
3233
+
}
3234
+
},
3235
+
"required": ["sessionUpdate"],
3236
+
"type": "object"
3194
3237
}
3195
3238
]
3196
3239
},
@@ -3813,6 +3856,84 @@
3813
3856
"required": ["hint"],
3814
3857
"type": "object"
3815
3858
},
3859
+
"Usage": {
3860
+
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nToken usage information for a prompt turn.",
3861
+
"properties": {
3862
+
"cachedReadTokens": {
3863
+
"description": "Total cache read tokens.",
3864
+
"format": "uint64",
3865
+
"minimum": 0,
3866
+
"type": ["integer", "null"]
3867
+
},
3868
+
"cachedWriteTokens": {
3869
+
"description": "Total cache write tokens.",
3870
+
"format": "uint64",
3871
+
"minimum": 0,
3872
+
"type": ["integer", "null"]
3873
+
},
3874
+
"inputTokens": {
3875
+
"description": "Total input tokens across all turns.",
3876
+
"format": "uint64",
3877
+
"minimum": 0,
3878
+
"type": "integer"
3879
+
},
3880
+
"outputTokens": {
3881
+
"description": "Total output tokens across all turns.",
3882
+
"format": "uint64",
3883
+
"minimum": 0,
3884
+
"type": "integer"
3885
+
},
3886
+
"thoughtTokens": {
3887
+
"description": "Total thought/reasoning tokens",
3888
+
"format": "uint64",
3889
+
"minimum": 0,
3890
+
"type": ["integer", "null"]
3891
+
},
3892
+
"totalTokens": {
3893
+
"description": "Sum of all token types across session.",
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nContext window and cost update for a session.",
3904
+
"properties": {
3905
+
"_meta": {
3906
+
"additionalProperties": true,
3907
+
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
0 commit comments