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
description="Sum of all token types across session.",
950
+
ge=0,
951
+
),
952
+
]
953
+
954
+
955
+
class_UsageUpdate(BaseModel):
956
+
# The _meta property is reserved by ACP to allow clients and agents to attach additional
957
+
# metadata to their interactions. Implementations MUST NOT make assumptions about values at
958
+
# these keys.
959
+
#
960
+
# See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
961
+
field_meta: Annotated[
962
+
Optional[Dict[str, Any]],
963
+
Field(
964
+
alias="_meta",
965
+
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)",
size: Annotated[int, Field(description="Total context window size in tokens.", ge=0)]
972
+
# Tokens currently in context.
973
+
used: Annotated[int, Field(description="Tokens currently in context.", ge=0)]
974
+
975
+
903
976
classWaitForTerminalExitRequest(BaseModel):
904
977
# The _meta property is reserved by ACP to allow clients and agents to attach additional
905
978
# metadata to their interactions. Implementations MUST NOT make assumptions about values at
@@ -1423,6 +1496,17 @@ class PromptResponse(BaseModel):
1423
1496
description="Indicates why the agent stopped processing the turn.",
1424
1497
),
1425
1498
]
1499
+
# **UNSTABLE**
1500
+
#
1501
+
# This capability is not part of the spec yet, and may be removed or changed at any point.
1502
+
#
1503
+
# Token usage for this turn (optional).
1504
+
usage: Annotated[
1505
+
Optional[Usage],
1506
+
Field(
1507
+
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)."
1508
+
),
1509
+
] =None
1426
1510
1427
1511
1428
1512
classReadTextFileRequest(BaseModel):
@@ -1666,6 +1750,10 @@ class CurrentModeUpdate(_CurrentModeUpdate):
# The _meta property is reserved by ACP to allow clients and agents to attach additional
1671
1759
# metadata to their interactions. Implementations MUST NOT make assumptions about values at
@@ -2220,6 +2308,11 @@ class SessionConfigOptionSelect(SessionConfigSelect):
2220
2308
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)",
2221
2309
),
2222
2310
] =None
2311
+
# Optional semantic category for this option (UX only).
2312
+
category: Annotated[
2313
+
Optional[str],
2314
+
Field(description="Optional semantic category for this option (UX only)."),
2315
+
] =None
2223
2316
# Optional description for the Client to display to the user.
2224
2317
description: Annotated[
2225
2318
Optional[str],
@@ -2233,15 +2326,11 @@ class SessionConfigOptionSelect(SessionConfigSelect):
# This capability is not part of the spec yet, and may be removed or changed at any point.
2239
-
#
2240
2329
# A session configuration option selector and its current state.
2241
2330
root: Annotated[
2242
2331
SessionConfigOptionSelect,
2243
2332
Field(
2244
-
description="**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nA session configuration option selector and its current state.",
2333
+
description="A session configuration option selector and its current state.",
2245
2334
discriminator="type",
2246
2335
),
2247
2336
]
@@ -2350,16 +2439,12 @@ class ForkSessionResponse(BaseModel):
2350
2439
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)",
2351
2440
),
2352
2441
] =None
2353
-
# **UNSTABLE**
2354
-
#
2355
-
# This capability is not part of the spec yet, and may be removed or changed at any point.
2356
-
#
2357
2442
# Initial session configuration options if supported by the Agent.
2358
2443
config_options: Annotated[
2359
2444
Optional[List[SessionConfigOption]],
2360
2445
Field(
2361
2446
alias="configOptions",
2362
-
description="**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInitial session configuration options if supported by the Agent.",
2447
+
description="Initial session configuration options if supported by the Agent.",
2363
2448
),
2364
2449
] =None
2365
2450
# **UNSTABLE**
@@ -2405,16 +2490,12 @@ class LoadSessionResponse(BaseModel):
2405
2490
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)",
2406
2491
),
2407
2492
] =None
2408
-
# **UNSTABLE**
2409
-
#
2410
-
# This capability is not part of the spec yet, and may be removed or changed at any point.
2411
-
#
2412
2493
# Initial session configuration options if supported by the Agent.
2413
2494
config_options: Annotated[
2414
2495
Optional[List[SessionConfigOption]],
2415
2496
Field(
2416
2497
alias="configOptions",
2417
-
description="**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInitial session configuration options if supported by the Agent.",
2498
+
description="Initial session configuration options if supported by the Agent.",
2418
2499
),
2419
2500
] =None
2420
2501
# **UNSTABLE**
@@ -2452,16 +2533,12 @@ class NewSessionResponse(BaseModel):
2452
2533
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)",
2453
2534
),
2454
2535
] =None
2455
-
# **UNSTABLE**
2456
-
#
2457
-
# This capability is not part of the spec yet, and may be removed or changed at any point.
2458
-
#
2459
2536
# Initial session configuration options if supported by the Agent.
2460
2537
config_options: Annotated[
2461
2538
Optional[List[SessionConfigOption]],
2462
2539
Field(
2463
2540
alias="configOptions",
2464
-
description="**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInitial session configuration options if supported by the Agent.",
2541
+
description="Initial session configuration options if supported by the Agent.",
2465
2542
),
2466
2543
] =None
2467
2544
# **UNSTABLE**
@@ -2539,16 +2616,12 @@ class ResumeSessionResponse(BaseModel):
2539
2616
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)",
2540
2617
),
2541
2618
] =None
2542
-
# **UNSTABLE**
2543
-
#
2544
-
# This capability is not part of the spec yet, and may be removed or changed at any point.
2545
-
#
2546
2619
# Initial session configuration options if supported by the Agent.
2547
2620
config_options: Annotated[
2548
2621
Optional[List[SessionConfigOption]],
2549
2622
Field(
2550
2623
alias="configOptions",
2551
-
description="**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInitial session configuration options if supported by the Agent.",
2624
+
description="Initial session configuration options if supported by the Agent.",
2552
2625
),
2553
2626
] =None
2554
2627
# **UNSTABLE**
@@ -2757,6 +2830,7 @@ class SessionNotification(BaseModel):
2757
2830
CurrentModeUpdate,
2758
2831
ConfigOptionUpdate,
2759
2832
SessionInfoUpdate,
2833
+
UsageUpdate,
2760
2834
],
2761
2835
Field(description="The actual update content.", discriminator="session_update"),
0 commit comments