106 106
107 - `"agent.session.environment.ready"`107 - `"agent.session.environment.ready"`
108 108
109- `obfuscation: optional string`
110
111 Random alphanumeric padding. Present when stream obfuscation is enabled.
112
113 `minLength: 0`
114
109### Example115### Example
110 116
111```json117```json
123 "code": "code",129 "code": "code",
124 "message": "message"130 "message": "message"
125 }131 }
126 }132 },
133 "obfuscation": "obfuscation"
127}134}
128```135```
129 136
231 238
232 - `"agent.session.environment.suspended"`239 - `"agent.session.environment.suspended"`
233 240
241- `obfuscation: optional string`
242
243 Random alphanumeric padding. Present when stream obfuscation is enabled.
244
245 `minLength: 0`
246
234### Example247### Example
235 248
236```json249```json
248 "code": "code",261 "code": "code",
249 "message": "message"262 "message": "message"
250 }263 }
251 }264 },
265 "obfuscation": "obfuscation"
252}266}
253```267```
254 268
356 370
357 - `"agent.session.environment.expired"`371 - `"agent.session.environment.expired"`
358 372
373- `obfuscation: optional string`
374
375 Random alphanumeric padding. Present when stream obfuscation is enabled.
376
377 `minLength: 0`
378
359### Example379### Example
360 380
361```json381```json
373 "code": "code",393 "code": "code",
374 "message": "message"394 "message": "message"
375 }395 }
376 }396 },
397 "obfuscation": "obfuscation"
377}398}
378```399```
379 400
423 444
424 - `"agent.session.environment.reset"`445 - `"agent.session.environment.reset"`
425 446
447- `obfuscation: optional string`
448
449 Random alphanumeric padding. Present when stream obfuscation is enabled.
450
451 `minLength: 0`
452
426### Example453### Example
427 454
428```json455```json
432 "session_id": "session_id",459 "session_id": "session_id",
433 "turn_id": "turn_id",460 "turn_id": "turn_id",
434 "environment_id": "environment_id",461 "environment_id": "environment_id",
435 "reset_count": 0462 "reset_count": 0,
463 "obfuscation": "obfuscation"
436}464}
437```465```
438 466
488 516
489 - `"agent.output.command_execution_output.delta"`517 - `"agent.output.command_execution_output.delta"`
490 518
519- `obfuscation: optional string`
520
521 Random alphanumeric padding. Present when stream obfuscation is enabled.
522
523 `minLength: 0`
524
491### Example525### Example
492 526
493```json527```json
498 "turn_id": "turn_id",532 "turn_id": "turn_id",
499 "item_id": "item_id",533 "item_id": "item_id",
500 "output_index": 0,534 "output_index": 0,
501 "delta": "delta"535 "delta": "delta",
536 "obfuscation": "obfuscation"
502}537}
503```538```
504 539
672 707
673 `minItems: 0`, `maxItems: 2000`708 `minItems: 0`, `maxItems: 2000`
674 709
675 - `Function object { defer_loading, description, name, 2 more }`710 - `Function object { defer_loading, description, name, 3 more }`
676 711
677 A function defined by the application.712 A function defined by the application.
678 713
702 737
703 - `"function"`738 - `"function"`
704 739
740 - `async: optional boolean`
741
742 Whether the agent continues without waiting for the function result.
743
705 - `ProgrammaticToolCalling object { enabled, type }`744 - `ProgrammaticToolCalling object { enabled, type }`
706 745
707 Enables calling tools from model-generated code.746 Enables calling tools from model-generated code.
1494 1533
1495 - `"agent.session.created"`1534 - `"agent.session.created"`
1496 1535
1536- `obfuscation: optional string`
1537
1538 Random alphanumeric padding. Present when stream obfuscation is enabled.
1539
1540 `minLength: 0`
1541
1497### Example1542### Example
1498 1543
1499```json1544```json
1564 "parameters": {1609 "parameters": {
1565 "foo": "bar"1610 "foo": "bar"
1566 },1611 },
1567 "defer_loading": true1612 "defer_loading": true,
1613 "async": true
1568 }1614 }
1569 ],1615 ],
1570 "multi_agent": {1616 "multi_agent": {
1595 },1641 },
1596 "total_tokens": 01642 "total_tokens": 0
1597 }1643 }
1598 }1644 },
1645 "obfuscation": "obfuscation"
1599}1646}
1600```1647```
1601 1648
1865 1912
1866 - `"agent.session.turn.created"`1913 - `"agent.session.turn.created"`
1867 1914
1915- `obfuscation: optional string`
1916
1917 Random alphanumeric padding. Present when stream obfuscation is enabled.
1918
1919 `minLength: 0`
1920
1868### Example1921### Example
1869 1922
1870```json1923```json
1898 },1951 },
1899 "total_tokens": 01952 "total_tokens": 0
1900 }1953 }
1901 }1954 },
1955 "obfuscation": "obfuscation"
1902}1956}
1903```1957```
1904 1958
2168 2222
2169 - `"agent.session.turn.in_progress"`2223 - `"agent.session.turn.in_progress"`
2170 2224
2225- `obfuscation: optional string`
2226
2227 Random alphanumeric padding. Present when stream obfuscation is enabled.
2228
2229 `minLength: 0`
2230
2171### Example2231### Example
2172 2232
2173```json2233```json
2201 },2261 },
2202 "total_tokens": 02262 "total_tokens": 0
2203 }2263 }
2204 }2264 },
2265 "obfuscation": "obfuscation"
2205}2266}
2206```2267```
2207 2268
2475 2536
2476 Token usage by the root agent during the turn, when available.2537 Token usage by the root agent during the turn, when available.
2477 2538
2539- `obfuscation: optional string`
2540
2541 Random alphanumeric padding. Present when stream obfuscation is enabled.
2542
2543 `minLength: 0`
2544
2478### Example2545### Example
2479 2546
2480```json2547```json
2519 "reasoning_tokens": 02586 "reasoning_tokens": 0
2520 },2587 },
2521 "total_tokens": 02588 "total_tokens": 0
2522 }2589 },
2590 "obfuscation": "obfuscation"
2523}2591}
2524```2592```
2525 2593
2793 2861
2794 Token usage by the root agent during the turn, when available.2862 Token usage by the root agent during the turn, when available.
2795 2863
2864- `obfuscation: optional string`
2865
2866 Random alphanumeric padding. Present when stream obfuscation is enabled.
2867
2868 `minLength: 0`
2869
2796### Example2870### Example
2797 2871
2798```json2872```json
2837 "reasoning_tokens": 02911 "reasoning_tokens": 0
2838 },2912 },
2839 "total_tokens": 02913 "total_tokens": 0
2840 }2914 },
2915 "obfuscation": "obfuscation"
2841}2916}
2842```2917```
2843 2918
3111 3186
3112 Token usage by the root agent during the turn, when available.3187 Token usage by the root agent during the turn, when available.
3113 3188
3189- `obfuscation: optional string`
3190
3191 Random alphanumeric padding. Present when stream obfuscation is enabled.
3192
3193 `minLength: 0`
3194
3114### Example3195### Example
3115 3196
3116```json3197```json
3155 "reasoning_tokens": 03236 "reasoning_tokens": 0
3156 },3237 },
3157 "total_tokens": 03238 "total_tokens": 0
3158 }3239 },
3240 "obfuscation": "obfuscation"
3159}3241}
3160```3242```
3161 3243
4241 4323
4242 - `"agent.session.turn.item.added"`4324 - `"agent.session.turn.item.added"`
4243 4325
4326- `obfuscation: optional string`
4327
4328 Random alphanumeric padding. Present when stream obfuscation is enabled.
4329
4330 `minLength: 0`
4331
4244### Example4332### Example
4245 4333
4246```json4334```json
4263 ],4351 ],
4264 "status": "in_progress",4352 "status": "in_progress",
4265 "phase": "commentary"4353 "phase": "commentary"
4266 }4354 },
4355 "obfuscation": "obfuscation"
4267}4356}
4268```4357```
4269 4358
4437 4526
4438 `minItems: 0`, `maxItems: 2000`4527 `minItems: 0`, `maxItems: 2000`
4439 4528
4440 - `Function object { defer_loading, description, name, 2 more }`4529 - `Function object { defer_loading, description, name, 3 more }`
4441 4530
4442 A function defined by the application.4531 A function defined by the application.
4443 4532
4467 4556
4468 - `"function"`4557 - `"function"`
4469 4558
4559 - `async: optional boolean`
4560
4561 Whether the agent continues without waiting for the function result.
4562
4470 - `ProgrammaticToolCalling object { enabled, type }`4563 - `ProgrammaticToolCalling object { enabled, type }`
4471 4564
4472 Enables calling tools from model-generated code.4565 Enables calling tools from model-generated code.
5259 5352
5260 - `"agent.session.idle"`5353 - `"agent.session.idle"`
5261 5354
5355- `obfuscation: optional string`
5356
5357 Random alphanumeric padding. Present when stream obfuscation is enabled.
5358
5359 `minLength: 0`
5360
5262### Example5361### Example
5263 5362
5264```json5363```json
5329 "parameters": {5428 "parameters": {
5330 "foo": "bar"5429 "foo": "bar"
5331 },5430 },
5332 "defer_loading": true5431 "defer_loading": true,
5432 "async": true
5333 }5433 }
5334 ],5434 ],
5335 "multi_agent": {5435 "multi_agent": {
5360 },5460 },
5361 "total_tokens": 05461 "total_tokens": 0
5362 }5462 }
5363 }5463 },
5464 "obfuscation": "obfuscation"
5364}5465}
5365```5466```
5366 5467
5534 5635
5535 `minItems: 0`, `maxItems: 2000`5636 `minItems: 0`, `maxItems: 2000`
5536 5637
5537 - `Function object { defer_loading, description, name, 2 more }`5638 - `Function object { defer_loading, description, name, 3 more }`
5538 5639
5539 A function defined by the application.5640 A function defined by the application.
5540 5641
5564 5665
5565 - `"function"`5666 - `"function"`
5566 5667
5668 - `async: optional boolean`
5669
5670 Whether the agent continues without waiting for the function result.
5671
5567 - `ProgrammaticToolCalling object { enabled, type }`5672 - `ProgrammaticToolCalling object { enabled, type }`
5568 5673
5569 Enables calling tools from model-generated code.5674 Enables calling tools from model-generated code.
6356 6461
6357 - `"agent.session.in_progress"`6462 - `"agent.session.in_progress"`
6358 6463
6464- `obfuscation: optional string`
6465
6466 Random alphanumeric padding. Present when stream obfuscation is enabled.
6467
6468 `minLength: 0`
6469
6359### Example6470### Example
6360 6471
6361```json6472```json
6426 "parameters": {6537 "parameters": {
6427 "foo": "bar"6538 "foo": "bar"
6428 },6539 },
6429 "defer_loading": true6540 "defer_loading": true,
6541 "async": true
6430 }6542 }
6431 ],6543 ],
6432 "multi_agent": {6544 "multi_agent": {
6457 },6569 },
6458 "total_tokens": 06570 "total_tokens": 0
6459 }6571 }
6460 }6572 },
6573 "obfuscation": "obfuscation"
6461}6574}
6462```6575```
6463 6576
6631 6744
6632 `minItems: 0`, `maxItems: 2000`6745 `minItems: 0`, `maxItems: 2000`
6633 6746
6634 - `Function object { defer_loading, description, name, 2 more }`6747 - `Function object { defer_loading, description, name, 3 more }`
6635 6748
6636 A function defined by the application.6749 A function defined by the application.
6637 6750
6661 6774
6662 - `"function"`6775 - `"function"`
6663 6776
6777 - `async: optional boolean`
6778
6779 Whether the agent continues without waiting for the function result.
6780
6664 - `ProgrammaticToolCalling object { enabled, type }`6781 - `ProgrammaticToolCalling object { enabled, type }`
6665 6782
6666 Enables calling tools from model-generated code.6783 Enables calling tools from model-generated code.
7453 7570
7454 - `"agent.session.requires_action"`7571 - `"agent.session.requires_action"`
7455 7572
7573- `obfuscation: optional string`
7574
7575 Random alphanumeric padding. Present when stream obfuscation is enabled.
7576
7577 `minLength: 0`
7578
7456### Example7579### Example
7457 7580
7458```json7581```json
7523 "parameters": {7646 "parameters": {
7524 "foo": "bar"7647 "foo": "bar"
7525 },7648 },
7526 "defer_loading": true7649 "defer_loading": true,
7650 "async": true
7527 }7651 }
7528 ],7652 ],
7529 "multi_agent": {7653 "multi_agent": {
7554 },7678 },
7555 "total_tokens": 07679 "total_tokens": 0
7556 }7680 }
7557 }7681 },
7682 "obfuscation": "obfuscation"
7558}7683}
7559```7684```
7560 7685
7728 7853
7729 `minItems: 0`, `maxItems: 2000`7854 `minItems: 0`, `maxItems: 2000`
7730 7855
7731 - `Function object { defer_loading, description, name, 2 more }`7856 - `Function object { defer_loading, description, name, 3 more }`
7732 7857
7733 A function defined by the application.7858 A function defined by the application.
7734 7859
7758 7883
7759 - `"function"`7884 - `"function"`
7760 7885
7886 - `async: optional boolean`
7887
7888 Whether the agent continues without waiting for the function result.
7889
7761 - `ProgrammaticToolCalling object { enabled, type }`7890 - `ProgrammaticToolCalling object { enabled, type }`
7762 7891
7763 Enables calling tools from model-generated code.7892 Enables calling tools from model-generated code.
8550 8679
8551 - `"agent.session.failed"`8680 - `"agent.session.failed"`
8552 8681
8682- `obfuscation: optional string`
8683
8684 Random alphanumeric padding. Present when stream obfuscation is enabled.
8685
8686 `minLength: 0`
8687
8553### Example8688### Example
8554 8689
8555```json8690```json
8620 "parameters": {8755 "parameters": {
8621 "foo": "bar"8756 "foo": "bar"
8622 },8757 },
8623 "defer_loading": true8758 "defer_loading": true,
8759 "async": true
8624 }8760 }
8625 ],8761 ],
8626 "multi_agent": {8762 "multi_agent": {
8651 },8787 },
8652 "total_tokens": 08788 "total_tokens": 0
8653 }8789 }
8654 }8790 },
8791 "obfuscation": "obfuscation"
8655}8792}
8656```8793```
8657 8794
8759 8896
8760 - `"agent.session.environment.pending"`8897 - `"agent.session.environment.pending"`
8761 8898
8899- `obfuscation: optional string`
8900
8901 Random alphanumeric padding. Present when stream obfuscation is enabled.
8902
8903 `minLength: 0`
8904
8762### Example8905### Example
8763 8906
8764```json8907```json
8776 "code": "code",8919 "code": "code",
8777 "message": "message"8920 "message": "message"
8778 }8921 }
8779 }8922 },
8923 "obfuscation": "obfuscation"
8780}8924}
8781```8925```
8782 8926
8884 9028
8885 - `"agent.session.environment.connected"`9029 - `"agent.session.environment.connected"`
8886 9030
9031- `obfuscation: optional string`
9032
9033 Random alphanumeric padding. Present when stream obfuscation is enabled.
9034
9035 `minLength: 0`
9036
8887### Example9037### Example
8888 9038
8889```json9039```json
8901 "code": "code",9051 "code": "code",
8902 "message": "message"9052 "message": "message"
8903 }9053 }
8904 }9054 },
9055 "obfuscation": "obfuscation"
8905}9056}
8906```9057```
8907 9058
9009 9160
9010 - `"agent.session.environment.disconnected"`9161 - `"agent.session.environment.disconnected"`
9011 9162
9163- `obfuscation: optional string`
9164
9165 Random alphanumeric padding. Present when stream obfuscation is enabled.
9166
9167 `minLength: 0`
9168
9012### Example9169### Example
9013 9170
9014```json9171```json
9026 "code": "code",9183 "code": "code",
9027 "message": "message"9184 "message": "message"
9028 }9185 }
9029 }9186 },
9187 "obfuscation": "obfuscation"
9030}9188}
9031```9189```
9032 9190
9134 9292
9135 - `"agent.session.environment.failed"`9293 - `"agent.session.environment.failed"`
9136 9294
9295- `obfuscation: optional string`
9296
9297 Random alphanumeric padding. Present when stream obfuscation is enabled.
9298
9299 `minLength: 0`
9300
9137### Example9301### Example
9138 9302
9139```json9303```json
9151 "code": "code",9315 "code": "code",
9152 "message": "message"9316 "message": "message"
9153 }9317 }
9154 }9318 },
9319 "obfuscation": "obfuscation"
9155}9320}
9156```9321```
9157 9322
9273 9438
9274 - `"agent.session.subagent.created"`9439 - `"agent.session.subagent.created"`
9275 9440
9441- `obfuscation: optional string`
9442
9443 Random alphanumeric padding. Present when stream obfuscation is enabled.
9444
9445 `minLength: 0`
9446
9276### Example9447### Example
9277 9448
9278```json9449```json
9294 "status": "active",9465 "status": "active",
9295 "opened_at": 0,9466 "opened_at": 0,
9296 "closed_at": 09467 "closed_at": 0
9297 }9468 },
9469 "obfuscation": "obfuscation"
9298}9470}
9299```9471```
9300 9472
9416 9588
9417 - `"agent.session.subagent.active"`9589 - `"agent.session.subagent.active"`
9418 9590
9591- `obfuscation: optional string`
9592
9593 Random alphanumeric padding. Present when stream obfuscation is enabled.
9594
9595 `minLength: 0`
9596
9419### Example9597### Example
9420 9598
9421```json9599```json
9437 "status": "active",9615 "status": "active",
9438 "opened_at": 0,9616 "opened_at": 0,
9439 "closed_at": 09617 "closed_at": 0
9440 }9618 },
9619 "obfuscation": "obfuscation"
9441}9620}
9442```9621```
9443 9622
9559 9738
9560 - `"agent.session.subagent.closed"`9739 - `"agent.session.subagent.closed"`
9561 9740
9741- `obfuscation: optional string`
9742
9743 Random alphanumeric padding. Present when stream obfuscation is enabled.
9744
9745 `minLength: 0`
9746
9562### Example9747### Example
9563 9748
9564```json9749```json
9580 "status": "active",9765 "status": "active",
9581 "opened_at": 0,9766 "opened_at": 0,
9582 "closed_at": 09767 "closed_at": 0
9583 }9768 },
9769 "obfuscation": "obfuscation"
9584}9770}
9585```9771```
9586 9772
10440 10626
10441 - `"agent.session.turn.item.done"`10627 - `"agent.session.turn.item.done"`
10442 10628
10629- `obfuscation: optional string`
10630
10631 Random alphanumeric padding. Present when stream obfuscation is enabled.
10632
10633 `minLength: 0`
10634
10443### Example10635### Example
10444 10636
10445```json10637```json
10462 }10654 }
10463 ],10655 ],
10464 "phase": "commentary"10656 "phase": "commentary"
10465 }10657 },
10658 "obfuscation": "obfuscation"
10466}10659}
10467```10660```
10468 10661
10534 10727
10535 - `"agent.session.turn.content_part.added"`10728 - `"agent.session.turn.content_part.added"`
10536 10729
10730- `obfuscation: optional string`
10731
10732 Random alphanumeric padding. Present when stream obfuscation is enabled.
10733
10734 `minLength: 0`
10735
10537### Example10736### Example
10538 10737
10539```json10738```json
10548 "part": {10747 "part": {
10549 "type": "output_text",10748 "type": "output_text",
10550 "text": "text"10749 "text": "text"
10551 }10750 },
10751 "obfuscation": "obfuscation"
10552}10752}
10553```10753```
10554 10754
10620 10820
10621 - `"agent.session.turn.content_part.done"`10821 - `"agent.session.turn.content_part.done"`
10622 10822
10823- `obfuscation: optional string`
10824
10825 Random alphanumeric padding. Present when stream obfuscation is enabled.
10826
10827 `minLength: 0`
10828
10623### Example10829### Example
10624 10830
10625```json10831```json
10634 "part": {10840 "part": {
10635 "type": "output_text",10841 "type": "output_text",
10636 "text": "text"10842 "text": "text"
10637 }10843 },
10844 "obfuscation": "obfuscation"
10638}10845}
10639```10846```
10640 10847
10696 10903
10697 - `"agent.session.turn.output_text.delta"`10904 - `"agent.session.turn.output_text.delta"`
10698 10905
10906- `obfuscation: optional string`
10907
10908 Random alphanumeric padding. Present when stream obfuscation is enabled.
10909
10910 `minLength: 0`
10911
10699### Example10912### Example
10700 10913
10701```json10914```json
10707 "item_id": "item_id",10920 "item_id": "item_id",
10708 "output_index": 0,10921 "output_index": 0,
10709 "content_index": 0,10922 "content_index": 0,
10710 "delta": "delta"10923 "delta": "delta",
10924 "obfuscation": "obfuscation"
10711}10925}
10712```10926```
10713 10927
10769 10983
10770 - `"agent.session.turn.output_text.done"`10984 - `"agent.session.turn.output_text.done"`
10771 10985
10986- `obfuscation: optional string`
10987
10988 Random alphanumeric padding. Present when stream obfuscation is enabled.
10989
10990 `minLength: 0`
10991
10772### Example10992### Example
10773 10993
10774```json10994```json
10780 "item_id": "item_id",11000 "item_id": "item_id",
10781 "output_index": 0,11001 "output_index": 0,
10782 "content_index": 0,11002 "content_index": 0,
10783 "text": "text"11003 "text": "text",
11004 "obfuscation": "obfuscation"
10784}11005}
10785```11006```
10786 11007
10852 11073
10853 - `"agent.session.turn.reasoning_summary_part.added"`11074 - `"agent.session.turn.reasoning_summary_part.added"`
10854 11075
11076- `obfuscation: optional string`
11077
11078 Random alphanumeric padding. Present when stream obfuscation is enabled.
11079
11080 `minLength: 0`
11081
10855### Example11082### Example
10856 11083
10857```json11084```json
10866 "part": {11093 "part": {
10867 "type": "summary_text",11094 "type": "summary_text",
10868 "text": "text"11095 "text": "text"
10869 }11096 },
11097 "obfuscation": "obfuscation"
10870}11098}
10871```11099```
10872 11100
10944 11172
10945 - `"agent.session.turn.reasoning_summary_part.done"`11173 - `"agent.session.turn.reasoning_summary_part.done"`
10946 11174
11175- `obfuscation: optional string`
11176
11177 Random alphanumeric padding. Present when stream obfuscation is enabled.
11178
11179 `minLength: 0`
11180
10947### Example11181### Example
10948 11182
10949```json11183```json
10959 "type": "summary_text",11193 "type": "summary_text",
10960 "text": "text"11194 "text": "text"
10961 },11195 },
10962 "status": "incomplete"11196 "status": "incomplete",
11197 "obfuscation": "obfuscation"
10963}11198}
10964```11199```
10965 11200
11021 11256
11022 - `"agent.session.turn.reasoning_summary_text.delta"`11257 - `"agent.session.turn.reasoning_summary_text.delta"`
11023 11258
11259- `obfuscation: optional string`
11260
11261 Random alphanumeric padding. Present when stream obfuscation is enabled.
11262
11263 `minLength: 0`
11264
11024### Example11265### Example
11025 11266
11026```json11267```json
11032 "item_id": "item_id",11273 "item_id": "item_id",
11033 "output_index": 0,11274 "output_index": 0,
11034 "summary_index": 0,11275 "summary_index": 0,
11035 "delta": "delta"11276 "delta": "delta",
11277 "obfuscation": "obfuscation"
11036}11278}
11037```11279```
11038 11280
11094 11336
11095 - `"agent.session.turn.reasoning_summary_text.done"`11337 - `"agent.session.turn.reasoning_summary_text.done"`
11096 11338
11339- `obfuscation: optional string`
11340
11341 Random alphanumeric padding. Present when stream obfuscation is enabled.
11342
11343 `minLength: 0`
11344
11097### Example11345### Example
11098 11346
11099```json11347```json
11105 "item_id": "item_id",11353 "item_id": "item_id",
11106 "output_index": 0,11354 "output_index": 0,
11107 "summary_index": 0,11355 "summary_index": 0,
11108 "text": "text"11356 "text": "text",
11357 "obfuscation": "obfuscation"
11109}11358}
11110```11359```
11111 11360
11165 11414
11166 - `"error"`11415 - `"error"`
11167 11416
11417- `obfuscation: optional string`
11418
11419 Random alphanumeric padding. Present when stream obfuscation is enabled.
11420
11421 `minLength: 0`
11422
11168### Example11423### Example
11169 11424
11170```json11425```json