ag-ui 0.1.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.
data/data/ag_ui.json ADDED
@@ -0,0 +1,3890 @@
1
+ {
2
+ "$comment": "Generated by data/generate-ag-ui-schema.py from ag-ui sdks/python (77 models). Do not edit.",
3
+ "definitions": {
4
+ "ActivityDeltaEvent": {
5
+ "additionalProperties": true,
6
+ "description": "Event containing a JSON Patch delta for an activity message.",
7
+ "properties": {
8
+ "activityType": {
9
+ "title": "Activitytype",
10
+ "type": "string"
11
+ },
12
+ "messageId": {
13
+ "title": "Messageid",
14
+ "type": "string"
15
+ },
16
+ "patch": {
17
+ "items": {},
18
+ "title": "Patch",
19
+ "type": "array"
20
+ },
21
+ "rawEvent": {
22
+ "anyOf": [
23
+ {},
24
+ {
25
+ "type": "null"
26
+ }
27
+ ],
28
+ "default": null,
29
+ "title": "Rawevent"
30
+ },
31
+ "timestamp": {
32
+ "anyOf": [
33
+ {
34
+ "type": "integer"
35
+ },
36
+ {
37
+ "type": "null"
38
+ }
39
+ ],
40
+ "default": null,
41
+ "title": "Timestamp"
42
+ },
43
+ "type": {
44
+ "const": "ACTIVITY_DELTA",
45
+ "default": "ACTIVITY_DELTA",
46
+ "title": "Type",
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "messageId",
52
+ "activityType",
53
+ "patch"
54
+ ],
55
+ "title": "ActivityDeltaEvent",
56
+ "type": "object"
57
+ },
58
+ "ActivityMessage": {
59
+ "additionalProperties": true,
60
+ "description": "An activity progress message emitted between chat messages.",
61
+ "properties": {
62
+ "activityType": {
63
+ "title": "Activitytype",
64
+ "type": "string"
65
+ },
66
+ "content": {
67
+ "additionalProperties": true,
68
+ "title": "Content",
69
+ "type": "object"
70
+ },
71
+ "id": {
72
+ "title": "Id",
73
+ "type": "string"
74
+ },
75
+ "role": {
76
+ "const": "activity",
77
+ "default": "activity",
78
+ "title": "Role",
79
+ "type": "string"
80
+ }
81
+ },
82
+ "required": [
83
+ "id",
84
+ "activityType",
85
+ "content"
86
+ ],
87
+ "title": "ActivityMessage",
88
+ "type": "object"
89
+ },
90
+ "ActivitySnapshotEvent": {
91
+ "additionalProperties": true,
92
+ "description": "Event containing a snapshot of an activity message.",
93
+ "properties": {
94
+ "activityType": {
95
+ "title": "Activitytype",
96
+ "type": "string"
97
+ },
98
+ "content": {
99
+ "title": "Content"
100
+ },
101
+ "messageId": {
102
+ "title": "Messageid",
103
+ "type": "string"
104
+ },
105
+ "rawEvent": {
106
+ "anyOf": [
107
+ {},
108
+ {
109
+ "type": "null"
110
+ }
111
+ ],
112
+ "default": null,
113
+ "title": "Rawevent"
114
+ },
115
+ "replace": {
116
+ "default": true,
117
+ "title": "Replace",
118
+ "type": "boolean"
119
+ },
120
+ "timestamp": {
121
+ "anyOf": [
122
+ {
123
+ "type": "integer"
124
+ },
125
+ {
126
+ "type": "null"
127
+ }
128
+ ],
129
+ "default": null,
130
+ "title": "Timestamp"
131
+ },
132
+ "type": {
133
+ "const": "ACTIVITY_SNAPSHOT",
134
+ "default": "ACTIVITY_SNAPSHOT",
135
+ "title": "Type",
136
+ "type": "string"
137
+ }
138
+ },
139
+ "required": [
140
+ "messageId",
141
+ "activityType",
142
+ "content"
143
+ ],
144
+ "title": "ActivitySnapshotEvent",
145
+ "type": "object"
146
+ },
147
+ "AgentCapabilities": {
148
+ "additionalProperties": true,
149
+ "description": "A categorized snapshot of an agent's current capabilities.\n\nAll fields are optional \u2014 agents only declare what they support. Omitted fields mean the capability is not declared\n(unknown), not that it's unsupported.\n\nThe `custom` field is an escape hatch for integration-specific capabilities that don't fit into the standard\ncategories.",
150
+ "properties": {
151
+ "custom": {
152
+ "anyOf": [
153
+ {
154
+ "additionalProperties": true,
155
+ "type": "object"
156
+ },
157
+ {
158
+ "type": "null"
159
+ }
160
+ ],
161
+ "default": null,
162
+ "description": "Integration-specific capabilities not covered by the standard categories.",
163
+ "title": "Custom"
164
+ },
165
+ "execution": {
166
+ "anyOf": [
167
+ {
168
+ "$ref": "#/definitions/ExecutionCapabilities"
169
+ },
170
+ {
171
+ "type": "null"
172
+ }
173
+ ],
174
+ "default": null,
175
+ "description": "Execution control and limits (code execution, timeouts, iteration caps)."
176
+ },
177
+ "humanInTheLoop": {
178
+ "anyOf": [
179
+ {
180
+ "$ref": "#/definitions/HumanInTheLoopCapabilities"
181
+ },
182
+ {
183
+ "type": "null"
184
+ }
185
+ ],
186
+ "default": null,
187
+ "description": "Human-in-the-loop support (approvals, interventions, feedback)."
188
+ },
189
+ "identity": {
190
+ "anyOf": [
191
+ {
192
+ "$ref": "#/definitions/IdentityCapabilities"
193
+ },
194
+ {
195
+ "type": "null"
196
+ }
197
+ ],
198
+ "default": null,
199
+ "description": "Agent identity and metadata."
200
+ },
201
+ "multiAgent": {
202
+ "anyOf": [
203
+ {
204
+ "$ref": "#/definitions/MultiAgentCapabilities"
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ],
210
+ "default": null,
211
+ "description": "Multi-agent coordination (delegation, handoffs, sub-agents)."
212
+ },
213
+ "multimodal": {
214
+ "anyOf": [
215
+ {
216
+ "$ref": "#/definitions/MultimodalCapabilities"
217
+ },
218
+ {
219
+ "type": "null"
220
+ }
221
+ ],
222
+ "default": null,
223
+ "description": "Multimodal input/output support (images, audio, video, files)."
224
+ },
225
+ "output": {
226
+ "anyOf": [
227
+ {
228
+ "$ref": "#/definitions/OutputCapabilities"
229
+ },
230
+ {
231
+ "type": "null"
232
+ }
233
+ ],
234
+ "default": null,
235
+ "description": "Output format support (structured output, MIME types)."
236
+ },
237
+ "reasoning": {
238
+ "anyOf": [
239
+ {
240
+ "$ref": "#/definitions/ReasoningCapabilities"
241
+ },
242
+ {
243
+ "type": "null"
244
+ }
245
+ ],
246
+ "default": null,
247
+ "description": "Reasoning and thinking support (chain-of-thought, encrypted thinking)."
248
+ },
249
+ "state": {
250
+ "anyOf": [
251
+ {
252
+ "$ref": "#/definitions/StateCapabilities"
253
+ },
254
+ {
255
+ "type": "null"
256
+ }
257
+ ],
258
+ "default": null,
259
+ "description": "State and memory management (snapshots, deltas, persistence)."
260
+ },
261
+ "tools": {
262
+ "anyOf": [
263
+ {
264
+ "$ref": "#/definitions/ToolsCapabilities"
265
+ },
266
+ {
267
+ "type": "null"
268
+ }
269
+ ],
270
+ "default": null,
271
+ "description": "Tools the agent provides and tool calling configuration."
272
+ },
273
+ "transport": {
274
+ "anyOf": [
275
+ {
276
+ "$ref": "#/definitions/TransportCapabilities"
277
+ },
278
+ {
279
+ "type": "null"
280
+ }
281
+ ],
282
+ "default": null,
283
+ "description": "Supported transport mechanisms (SSE, WebSocket, binary, etc.)."
284
+ }
285
+ },
286
+ "title": "AgentCapabilities",
287
+ "type": "object"
288
+ },
289
+ "AssistantMessage": {
290
+ "additionalProperties": true,
291
+ "description": "An assistant message.",
292
+ "properties": {
293
+ "content": {
294
+ "anyOf": [
295
+ {
296
+ "type": "string"
297
+ },
298
+ {
299
+ "type": "null"
300
+ }
301
+ ],
302
+ "default": null,
303
+ "title": "Content"
304
+ },
305
+ "encryptedValue": {
306
+ "anyOf": [
307
+ {
308
+ "type": "string"
309
+ },
310
+ {
311
+ "type": "null"
312
+ }
313
+ ],
314
+ "default": null,
315
+ "title": "Encryptedvalue"
316
+ },
317
+ "id": {
318
+ "title": "Id",
319
+ "type": "string"
320
+ },
321
+ "name": {
322
+ "anyOf": [
323
+ {
324
+ "type": "string"
325
+ },
326
+ {
327
+ "type": "null"
328
+ }
329
+ ],
330
+ "default": null,
331
+ "title": "Name"
332
+ },
333
+ "role": {
334
+ "const": "assistant",
335
+ "default": "assistant",
336
+ "title": "Role",
337
+ "type": "string"
338
+ },
339
+ "toolCalls": {
340
+ "anyOf": [
341
+ {
342
+ "items": {
343
+ "$ref": "#/definitions/ToolCall"
344
+ },
345
+ "type": "array"
346
+ },
347
+ {
348
+ "type": "null"
349
+ }
350
+ ],
351
+ "default": null,
352
+ "title": "Toolcalls"
353
+ }
354
+ },
355
+ "required": [
356
+ "id"
357
+ ],
358
+ "title": "AssistantMessage",
359
+ "type": "object"
360
+ },
361
+ "AudioInputContent": {
362
+ "additionalProperties": true,
363
+ "description": "An audio input content fragment.",
364
+ "properties": {
365
+ "metadata": {
366
+ "anyOf": [
367
+ {},
368
+ {
369
+ "type": "null"
370
+ }
371
+ ],
372
+ "default": null,
373
+ "title": "Metadata"
374
+ },
375
+ "source": {
376
+ "discriminator": {
377
+ "mapping": {
378
+ "data": "#/definitions/InputContentDataSource",
379
+ "url": "#/definitions/InputContentUrlSource"
380
+ },
381
+ "propertyName": "type"
382
+ },
383
+ "oneOf": [
384
+ {
385
+ "$ref": "#/definitions/InputContentDataSource"
386
+ },
387
+ {
388
+ "$ref": "#/definitions/InputContentUrlSource"
389
+ }
390
+ ],
391
+ "title": "Source"
392
+ },
393
+ "type": {
394
+ "const": "audio",
395
+ "default": "audio",
396
+ "title": "Type",
397
+ "type": "string"
398
+ }
399
+ },
400
+ "required": [
401
+ "source"
402
+ ],
403
+ "title": "AudioInputContent",
404
+ "type": "object"
405
+ },
406
+ "BaseEvent": {
407
+ "additionalProperties": true,
408
+ "description": "Base event for all events in the Agent User Interaction Protocol.",
409
+ "properties": {
410
+ "rawEvent": {
411
+ "anyOf": [
412
+ {},
413
+ {
414
+ "type": "null"
415
+ }
416
+ ],
417
+ "default": null,
418
+ "title": "Rawevent"
419
+ },
420
+ "timestamp": {
421
+ "anyOf": [
422
+ {
423
+ "type": "integer"
424
+ },
425
+ {
426
+ "type": "null"
427
+ }
428
+ ],
429
+ "default": null,
430
+ "title": "Timestamp"
431
+ },
432
+ "type": {
433
+ "$ref": "#/definitions/EventType"
434
+ }
435
+ },
436
+ "required": [
437
+ "type"
438
+ ],
439
+ "title": "BaseEvent",
440
+ "type": "object"
441
+ },
442
+ "BaseMessage": {
443
+ "additionalProperties": true,
444
+ "description": "A base message, modelled after OpenAI messages.",
445
+ "properties": {
446
+ "content": {
447
+ "anyOf": [
448
+ {
449
+ "type": "string"
450
+ },
451
+ {
452
+ "type": "null"
453
+ }
454
+ ],
455
+ "default": null,
456
+ "title": "Content"
457
+ },
458
+ "encryptedValue": {
459
+ "anyOf": [
460
+ {
461
+ "type": "string"
462
+ },
463
+ {
464
+ "type": "null"
465
+ }
466
+ ],
467
+ "default": null,
468
+ "title": "Encryptedvalue"
469
+ },
470
+ "id": {
471
+ "title": "Id",
472
+ "type": "string"
473
+ },
474
+ "name": {
475
+ "anyOf": [
476
+ {
477
+ "type": "string"
478
+ },
479
+ {
480
+ "type": "null"
481
+ }
482
+ ],
483
+ "default": null,
484
+ "title": "Name"
485
+ },
486
+ "role": {
487
+ "title": "Role",
488
+ "type": "string"
489
+ }
490
+ },
491
+ "required": [
492
+ "id",
493
+ "role"
494
+ ],
495
+ "title": "BaseMessage",
496
+ "type": "object"
497
+ },
498
+ "BinaryInputContent": {
499
+ "additionalProperties": true,
500
+ "description": "A deprecated binary payload reference in a multimodal user message.",
501
+ "properties": {
502
+ "data": {
503
+ "anyOf": [
504
+ {
505
+ "type": "string"
506
+ },
507
+ {
508
+ "type": "null"
509
+ }
510
+ ],
511
+ "default": null,
512
+ "title": "Data"
513
+ },
514
+ "filename": {
515
+ "anyOf": [
516
+ {
517
+ "type": "string"
518
+ },
519
+ {
520
+ "type": "null"
521
+ }
522
+ ],
523
+ "default": null,
524
+ "title": "Filename"
525
+ },
526
+ "id": {
527
+ "anyOf": [
528
+ {
529
+ "type": "string"
530
+ },
531
+ {
532
+ "type": "null"
533
+ }
534
+ ],
535
+ "default": null,
536
+ "title": "Id"
537
+ },
538
+ "mimeType": {
539
+ "title": "Mimetype",
540
+ "type": "string"
541
+ },
542
+ "type": {
543
+ "const": "binary",
544
+ "default": "binary",
545
+ "title": "Type",
546
+ "type": "string"
547
+ },
548
+ "url": {
549
+ "anyOf": [
550
+ {
551
+ "type": "string"
552
+ },
553
+ {
554
+ "type": "null"
555
+ }
556
+ ],
557
+ "default": null,
558
+ "title": "Url"
559
+ }
560
+ },
561
+ "required": [
562
+ "mimeType"
563
+ ],
564
+ "title": "BinaryInputContent",
565
+ "type": "object"
566
+ },
567
+ "Context": {
568
+ "additionalProperties": true,
569
+ "description": "Additional context for the agent.",
570
+ "properties": {
571
+ "description": {
572
+ "title": "Description",
573
+ "type": "string"
574
+ },
575
+ "value": {
576
+ "title": "Value",
577
+ "type": "string"
578
+ }
579
+ },
580
+ "required": [
581
+ "description",
582
+ "value"
583
+ ],
584
+ "title": "Context",
585
+ "type": "object"
586
+ },
587
+ "CustomEvent": {
588
+ "additionalProperties": true,
589
+ "description": "Event containing a custom event.",
590
+ "properties": {
591
+ "name": {
592
+ "title": "Name",
593
+ "type": "string"
594
+ },
595
+ "rawEvent": {
596
+ "anyOf": [
597
+ {},
598
+ {
599
+ "type": "null"
600
+ }
601
+ ],
602
+ "default": null,
603
+ "title": "Rawevent"
604
+ },
605
+ "timestamp": {
606
+ "anyOf": [
607
+ {
608
+ "type": "integer"
609
+ },
610
+ {
611
+ "type": "null"
612
+ }
613
+ ],
614
+ "default": null,
615
+ "title": "Timestamp"
616
+ },
617
+ "type": {
618
+ "const": "CUSTOM",
619
+ "default": "CUSTOM",
620
+ "title": "Type",
621
+ "type": "string"
622
+ },
623
+ "value": {
624
+ "title": "Value"
625
+ }
626
+ },
627
+ "required": [
628
+ "name",
629
+ "value"
630
+ ],
631
+ "title": "CustomEvent",
632
+ "type": "object"
633
+ },
634
+ "DeveloperMessage": {
635
+ "additionalProperties": true,
636
+ "description": "A developer message.",
637
+ "properties": {
638
+ "content": {
639
+ "title": "Content",
640
+ "type": "string"
641
+ },
642
+ "encryptedValue": {
643
+ "anyOf": [
644
+ {
645
+ "type": "string"
646
+ },
647
+ {
648
+ "type": "null"
649
+ }
650
+ ],
651
+ "default": null,
652
+ "title": "Encryptedvalue"
653
+ },
654
+ "id": {
655
+ "title": "Id",
656
+ "type": "string"
657
+ },
658
+ "name": {
659
+ "anyOf": [
660
+ {
661
+ "type": "string"
662
+ },
663
+ {
664
+ "type": "null"
665
+ }
666
+ ],
667
+ "default": null,
668
+ "title": "Name"
669
+ },
670
+ "role": {
671
+ "const": "developer",
672
+ "default": "developer",
673
+ "title": "Role",
674
+ "type": "string"
675
+ }
676
+ },
677
+ "required": [
678
+ "id",
679
+ "content"
680
+ ],
681
+ "title": "DeveloperMessage",
682
+ "type": "object"
683
+ },
684
+ "DocumentInputContent": {
685
+ "additionalProperties": true,
686
+ "description": "A document input content fragment.",
687
+ "properties": {
688
+ "metadata": {
689
+ "anyOf": [
690
+ {},
691
+ {
692
+ "type": "null"
693
+ }
694
+ ],
695
+ "default": null,
696
+ "title": "Metadata"
697
+ },
698
+ "source": {
699
+ "discriminator": {
700
+ "mapping": {
701
+ "data": "#/definitions/InputContentDataSource",
702
+ "url": "#/definitions/InputContentUrlSource"
703
+ },
704
+ "propertyName": "type"
705
+ },
706
+ "oneOf": [
707
+ {
708
+ "$ref": "#/definitions/InputContentDataSource"
709
+ },
710
+ {
711
+ "$ref": "#/definitions/InputContentUrlSource"
712
+ }
713
+ ],
714
+ "title": "Source"
715
+ },
716
+ "type": {
717
+ "const": "document",
718
+ "default": "document",
719
+ "title": "Type",
720
+ "type": "string"
721
+ }
722
+ },
723
+ "required": [
724
+ "source"
725
+ ],
726
+ "title": "DocumentInputContent",
727
+ "type": "object"
728
+ },
729
+ "EventType": {
730
+ "description": "The type of event.",
731
+ "enum": [
732
+ "TEXT_MESSAGE_START",
733
+ "TEXT_MESSAGE_CONTENT",
734
+ "TEXT_MESSAGE_END",
735
+ "TEXT_MESSAGE_CHUNK",
736
+ "THINKING_TEXT_MESSAGE_START",
737
+ "THINKING_TEXT_MESSAGE_CONTENT",
738
+ "THINKING_TEXT_MESSAGE_END",
739
+ "TOOL_CALL_START",
740
+ "TOOL_CALL_ARGS",
741
+ "TOOL_CALL_END",
742
+ "TOOL_CALL_CHUNK",
743
+ "TOOL_CALL_RESULT",
744
+ "THINKING_START",
745
+ "THINKING_END",
746
+ "STATE_SNAPSHOT",
747
+ "STATE_DELTA",
748
+ "MESSAGES_SNAPSHOT",
749
+ "ACTIVITY_SNAPSHOT",
750
+ "ACTIVITY_DELTA",
751
+ "RAW",
752
+ "CUSTOM",
753
+ "RUN_STARTED",
754
+ "RUN_FINISHED",
755
+ "RUN_ERROR",
756
+ "STEP_STARTED",
757
+ "STEP_FINISHED",
758
+ "REASONING_START",
759
+ "REASONING_MESSAGE_START",
760
+ "REASONING_MESSAGE_CONTENT",
761
+ "REASONING_MESSAGE_END",
762
+ "REASONING_MESSAGE_CHUNK",
763
+ "REASONING_END",
764
+ "REASONING_ENCRYPTED_VALUE"
765
+ ],
766
+ "title": "EventType",
767
+ "type": "string"
768
+ },
769
+ "ExecutionCapabilities": {
770
+ "additionalProperties": true,
771
+ "description": "Execution control and limits.\n\nDeclare these so clients can set expectations about how long or how many steps an agent run might take.",
772
+ "properties": {
773
+ "codeExecution": {
774
+ "anyOf": [
775
+ {
776
+ "type": "boolean"
777
+ },
778
+ {
779
+ "type": "null"
780
+ }
781
+ ],
782
+ "default": null,
783
+ "description": "Set `True` if the agent can execute code (e.g., Python, JavaScript) during a run.",
784
+ "title": "Codeexecution"
785
+ },
786
+ "maxExecutionTime": {
787
+ "anyOf": [
788
+ {
789
+ "type": "integer"
790
+ },
791
+ {
792
+ "type": "null"
793
+ }
794
+ ],
795
+ "default": null,
796
+ "description": "Maximum wall-clock time (in milliseconds) the agent will run before timing out.",
797
+ "title": "Maxexecutiontime"
798
+ },
799
+ "maxIterations": {
800
+ "anyOf": [
801
+ {
802
+ "type": "integer"
803
+ },
804
+ {
805
+ "type": "null"
806
+ }
807
+ ],
808
+ "default": null,
809
+ "description": "Maximum number of tool-call/reasoning iterations the agent will perform per run. Helps clients display progress or set timeout expectations.",
810
+ "title": "Maxiterations"
811
+ },
812
+ "sandboxed": {
813
+ "anyOf": [
814
+ {
815
+ "type": "boolean"
816
+ },
817
+ {
818
+ "type": "null"
819
+ }
820
+ ],
821
+ "default": null,
822
+ "description": "Set `True` if code execution happens in a sandboxed/isolated environment. Only meaningful when `code_execution` is `True`.",
823
+ "title": "Sandboxed"
824
+ }
825
+ },
826
+ "title": "ExecutionCapabilities",
827
+ "type": "object"
828
+ },
829
+ "FunctionCall": {
830
+ "additionalProperties": true,
831
+ "description": "Name and arguments of a function call.",
832
+ "properties": {
833
+ "arguments": {
834
+ "title": "Arguments",
835
+ "type": "string"
836
+ },
837
+ "name": {
838
+ "title": "Name",
839
+ "type": "string"
840
+ }
841
+ },
842
+ "required": [
843
+ "name",
844
+ "arguments"
845
+ ],
846
+ "title": "FunctionCall",
847
+ "type": "object"
848
+ },
849
+ "HumanInTheLoopCapabilities": {
850
+ "additionalProperties": true,
851
+ "description": "Human-in-the-loop interaction support.\n\nEnable these when your agent can pause execution to request human input, approval, or feedback before continuing.",
852
+ "properties": {
853
+ "approvals": {
854
+ "anyOf": [
855
+ {
856
+ "type": "boolean"
857
+ },
858
+ {
859
+ "type": "null"
860
+ }
861
+ ],
862
+ "default": null,
863
+ "description": "Set `True` if the agent can pause and request explicit approval before performing sensitive actions (e.g., sending emails, deleting data).",
864
+ "title": "Approvals"
865
+ },
866
+ "approveWithEdits": {
867
+ "anyOf": [
868
+ {
869
+ "type": "boolean"
870
+ },
871
+ {
872
+ "type": "null"
873
+ }
874
+ ],
875
+ "default": null,
876
+ "description": "Set `true` if tool-call interrupts accept editedArgs in the resume payload. Only meaningful when interrupts is true.",
877
+ "title": "Approvewithedits"
878
+ },
879
+ "feedback": {
880
+ "anyOf": [
881
+ {
882
+ "type": "boolean"
883
+ },
884
+ {
885
+ "type": "null"
886
+ }
887
+ ],
888
+ "default": null,
889
+ "description": "Set `True` if the agent can incorporate user feedback (thumbs up/down, corrections) to improve its behavior within the current session.",
890
+ "title": "Feedback"
891
+ },
892
+ "interrupts": {
893
+ "anyOf": [
894
+ {
895
+ "type": "boolean"
896
+ },
897
+ {
898
+ "type": "null"
899
+ }
900
+ ],
901
+ "default": null,
902
+ "description": "Set `true` if the agent participates in the AG-UI interrupt protocol (emits RUN_FINISHED with outcome={\"type\": \"interrupt\", \"interrupts\": [...]}, accepts resume[]).",
903
+ "title": "Interrupts"
904
+ },
905
+ "interventions": {
906
+ "anyOf": [
907
+ {
908
+ "type": "boolean"
909
+ },
910
+ {
911
+ "type": "null"
912
+ }
913
+ ],
914
+ "default": null,
915
+ "description": "Set `True` if the agent allows humans to intervene and modify its plan mid-execution.",
916
+ "title": "Interventions"
917
+ },
918
+ "supported": {
919
+ "anyOf": [
920
+ {
921
+ "type": "boolean"
922
+ },
923
+ {
924
+ "type": "null"
925
+ }
926
+ ],
927
+ "default": null,
928
+ "description": "Set `True` if the agent supports any form of human-in-the-loop interaction.",
929
+ "title": "Supported"
930
+ }
931
+ },
932
+ "title": "HumanInTheLoopCapabilities",
933
+ "type": "object"
934
+ },
935
+ "IdentityCapabilities": {
936
+ "additionalProperties": true,
937
+ "description": "Basic metadata about the agent.\n\nUseful for discovery UIs, agent marketplaces, and debugging. Set these when you want clients to display agent\ninformation or when multiple agents are available and users need to pick one.",
938
+ "properties": {
939
+ "description": {
940
+ "anyOf": [
941
+ {
942
+ "type": "string"
943
+ },
944
+ {
945
+ "type": "null"
946
+ }
947
+ ],
948
+ "default": null,
949
+ "description": "What this agent does \u2014 helps users and routing logic decide when to use it.",
950
+ "title": "Description"
951
+ },
952
+ "documentationUrl": {
953
+ "anyOf": [
954
+ {
955
+ "type": "string"
956
+ },
957
+ {
958
+ "type": "null"
959
+ }
960
+ ],
961
+ "default": null,
962
+ "description": "URL to the agent's documentation or homepage.",
963
+ "title": "Documentationurl"
964
+ },
965
+ "metadata": {
966
+ "anyOf": [
967
+ {
968
+ "additionalProperties": true,
969
+ "type": "object"
970
+ },
971
+ {
972
+ "type": "null"
973
+ }
974
+ ],
975
+ "default": null,
976
+ "description": "Arbitrary key-value pairs for integration-specific identity info.",
977
+ "title": "Metadata"
978
+ },
979
+ "name": {
980
+ "anyOf": [
981
+ {
982
+ "type": "string"
983
+ },
984
+ {
985
+ "type": "null"
986
+ }
987
+ ],
988
+ "default": null,
989
+ "description": "Human-readable name shown in UIs and agent selectors.",
990
+ "title": "Name"
991
+ },
992
+ "provider": {
993
+ "anyOf": [
994
+ {
995
+ "type": "string"
996
+ },
997
+ {
998
+ "type": "null"
999
+ }
1000
+ ],
1001
+ "default": null,
1002
+ "description": "Organization or team that maintains this agent.",
1003
+ "title": "Provider"
1004
+ },
1005
+ "type": {
1006
+ "anyOf": [
1007
+ {
1008
+ "type": "string"
1009
+ },
1010
+ {
1011
+ "type": "null"
1012
+ }
1013
+ ],
1014
+ "default": null,
1015
+ "description": "The framework or platform powering this agent (e.g., \"langgraph\", \"mastra\", \"crewai\").",
1016
+ "title": "Type"
1017
+ },
1018
+ "version": {
1019
+ "anyOf": [
1020
+ {
1021
+ "type": "string"
1022
+ },
1023
+ {
1024
+ "type": "null"
1025
+ }
1026
+ ],
1027
+ "default": null,
1028
+ "description": "Semantic version of the agent (e.g., \"1.2.0\"). Useful for compatibility checks.",
1029
+ "title": "Version"
1030
+ }
1031
+ },
1032
+ "title": "IdentityCapabilities",
1033
+ "type": "object"
1034
+ },
1035
+ "ImageInputContent": {
1036
+ "additionalProperties": true,
1037
+ "description": "An image input content fragment.",
1038
+ "properties": {
1039
+ "metadata": {
1040
+ "anyOf": [
1041
+ {},
1042
+ {
1043
+ "type": "null"
1044
+ }
1045
+ ],
1046
+ "default": null,
1047
+ "title": "Metadata"
1048
+ },
1049
+ "source": {
1050
+ "discriminator": {
1051
+ "mapping": {
1052
+ "data": "#/definitions/InputContentDataSource",
1053
+ "url": "#/definitions/InputContentUrlSource"
1054
+ },
1055
+ "propertyName": "type"
1056
+ },
1057
+ "oneOf": [
1058
+ {
1059
+ "$ref": "#/definitions/InputContentDataSource"
1060
+ },
1061
+ {
1062
+ "$ref": "#/definitions/InputContentUrlSource"
1063
+ }
1064
+ ],
1065
+ "title": "Source"
1066
+ },
1067
+ "type": {
1068
+ "const": "image",
1069
+ "default": "image",
1070
+ "title": "Type",
1071
+ "type": "string"
1072
+ }
1073
+ },
1074
+ "required": [
1075
+ "source"
1076
+ ],
1077
+ "title": "ImageInputContent",
1078
+ "type": "object"
1079
+ },
1080
+ "InputContentDataSource": {
1081
+ "additionalProperties": true,
1082
+ "description": "Inline base64-encoded source.",
1083
+ "properties": {
1084
+ "mimeType": {
1085
+ "title": "Mimetype",
1086
+ "type": "string"
1087
+ },
1088
+ "type": {
1089
+ "const": "data",
1090
+ "default": "data",
1091
+ "title": "Type",
1092
+ "type": "string"
1093
+ },
1094
+ "value": {
1095
+ "title": "Value",
1096
+ "type": "string"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "value",
1101
+ "mimeType"
1102
+ ],
1103
+ "title": "InputContentDataSource",
1104
+ "type": "object"
1105
+ },
1106
+ "InputContentUrlSource": {
1107
+ "additionalProperties": true,
1108
+ "description": "URL-referenced source.",
1109
+ "properties": {
1110
+ "mimeType": {
1111
+ "anyOf": [
1112
+ {
1113
+ "type": "string"
1114
+ },
1115
+ {
1116
+ "type": "null"
1117
+ }
1118
+ ],
1119
+ "default": null,
1120
+ "title": "Mimetype"
1121
+ },
1122
+ "type": {
1123
+ "const": "url",
1124
+ "default": "url",
1125
+ "title": "Type",
1126
+ "type": "string"
1127
+ },
1128
+ "value": {
1129
+ "title": "Value",
1130
+ "type": "string"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "value"
1135
+ ],
1136
+ "title": "InputContentUrlSource",
1137
+ "type": "object"
1138
+ },
1139
+ "Interrupt": {
1140
+ "additionalProperties": true,
1141
+ "description": "A pause carried inside ``RunFinishedEvent.outcome`` when the outcome is\n``RunFinishedInterruptOutcome``. The client resumes\nby addressing this interrupt in the resume array of the next RunAgentInput.",
1142
+ "properties": {
1143
+ "expiresAt": {
1144
+ "anyOf": [
1145
+ {
1146
+ "type": "string"
1147
+ },
1148
+ {
1149
+ "type": "null"
1150
+ }
1151
+ ],
1152
+ "default": null,
1153
+ "title": "Expiresat"
1154
+ },
1155
+ "id": {
1156
+ "title": "Id",
1157
+ "type": "string"
1158
+ },
1159
+ "message": {
1160
+ "anyOf": [
1161
+ {
1162
+ "type": "string"
1163
+ },
1164
+ {
1165
+ "type": "null"
1166
+ }
1167
+ ],
1168
+ "default": null,
1169
+ "title": "Message"
1170
+ },
1171
+ "metadata": {
1172
+ "anyOf": [
1173
+ {
1174
+ "additionalProperties": true,
1175
+ "type": "object"
1176
+ },
1177
+ {
1178
+ "type": "null"
1179
+ }
1180
+ ],
1181
+ "default": null,
1182
+ "title": "Metadata"
1183
+ },
1184
+ "reason": {
1185
+ "title": "Reason",
1186
+ "type": "string"
1187
+ },
1188
+ "responseSchema": {
1189
+ "anyOf": [
1190
+ {
1191
+ "additionalProperties": true,
1192
+ "type": "object"
1193
+ },
1194
+ {
1195
+ "type": "null"
1196
+ }
1197
+ ],
1198
+ "default": null,
1199
+ "title": "Responseschema"
1200
+ },
1201
+ "toolCallId": {
1202
+ "anyOf": [
1203
+ {
1204
+ "type": "string"
1205
+ },
1206
+ {
1207
+ "type": "null"
1208
+ }
1209
+ ],
1210
+ "default": null,
1211
+ "title": "Toolcallid"
1212
+ }
1213
+ },
1214
+ "required": [
1215
+ "id",
1216
+ "reason"
1217
+ ],
1218
+ "title": "Interrupt",
1219
+ "type": "object"
1220
+ },
1221
+ "MessagesSnapshotEvent": {
1222
+ "additionalProperties": true,
1223
+ "description": "Event containing a snapshot of the messages.",
1224
+ "properties": {
1225
+ "messages": {
1226
+ "items": {
1227
+ "discriminator": {
1228
+ "mapping": {
1229
+ "activity": "#/definitions/ActivityMessage",
1230
+ "assistant": "#/definitions/AssistantMessage",
1231
+ "developer": "#/definitions/DeveloperMessage",
1232
+ "reasoning": "#/definitions/ReasoningMessage",
1233
+ "system": "#/definitions/SystemMessage",
1234
+ "tool": "#/definitions/ToolMessage",
1235
+ "user": "#/definitions/UserMessage"
1236
+ },
1237
+ "propertyName": "role"
1238
+ },
1239
+ "oneOf": [
1240
+ {
1241
+ "$ref": "#/definitions/DeveloperMessage"
1242
+ },
1243
+ {
1244
+ "$ref": "#/definitions/SystemMessage"
1245
+ },
1246
+ {
1247
+ "$ref": "#/definitions/AssistantMessage"
1248
+ },
1249
+ {
1250
+ "$ref": "#/definitions/UserMessage"
1251
+ },
1252
+ {
1253
+ "$ref": "#/definitions/ToolMessage"
1254
+ },
1255
+ {
1256
+ "$ref": "#/definitions/ActivityMessage"
1257
+ },
1258
+ {
1259
+ "$ref": "#/definitions/ReasoningMessage"
1260
+ }
1261
+ ]
1262
+ },
1263
+ "title": "Messages",
1264
+ "type": "array"
1265
+ },
1266
+ "rawEvent": {
1267
+ "anyOf": [
1268
+ {},
1269
+ {
1270
+ "type": "null"
1271
+ }
1272
+ ],
1273
+ "default": null,
1274
+ "title": "Rawevent"
1275
+ },
1276
+ "timestamp": {
1277
+ "anyOf": [
1278
+ {
1279
+ "type": "integer"
1280
+ },
1281
+ {
1282
+ "type": "null"
1283
+ }
1284
+ ],
1285
+ "default": null,
1286
+ "title": "Timestamp"
1287
+ },
1288
+ "type": {
1289
+ "const": "MESSAGES_SNAPSHOT",
1290
+ "default": "MESSAGES_SNAPSHOT",
1291
+ "title": "Type",
1292
+ "type": "string"
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "messages"
1297
+ ],
1298
+ "title": "MessagesSnapshotEvent",
1299
+ "type": "object"
1300
+ },
1301
+ "MultiAgentCapabilities": {
1302
+ "additionalProperties": true,
1303
+ "description": "Multi-agent coordination capabilities.\n\nEnable these when your agent can orchestrate or hand off work to other agents.",
1304
+ "properties": {
1305
+ "delegation": {
1306
+ "anyOf": [
1307
+ {
1308
+ "type": "boolean"
1309
+ },
1310
+ {
1311
+ "type": "null"
1312
+ }
1313
+ ],
1314
+ "default": null,
1315
+ "description": "Set `True` if the agent can delegate subtasks to other agents while retaining control.",
1316
+ "title": "Delegation"
1317
+ },
1318
+ "handoffs": {
1319
+ "anyOf": [
1320
+ {
1321
+ "type": "boolean"
1322
+ },
1323
+ {
1324
+ "type": "null"
1325
+ }
1326
+ ],
1327
+ "default": null,
1328
+ "description": "Set `True` if the agent can transfer the conversation entirely to another agent.",
1329
+ "title": "Handoffs"
1330
+ },
1331
+ "subAgents": {
1332
+ "anyOf": [
1333
+ {
1334
+ "items": {
1335
+ "$ref": "#/definitions/SubAgentInfo"
1336
+ },
1337
+ "type": "array"
1338
+ },
1339
+ {
1340
+ "type": "null"
1341
+ }
1342
+ ],
1343
+ "default": null,
1344
+ "description": "List of sub-agents this agent can invoke. Helps clients build agent selection UIs.",
1345
+ "title": "Subagents"
1346
+ },
1347
+ "supported": {
1348
+ "anyOf": [
1349
+ {
1350
+ "type": "boolean"
1351
+ },
1352
+ {
1353
+ "type": "null"
1354
+ }
1355
+ ],
1356
+ "default": null,
1357
+ "description": "Set `True` if the agent participates in any form of multi-agent coordination.",
1358
+ "title": "Supported"
1359
+ }
1360
+ },
1361
+ "title": "MultiAgentCapabilities",
1362
+ "type": "object"
1363
+ },
1364
+ "MultimodalCapabilities": {
1365
+ "additionalProperties": true,
1366
+ "description": "Multimodal input and output support.\n\nOrganized into `input` and `output` sub-objects so clients can independently query what the agent accepts versus\nwhat it produces.",
1367
+ "properties": {
1368
+ "input": {
1369
+ "anyOf": [
1370
+ {
1371
+ "$ref": "#/definitions/MultimodalInputCapabilities"
1372
+ },
1373
+ {
1374
+ "type": "null"
1375
+ }
1376
+ ],
1377
+ "default": null,
1378
+ "description": "Modalities the agent can accept as input (images, audio, video, PDFs, files)."
1379
+ },
1380
+ "output": {
1381
+ "anyOf": [
1382
+ {
1383
+ "$ref": "#/definitions/MultimodalOutputCapabilities"
1384
+ },
1385
+ {
1386
+ "type": "null"
1387
+ }
1388
+ ],
1389
+ "default": null,
1390
+ "description": "Modalities the agent can produce as output (images, audio)."
1391
+ }
1392
+ },
1393
+ "title": "MultimodalCapabilities",
1394
+ "type": "object"
1395
+ },
1396
+ "MultimodalInputCapabilities": {
1397
+ "additionalProperties": true,
1398
+ "description": "Modalities the agent can accept as input.\n\nClients use this to show/hide file upload buttons, audio recorders, image pickers, etc.",
1399
+ "properties": {
1400
+ "audio": {
1401
+ "anyOf": [
1402
+ {
1403
+ "type": "boolean"
1404
+ },
1405
+ {
1406
+ "type": "null"
1407
+ }
1408
+ ],
1409
+ "default": null,
1410
+ "description": "Set `True` if the agent can process audio inputs (speech, recordings).",
1411
+ "title": "Audio"
1412
+ },
1413
+ "file": {
1414
+ "anyOf": [
1415
+ {
1416
+ "type": "boolean"
1417
+ },
1418
+ {
1419
+ "type": "null"
1420
+ }
1421
+ ],
1422
+ "default": null,
1423
+ "description": "Set `True` if the agent can process arbitrary file uploads.",
1424
+ "title": "File"
1425
+ },
1426
+ "image": {
1427
+ "anyOf": [
1428
+ {
1429
+ "type": "boolean"
1430
+ },
1431
+ {
1432
+ "type": "null"
1433
+ }
1434
+ ],
1435
+ "default": null,
1436
+ "description": "Set `True` if the agent can process image inputs (e.g., screenshots, photos).",
1437
+ "title": "Image"
1438
+ },
1439
+ "pdf": {
1440
+ "anyOf": [
1441
+ {
1442
+ "type": "boolean"
1443
+ },
1444
+ {
1445
+ "type": "null"
1446
+ }
1447
+ ],
1448
+ "default": null,
1449
+ "description": "Set `True` if the agent can process PDF documents.",
1450
+ "title": "Pdf"
1451
+ },
1452
+ "video": {
1453
+ "anyOf": [
1454
+ {
1455
+ "type": "boolean"
1456
+ },
1457
+ {
1458
+ "type": "null"
1459
+ }
1460
+ ],
1461
+ "default": null,
1462
+ "description": "Set `True` if the agent can process video inputs.",
1463
+ "title": "Video"
1464
+ }
1465
+ },
1466
+ "title": "MultimodalInputCapabilities",
1467
+ "type": "object"
1468
+ },
1469
+ "MultimodalOutputCapabilities": {
1470
+ "additionalProperties": true,
1471
+ "description": "Modalities the agent can produce as output.\n\nClients use this to anticipate rich content in the agent's response.",
1472
+ "properties": {
1473
+ "audio": {
1474
+ "anyOf": [
1475
+ {
1476
+ "type": "boolean"
1477
+ },
1478
+ {
1479
+ "type": "null"
1480
+ }
1481
+ ],
1482
+ "default": null,
1483
+ "description": "Set `True` if the agent can produce audio output (text-to-speech, audio files).",
1484
+ "title": "Audio"
1485
+ },
1486
+ "image": {
1487
+ "anyOf": [
1488
+ {
1489
+ "type": "boolean"
1490
+ },
1491
+ {
1492
+ "type": "null"
1493
+ }
1494
+ ],
1495
+ "default": null,
1496
+ "description": "Set `True` if the agent can generate images as part of its response.",
1497
+ "title": "Image"
1498
+ }
1499
+ },
1500
+ "title": "MultimodalOutputCapabilities",
1501
+ "type": "object"
1502
+ },
1503
+ "OutputCapabilities": {
1504
+ "additionalProperties": true,
1505
+ "description": "Output format support.\n\nEnable `structured_output` when your agent can return responses conforming to a JSON schema, which is useful for\nprogrammatic consumption.",
1506
+ "properties": {
1507
+ "structuredOutput": {
1508
+ "anyOf": [
1509
+ {
1510
+ "type": "boolean"
1511
+ },
1512
+ {
1513
+ "type": "null"
1514
+ }
1515
+ ],
1516
+ "default": null,
1517
+ "description": "Set `True` if the agent can produce structured JSON output matching a provided schema.",
1518
+ "title": "Structuredoutput"
1519
+ },
1520
+ "supportedMimeTypes": {
1521
+ "anyOf": [
1522
+ {
1523
+ "items": {
1524
+ "type": "string"
1525
+ },
1526
+ "type": "array"
1527
+ },
1528
+ {
1529
+ "type": "null"
1530
+ }
1531
+ ],
1532
+ "default": null,
1533
+ "description": "MIME types the agent can produce (e.g., `[\"text/plain\", \"application/json\"]`). Omit if the agent only produces plain text.",
1534
+ "title": "Supportedmimetypes"
1535
+ }
1536
+ },
1537
+ "title": "OutputCapabilities",
1538
+ "type": "object"
1539
+ },
1540
+ "RawEvent": {
1541
+ "additionalProperties": true,
1542
+ "description": "Event containing a raw event.",
1543
+ "properties": {
1544
+ "event": {
1545
+ "title": "Event"
1546
+ },
1547
+ "rawEvent": {
1548
+ "anyOf": [
1549
+ {},
1550
+ {
1551
+ "type": "null"
1552
+ }
1553
+ ],
1554
+ "default": null,
1555
+ "title": "Rawevent"
1556
+ },
1557
+ "source": {
1558
+ "anyOf": [
1559
+ {
1560
+ "type": "string"
1561
+ },
1562
+ {
1563
+ "type": "null"
1564
+ }
1565
+ ],
1566
+ "default": null,
1567
+ "title": "Source"
1568
+ },
1569
+ "timestamp": {
1570
+ "anyOf": [
1571
+ {
1572
+ "type": "integer"
1573
+ },
1574
+ {
1575
+ "type": "null"
1576
+ }
1577
+ ],
1578
+ "default": null,
1579
+ "title": "Timestamp"
1580
+ },
1581
+ "type": {
1582
+ "const": "RAW",
1583
+ "default": "RAW",
1584
+ "title": "Type",
1585
+ "type": "string"
1586
+ }
1587
+ },
1588
+ "required": [
1589
+ "event"
1590
+ ],
1591
+ "title": "RawEvent",
1592
+ "type": "object"
1593
+ },
1594
+ "ReasoningCapabilities": {
1595
+ "additionalProperties": true,
1596
+ "description": "Reasoning and thinking capabilities.\n\nEnable these when your agent exposes its internal thought process (e.g., chain-of-thought, extended thinking).",
1597
+ "properties": {
1598
+ "encrypted": {
1599
+ "anyOf": [
1600
+ {
1601
+ "type": "boolean"
1602
+ },
1603
+ {
1604
+ "type": "null"
1605
+ }
1606
+ ],
1607
+ "default": null,
1608
+ "description": "Set `True` if reasoning content is encrypted (zero-data-retention mode). Clients should expect opaque `encrypted_value` fields instead of readable content.",
1609
+ "title": "Encrypted"
1610
+ },
1611
+ "streaming": {
1612
+ "anyOf": [
1613
+ {
1614
+ "type": "boolean"
1615
+ },
1616
+ {
1617
+ "type": "null"
1618
+ }
1619
+ ],
1620
+ "default": null,
1621
+ "description": "Set `True` if reasoning tokens are streamed incrementally (vs. returned all at once).",
1622
+ "title": "Streaming"
1623
+ },
1624
+ "supported": {
1625
+ "anyOf": [
1626
+ {
1627
+ "type": "boolean"
1628
+ },
1629
+ {
1630
+ "type": "null"
1631
+ }
1632
+ ],
1633
+ "default": null,
1634
+ "description": "Set `True` if the agent produces reasoning/thinking tokens visible to the client.",
1635
+ "title": "Supported"
1636
+ }
1637
+ },
1638
+ "title": "ReasoningCapabilities",
1639
+ "type": "object"
1640
+ },
1641
+ "ReasoningEncryptedValueEvent": {
1642
+ "additionalProperties": true,
1643
+ "description": "Event containing an encrypted value for a message or tool call.",
1644
+ "properties": {
1645
+ "encryptedValue": {
1646
+ "title": "Encryptedvalue",
1647
+ "type": "string"
1648
+ },
1649
+ "entityId": {
1650
+ "title": "Entityid",
1651
+ "type": "string"
1652
+ },
1653
+ "rawEvent": {
1654
+ "anyOf": [
1655
+ {},
1656
+ {
1657
+ "type": "null"
1658
+ }
1659
+ ],
1660
+ "default": null,
1661
+ "title": "Rawevent"
1662
+ },
1663
+ "subtype": {
1664
+ "enum": [
1665
+ "tool-call",
1666
+ "message"
1667
+ ],
1668
+ "title": "Subtype",
1669
+ "type": "string"
1670
+ },
1671
+ "timestamp": {
1672
+ "anyOf": [
1673
+ {
1674
+ "type": "integer"
1675
+ },
1676
+ {
1677
+ "type": "null"
1678
+ }
1679
+ ],
1680
+ "default": null,
1681
+ "title": "Timestamp"
1682
+ },
1683
+ "type": {
1684
+ "const": "REASONING_ENCRYPTED_VALUE",
1685
+ "default": "REASONING_ENCRYPTED_VALUE",
1686
+ "title": "Type",
1687
+ "type": "string"
1688
+ }
1689
+ },
1690
+ "required": [
1691
+ "subtype",
1692
+ "entityId",
1693
+ "encryptedValue"
1694
+ ],
1695
+ "title": "ReasoningEncryptedValueEvent",
1696
+ "type": "object"
1697
+ },
1698
+ "ReasoningEndEvent": {
1699
+ "additionalProperties": true,
1700
+ "description": "Event indicating the end of a reasoning phase.",
1701
+ "properties": {
1702
+ "messageId": {
1703
+ "title": "Messageid",
1704
+ "type": "string"
1705
+ },
1706
+ "rawEvent": {
1707
+ "anyOf": [
1708
+ {},
1709
+ {
1710
+ "type": "null"
1711
+ }
1712
+ ],
1713
+ "default": null,
1714
+ "title": "Rawevent"
1715
+ },
1716
+ "timestamp": {
1717
+ "anyOf": [
1718
+ {
1719
+ "type": "integer"
1720
+ },
1721
+ {
1722
+ "type": "null"
1723
+ }
1724
+ ],
1725
+ "default": null,
1726
+ "title": "Timestamp"
1727
+ },
1728
+ "type": {
1729
+ "const": "REASONING_END",
1730
+ "default": "REASONING_END",
1731
+ "title": "Type",
1732
+ "type": "string"
1733
+ }
1734
+ },
1735
+ "required": [
1736
+ "messageId"
1737
+ ],
1738
+ "title": "ReasoningEndEvent",
1739
+ "type": "object"
1740
+ },
1741
+ "ReasoningMessage": {
1742
+ "additionalProperties": true,
1743
+ "description": "A reasoning message containing the agent's internal reasoning process.",
1744
+ "properties": {
1745
+ "content": {
1746
+ "title": "Content",
1747
+ "type": "string"
1748
+ },
1749
+ "encryptedValue": {
1750
+ "anyOf": [
1751
+ {
1752
+ "type": "string"
1753
+ },
1754
+ {
1755
+ "type": "null"
1756
+ }
1757
+ ],
1758
+ "default": null,
1759
+ "title": "Encryptedvalue"
1760
+ },
1761
+ "id": {
1762
+ "title": "Id",
1763
+ "type": "string"
1764
+ },
1765
+ "role": {
1766
+ "const": "reasoning",
1767
+ "default": "reasoning",
1768
+ "title": "Role",
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "required": [
1773
+ "id",
1774
+ "content"
1775
+ ],
1776
+ "title": "ReasoningMessage",
1777
+ "type": "object"
1778
+ },
1779
+ "ReasoningMessageChunkEvent": {
1780
+ "additionalProperties": true,
1781
+ "description": "Event containing a chunk of reasoning message content.",
1782
+ "properties": {
1783
+ "delta": {
1784
+ "anyOf": [
1785
+ {
1786
+ "type": "string"
1787
+ },
1788
+ {
1789
+ "type": "null"
1790
+ }
1791
+ ],
1792
+ "default": null,
1793
+ "title": "Delta"
1794
+ },
1795
+ "messageId": {
1796
+ "anyOf": [
1797
+ {
1798
+ "type": "string"
1799
+ },
1800
+ {
1801
+ "type": "null"
1802
+ }
1803
+ ],
1804
+ "default": null,
1805
+ "title": "Messageid"
1806
+ },
1807
+ "rawEvent": {
1808
+ "anyOf": [
1809
+ {},
1810
+ {
1811
+ "type": "null"
1812
+ }
1813
+ ],
1814
+ "default": null,
1815
+ "title": "Rawevent"
1816
+ },
1817
+ "timestamp": {
1818
+ "anyOf": [
1819
+ {
1820
+ "type": "integer"
1821
+ },
1822
+ {
1823
+ "type": "null"
1824
+ }
1825
+ ],
1826
+ "default": null,
1827
+ "title": "Timestamp"
1828
+ },
1829
+ "type": {
1830
+ "const": "REASONING_MESSAGE_CHUNK",
1831
+ "default": "REASONING_MESSAGE_CHUNK",
1832
+ "title": "Type",
1833
+ "type": "string"
1834
+ }
1835
+ },
1836
+ "title": "ReasoningMessageChunkEvent",
1837
+ "type": "object"
1838
+ },
1839
+ "ReasoningMessageContentEvent": {
1840
+ "additionalProperties": true,
1841
+ "description": "Event containing a piece of reasoning message content.",
1842
+ "properties": {
1843
+ "delta": {
1844
+ "title": "Delta",
1845
+ "type": "string"
1846
+ },
1847
+ "messageId": {
1848
+ "title": "Messageid",
1849
+ "type": "string"
1850
+ },
1851
+ "rawEvent": {
1852
+ "anyOf": [
1853
+ {},
1854
+ {
1855
+ "type": "null"
1856
+ }
1857
+ ],
1858
+ "default": null,
1859
+ "title": "Rawevent"
1860
+ },
1861
+ "timestamp": {
1862
+ "anyOf": [
1863
+ {
1864
+ "type": "integer"
1865
+ },
1866
+ {
1867
+ "type": "null"
1868
+ }
1869
+ ],
1870
+ "default": null,
1871
+ "title": "Timestamp"
1872
+ },
1873
+ "type": {
1874
+ "const": "REASONING_MESSAGE_CONTENT",
1875
+ "default": "REASONING_MESSAGE_CONTENT",
1876
+ "title": "Type",
1877
+ "type": "string"
1878
+ }
1879
+ },
1880
+ "required": [
1881
+ "messageId",
1882
+ "delta"
1883
+ ],
1884
+ "title": "ReasoningMessageContentEvent",
1885
+ "type": "object"
1886
+ },
1887
+ "ReasoningMessageEndEvent": {
1888
+ "additionalProperties": true,
1889
+ "description": "Event indicating the end of a reasoning message.",
1890
+ "properties": {
1891
+ "messageId": {
1892
+ "title": "Messageid",
1893
+ "type": "string"
1894
+ },
1895
+ "rawEvent": {
1896
+ "anyOf": [
1897
+ {},
1898
+ {
1899
+ "type": "null"
1900
+ }
1901
+ ],
1902
+ "default": null,
1903
+ "title": "Rawevent"
1904
+ },
1905
+ "timestamp": {
1906
+ "anyOf": [
1907
+ {
1908
+ "type": "integer"
1909
+ },
1910
+ {
1911
+ "type": "null"
1912
+ }
1913
+ ],
1914
+ "default": null,
1915
+ "title": "Timestamp"
1916
+ },
1917
+ "type": {
1918
+ "const": "REASONING_MESSAGE_END",
1919
+ "default": "REASONING_MESSAGE_END",
1920
+ "title": "Type",
1921
+ "type": "string"
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "messageId"
1926
+ ],
1927
+ "title": "ReasoningMessageEndEvent",
1928
+ "type": "object"
1929
+ },
1930
+ "ReasoningMessageStartEvent": {
1931
+ "additionalProperties": true,
1932
+ "description": "Event indicating the start of a reasoning message.",
1933
+ "properties": {
1934
+ "messageId": {
1935
+ "title": "Messageid",
1936
+ "type": "string"
1937
+ },
1938
+ "rawEvent": {
1939
+ "anyOf": [
1940
+ {},
1941
+ {
1942
+ "type": "null"
1943
+ }
1944
+ ],
1945
+ "default": null,
1946
+ "title": "Rawevent"
1947
+ },
1948
+ "role": {
1949
+ "const": "reasoning",
1950
+ "title": "Role",
1951
+ "type": "string"
1952
+ },
1953
+ "timestamp": {
1954
+ "anyOf": [
1955
+ {
1956
+ "type": "integer"
1957
+ },
1958
+ {
1959
+ "type": "null"
1960
+ }
1961
+ ],
1962
+ "default": null,
1963
+ "title": "Timestamp"
1964
+ },
1965
+ "type": {
1966
+ "const": "REASONING_MESSAGE_START",
1967
+ "default": "REASONING_MESSAGE_START",
1968
+ "title": "Type",
1969
+ "type": "string"
1970
+ }
1971
+ },
1972
+ "required": [
1973
+ "messageId",
1974
+ "role"
1975
+ ],
1976
+ "title": "ReasoningMessageStartEvent",
1977
+ "type": "object"
1978
+ },
1979
+ "ReasoningStartEvent": {
1980
+ "additionalProperties": true,
1981
+ "description": "Event indicating the start of a reasoning phase.",
1982
+ "properties": {
1983
+ "messageId": {
1984
+ "title": "Messageid",
1985
+ "type": "string"
1986
+ },
1987
+ "rawEvent": {
1988
+ "anyOf": [
1989
+ {},
1990
+ {
1991
+ "type": "null"
1992
+ }
1993
+ ],
1994
+ "default": null,
1995
+ "title": "Rawevent"
1996
+ },
1997
+ "timestamp": {
1998
+ "anyOf": [
1999
+ {
2000
+ "type": "integer"
2001
+ },
2002
+ {
2003
+ "type": "null"
2004
+ }
2005
+ ],
2006
+ "default": null,
2007
+ "title": "Timestamp"
2008
+ },
2009
+ "type": {
2010
+ "const": "REASONING_START",
2011
+ "default": "REASONING_START",
2012
+ "title": "Type",
2013
+ "type": "string"
2014
+ }
2015
+ },
2016
+ "required": [
2017
+ "messageId"
2018
+ ],
2019
+ "title": "ReasoningStartEvent",
2020
+ "type": "object"
2021
+ },
2022
+ "ResumeEntry": {
2023
+ "additionalProperties": true,
2024
+ "description": "A per-interrupt response in the resume array of a RunAgentInput.",
2025
+ "properties": {
2026
+ "interruptId": {
2027
+ "title": "Interruptid",
2028
+ "type": "string"
2029
+ },
2030
+ "payload": {
2031
+ "anyOf": [
2032
+ {},
2033
+ {
2034
+ "type": "null"
2035
+ }
2036
+ ],
2037
+ "default": null,
2038
+ "title": "Payload"
2039
+ },
2040
+ "status": {
2041
+ "enum": [
2042
+ "resolved",
2043
+ "cancelled"
2044
+ ],
2045
+ "title": "Status",
2046
+ "type": "string"
2047
+ }
2048
+ },
2049
+ "required": [
2050
+ "interruptId",
2051
+ "status"
2052
+ ],
2053
+ "title": "ResumeEntry",
2054
+ "type": "object"
2055
+ },
2056
+ "RunAgentInput": {
2057
+ "additionalProperties": true,
2058
+ "description": "Input for running an agent.",
2059
+ "properties": {
2060
+ "context": {
2061
+ "items": {
2062
+ "$ref": "#/definitions/Context"
2063
+ },
2064
+ "title": "Context",
2065
+ "type": "array"
2066
+ },
2067
+ "forwardedProps": {
2068
+ "title": "Forwardedprops"
2069
+ },
2070
+ "messages": {
2071
+ "items": {
2072
+ "discriminator": {
2073
+ "mapping": {
2074
+ "activity": "#/definitions/ActivityMessage",
2075
+ "assistant": "#/definitions/AssistantMessage",
2076
+ "developer": "#/definitions/DeveloperMessage",
2077
+ "reasoning": "#/definitions/ReasoningMessage",
2078
+ "system": "#/definitions/SystemMessage",
2079
+ "tool": "#/definitions/ToolMessage",
2080
+ "user": "#/definitions/UserMessage"
2081
+ },
2082
+ "propertyName": "role"
2083
+ },
2084
+ "oneOf": [
2085
+ {
2086
+ "$ref": "#/definitions/DeveloperMessage"
2087
+ },
2088
+ {
2089
+ "$ref": "#/definitions/SystemMessage"
2090
+ },
2091
+ {
2092
+ "$ref": "#/definitions/AssistantMessage"
2093
+ },
2094
+ {
2095
+ "$ref": "#/definitions/UserMessage"
2096
+ },
2097
+ {
2098
+ "$ref": "#/definitions/ToolMessage"
2099
+ },
2100
+ {
2101
+ "$ref": "#/definitions/ActivityMessage"
2102
+ },
2103
+ {
2104
+ "$ref": "#/definitions/ReasoningMessage"
2105
+ }
2106
+ ]
2107
+ },
2108
+ "title": "Messages",
2109
+ "type": "array"
2110
+ },
2111
+ "parentRunId": {
2112
+ "anyOf": [
2113
+ {
2114
+ "type": "string"
2115
+ },
2116
+ {
2117
+ "type": "null"
2118
+ }
2119
+ ],
2120
+ "default": null,
2121
+ "title": "Parentrunid"
2122
+ },
2123
+ "resume": {
2124
+ "anyOf": [
2125
+ {
2126
+ "items": {
2127
+ "$ref": "#/definitions/ResumeEntry"
2128
+ },
2129
+ "type": "array"
2130
+ },
2131
+ {
2132
+ "type": "null"
2133
+ }
2134
+ ],
2135
+ "default": null,
2136
+ "title": "Resume"
2137
+ },
2138
+ "runId": {
2139
+ "title": "Runid",
2140
+ "type": "string"
2141
+ },
2142
+ "state": {
2143
+ "title": "State"
2144
+ },
2145
+ "threadId": {
2146
+ "title": "Threadid",
2147
+ "type": "string"
2148
+ },
2149
+ "tools": {
2150
+ "items": {
2151
+ "$ref": "#/definitions/Tool"
2152
+ },
2153
+ "title": "Tools",
2154
+ "type": "array"
2155
+ }
2156
+ },
2157
+ "required": [
2158
+ "threadId",
2159
+ "runId",
2160
+ "state",
2161
+ "messages",
2162
+ "tools",
2163
+ "context",
2164
+ "forwardedProps"
2165
+ ],
2166
+ "title": "RunAgentInput",
2167
+ "type": "object"
2168
+ },
2169
+ "RunErrorEvent": {
2170
+ "additionalProperties": true,
2171
+ "description": "Event indicating that a run has encountered an error.",
2172
+ "properties": {
2173
+ "code": {
2174
+ "anyOf": [
2175
+ {
2176
+ "type": "string"
2177
+ },
2178
+ {
2179
+ "type": "null"
2180
+ }
2181
+ ],
2182
+ "default": null,
2183
+ "title": "Code"
2184
+ },
2185
+ "message": {
2186
+ "title": "Message",
2187
+ "type": "string"
2188
+ },
2189
+ "rawEvent": {
2190
+ "anyOf": [
2191
+ {},
2192
+ {
2193
+ "type": "null"
2194
+ }
2195
+ ],
2196
+ "default": null,
2197
+ "title": "Rawevent"
2198
+ },
2199
+ "timestamp": {
2200
+ "anyOf": [
2201
+ {
2202
+ "type": "integer"
2203
+ },
2204
+ {
2205
+ "type": "null"
2206
+ }
2207
+ ],
2208
+ "default": null,
2209
+ "title": "Timestamp"
2210
+ },
2211
+ "type": {
2212
+ "const": "RUN_ERROR",
2213
+ "default": "RUN_ERROR",
2214
+ "title": "Type",
2215
+ "type": "string"
2216
+ }
2217
+ },
2218
+ "required": [
2219
+ "message"
2220
+ ],
2221
+ "title": "RunErrorEvent",
2222
+ "type": "object"
2223
+ },
2224
+ "RunFinishedEvent": {
2225
+ "additionalProperties": true,
2226
+ "description": "Event indicating that a run has finished.\n\n`outcome` is optional. Producers written before the interrupt-aware run\nlifecycle simply omit it (legacy back-compat). Newer producers set it\nexplicitly to ``RunFinishedSuccessOutcome`` (``{\"type\": \"success\"}``) or\n``RunFinishedInterruptOutcome`` (``{\"type\": \"interrupt\", \"interrupts\": [...]}``).\nThe interrupt list lives inside the outcome so it travels with the variant\nthat uses it.",
2227
+ "properties": {
2228
+ "outcome": {
2229
+ "anyOf": [
2230
+ {
2231
+ "discriminator": {
2232
+ "mapping": {
2233
+ "interrupt": "#/definitions/RunFinishedInterruptOutcome",
2234
+ "success": "#/definitions/RunFinishedSuccessOutcome"
2235
+ },
2236
+ "propertyName": "type"
2237
+ },
2238
+ "oneOf": [
2239
+ {
2240
+ "$ref": "#/definitions/RunFinishedSuccessOutcome"
2241
+ },
2242
+ {
2243
+ "$ref": "#/definitions/RunFinishedInterruptOutcome"
2244
+ }
2245
+ ]
2246
+ },
2247
+ {
2248
+ "type": "null"
2249
+ }
2250
+ ],
2251
+ "default": null,
2252
+ "title": "Outcome"
2253
+ },
2254
+ "rawEvent": {
2255
+ "anyOf": [
2256
+ {},
2257
+ {
2258
+ "type": "null"
2259
+ }
2260
+ ],
2261
+ "default": null,
2262
+ "title": "Rawevent"
2263
+ },
2264
+ "result": {
2265
+ "anyOf": [
2266
+ {},
2267
+ {
2268
+ "type": "null"
2269
+ }
2270
+ ],
2271
+ "default": null,
2272
+ "title": "Result"
2273
+ },
2274
+ "runId": {
2275
+ "title": "Runid",
2276
+ "type": "string"
2277
+ },
2278
+ "threadId": {
2279
+ "title": "Threadid",
2280
+ "type": "string"
2281
+ },
2282
+ "timestamp": {
2283
+ "anyOf": [
2284
+ {
2285
+ "type": "integer"
2286
+ },
2287
+ {
2288
+ "type": "null"
2289
+ }
2290
+ ],
2291
+ "default": null,
2292
+ "title": "Timestamp"
2293
+ },
2294
+ "type": {
2295
+ "const": "RUN_FINISHED",
2296
+ "default": "RUN_FINISHED",
2297
+ "title": "Type",
2298
+ "type": "string"
2299
+ }
2300
+ },
2301
+ "required": [
2302
+ "threadId",
2303
+ "runId"
2304
+ ],
2305
+ "title": "RunFinishedEvent",
2306
+ "type": "object"
2307
+ },
2308
+ "RunFinishedInterruptOutcome": {
2309
+ "additionalProperties": true,
2310
+ "description": "Outcome variant signalling that a run paused on one or more interrupts.",
2311
+ "properties": {
2312
+ "interrupts": {
2313
+ "items": {
2314
+ "$ref": "#/definitions/Interrupt"
2315
+ },
2316
+ "title": "Interrupts",
2317
+ "type": "array"
2318
+ },
2319
+ "type": {
2320
+ "const": "interrupt",
2321
+ "default": "interrupt",
2322
+ "title": "Type",
2323
+ "type": "string"
2324
+ }
2325
+ },
2326
+ "required": [
2327
+ "interrupts"
2328
+ ],
2329
+ "title": "RunFinishedInterruptOutcome",
2330
+ "type": "object"
2331
+ },
2332
+ "RunFinishedSuccessOutcome": {
2333
+ "additionalProperties": true,
2334
+ "description": "Outcome variant signalling that a run completed normally.",
2335
+ "properties": {
2336
+ "type": {
2337
+ "const": "success",
2338
+ "default": "success",
2339
+ "title": "Type",
2340
+ "type": "string"
2341
+ }
2342
+ },
2343
+ "title": "RunFinishedSuccessOutcome",
2344
+ "type": "object"
2345
+ },
2346
+ "RunStartedEvent": {
2347
+ "additionalProperties": true,
2348
+ "description": "Event indicating that a run has started.",
2349
+ "properties": {
2350
+ "input": {
2351
+ "anyOf": [
2352
+ {
2353
+ "$ref": "#/definitions/RunAgentInput"
2354
+ },
2355
+ {
2356
+ "type": "null"
2357
+ }
2358
+ ],
2359
+ "default": null
2360
+ },
2361
+ "parentRunId": {
2362
+ "anyOf": [
2363
+ {
2364
+ "type": "string"
2365
+ },
2366
+ {
2367
+ "type": "null"
2368
+ }
2369
+ ],
2370
+ "default": null,
2371
+ "title": "Parentrunid"
2372
+ },
2373
+ "rawEvent": {
2374
+ "anyOf": [
2375
+ {},
2376
+ {
2377
+ "type": "null"
2378
+ }
2379
+ ],
2380
+ "default": null,
2381
+ "title": "Rawevent"
2382
+ },
2383
+ "runId": {
2384
+ "title": "Runid",
2385
+ "type": "string"
2386
+ },
2387
+ "threadId": {
2388
+ "title": "Threadid",
2389
+ "type": "string"
2390
+ },
2391
+ "timestamp": {
2392
+ "anyOf": [
2393
+ {
2394
+ "type": "integer"
2395
+ },
2396
+ {
2397
+ "type": "null"
2398
+ }
2399
+ ],
2400
+ "default": null,
2401
+ "title": "Timestamp"
2402
+ },
2403
+ "type": {
2404
+ "const": "RUN_STARTED",
2405
+ "default": "RUN_STARTED",
2406
+ "title": "Type",
2407
+ "type": "string"
2408
+ }
2409
+ },
2410
+ "required": [
2411
+ "threadId",
2412
+ "runId"
2413
+ ],
2414
+ "title": "RunStartedEvent",
2415
+ "type": "object"
2416
+ },
2417
+ "StateCapabilities": {
2418
+ "additionalProperties": true,
2419
+ "description": "State and memory management capabilities.\n\nThese tell the client how the agent handles shared state and whether conversation context persists across runs.",
2420
+ "properties": {
2421
+ "deltas": {
2422
+ "anyOf": [
2423
+ {
2424
+ "type": "boolean"
2425
+ },
2426
+ {
2427
+ "type": "null"
2428
+ }
2429
+ ],
2430
+ "default": null,
2431
+ "description": "Set `True` if the agent emits `STATE_DELTA` events (JSON Patch incremental updates).",
2432
+ "title": "Deltas"
2433
+ },
2434
+ "memory": {
2435
+ "anyOf": [
2436
+ {
2437
+ "type": "boolean"
2438
+ },
2439
+ {
2440
+ "type": "null"
2441
+ }
2442
+ ],
2443
+ "default": null,
2444
+ "description": "Set `True` if the agent has long-term memory beyond the current thread (e.g., vector store, knowledge base, or cross-session recall).",
2445
+ "title": "Memory"
2446
+ },
2447
+ "persistentState": {
2448
+ "anyOf": [
2449
+ {
2450
+ "type": "boolean"
2451
+ },
2452
+ {
2453
+ "type": "null"
2454
+ }
2455
+ ],
2456
+ "default": null,
2457
+ "description": "Set `True` if state is preserved across multiple runs within the same thread. When `False`, state resets on each run.",
2458
+ "title": "Persistentstate"
2459
+ },
2460
+ "snapshots": {
2461
+ "anyOf": [
2462
+ {
2463
+ "type": "boolean"
2464
+ },
2465
+ {
2466
+ "type": "null"
2467
+ }
2468
+ ],
2469
+ "default": null,
2470
+ "description": "Set `True` if the agent emits `STATE_SNAPSHOT` events (full state replacement).",
2471
+ "title": "Snapshots"
2472
+ }
2473
+ },
2474
+ "title": "StateCapabilities",
2475
+ "type": "object"
2476
+ },
2477
+ "StateDeltaEvent": {
2478
+ "additionalProperties": true,
2479
+ "description": "Event containing a delta of the state.",
2480
+ "properties": {
2481
+ "delta": {
2482
+ "items": {},
2483
+ "title": "Delta",
2484
+ "type": "array"
2485
+ },
2486
+ "rawEvent": {
2487
+ "anyOf": [
2488
+ {},
2489
+ {
2490
+ "type": "null"
2491
+ }
2492
+ ],
2493
+ "default": null,
2494
+ "title": "Rawevent"
2495
+ },
2496
+ "timestamp": {
2497
+ "anyOf": [
2498
+ {
2499
+ "type": "integer"
2500
+ },
2501
+ {
2502
+ "type": "null"
2503
+ }
2504
+ ],
2505
+ "default": null,
2506
+ "title": "Timestamp"
2507
+ },
2508
+ "type": {
2509
+ "const": "STATE_DELTA",
2510
+ "default": "STATE_DELTA",
2511
+ "title": "Type",
2512
+ "type": "string"
2513
+ }
2514
+ },
2515
+ "required": [
2516
+ "delta"
2517
+ ],
2518
+ "title": "StateDeltaEvent",
2519
+ "type": "object"
2520
+ },
2521
+ "StateSnapshotEvent": {
2522
+ "additionalProperties": true,
2523
+ "description": "Event containing a snapshot of the state.",
2524
+ "properties": {
2525
+ "rawEvent": {
2526
+ "anyOf": [
2527
+ {},
2528
+ {
2529
+ "type": "null"
2530
+ }
2531
+ ],
2532
+ "default": null,
2533
+ "title": "Rawevent"
2534
+ },
2535
+ "snapshot": {
2536
+ "title": "Snapshot"
2537
+ },
2538
+ "timestamp": {
2539
+ "anyOf": [
2540
+ {
2541
+ "type": "integer"
2542
+ },
2543
+ {
2544
+ "type": "null"
2545
+ }
2546
+ ],
2547
+ "default": null,
2548
+ "title": "Timestamp"
2549
+ },
2550
+ "type": {
2551
+ "const": "STATE_SNAPSHOT",
2552
+ "default": "STATE_SNAPSHOT",
2553
+ "title": "Type",
2554
+ "type": "string"
2555
+ }
2556
+ },
2557
+ "required": [
2558
+ "snapshot"
2559
+ ],
2560
+ "title": "StateSnapshotEvent",
2561
+ "type": "object"
2562
+ },
2563
+ "StepFinishedEvent": {
2564
+ "additionalProperties": true,
2565
+ "description": "Event indicating that a step has finished.",
2566
+ "properties": {
2567
+ "rawEvent": {
2568
+ "anyOf": [
2569
+ {},
2570
+ {
2571
+ "type": "null"
2572
+ }
2573
+ ],
2574
+ "default": null,
2575
+ "title": "Rawevent"
2576
+ },
2577
+ "stepName": {
2578
+ "title": "Stepname",
2579
+ "type": "string"
2580
+ },
2581
+ "timestamp": {
2582
+ "anyOf": [
2583
+ {
2584
+ "type": "integer"
2585
+ },
2586
+ {
2587
+ "type": "null"
2588
+ }
2589
+ ],
2590
+ "default": null,
2591
+ "title": "Timestamp"
2592
+ },
2593
+ "type": {
2594
+ "const": "STEP_FINISHED",
2595
+ "default": "STEP_FINISHED",
2596
+ "title": "Type",
2597
+ "type": "string"
2598
+ }
2599
+ },
2600
+ "required": [
2601
+ "stepName"
2602
+ ],
2603
+ "title": "StepFinishedEvent",
2604
+ "type": "object"
2605
+ },
2606
+ "StepStartedEvent": {
2607
+ "additionalProperties": true,
2608
+ "description": "Event indicating that a step has started.",
2609
+ "properties": {
2610
+ "rawEvent": {
2611
+ "anyOf": [
2612
+ {},
2613
+ {
2614
+ "type": "null"
2615
+ }
2616
+ ],
2617
+ "default": null,
2618
+ "title": "Rawevent"
2619
+ },
2620
+ "stepName": {
2621
+ "title": "Stepname",
2622
+ "type": "string"
2623
+ },
2624
+ "timestamp": {
2625
+ "anyOf": [
2626
+ {
2627
+ "type": "integer"
2628
+ },
2629
+ {
2630
+ "type": "null"
2631
+ }
2632
+ ],
2633
+ "default": null,
2634
+ "title": "Timestamp"
2635
+ },
2636
+ "type": {
2637
+ "const": "STEP_STARTED",
2638
+ "default": "STEP_STARTED",
2639
+ "title": "Type",
2640
+ "type": "string"
2641
+ }
2642
+ },
2643
+ "required": [
2644
+ "stepName"
2645
+ ],
2646
+ "title": "StepStartedEvent",
2647
+ "type": "object"
2648
+ },
2649
+ "SubAgentInfo": {
2650
+ "additionalProperties": true,
2651
+ "description": "Describes a sub-agent that can be invoked by a parent agent.",
2652
+ "properties": {
2653
+ "description": {
2654
+ "anyOf": [
2655
+ {
2656
+ "type": "string"
2657
+ },
2658
+ {
2659
+ "type": "null"
2660
+ }
2661
+ ],
2662
+ "default": null,
2663
+ "description": "What this sub-agent specializes in. Helps clients build agent selection UIs.",
2664
+ "title": "Description"
2665
+ },
2666
+ "name": {
2667
+ "description": "Unique name or identifier of the sub-agent.",
2668
+ "title": "Name",
2669
+ "type": "string"
2670
+ }
2671
+ },
2672
+ "required": [
2673
+ "name"
2674
+ ],
2675
+ "title": "SubAgentInfo",
2676
+ "type": "object"
2677
+ },
2678
+ "SystemMessage": {
2679
+ "additionalProperties": true,
2680
+ "description": "A system message.",
2681
+ "properties": {
2682
+ "content": {
2683
+ "title": "Content",
2684
+ "type": "string"
2685
+ },
2686
+ "encryptedValue": {
2687
+ "anyOf": [
2688
+ {
2689
+ "type": "string"
2690
+ },
2691
+ {
2692
+ "type": "null"
2693
+ }
2694
+ ],
2695
+ "default": null,
2696
+ "title": "Encryptedvalue"
2697
+ },
2698
+ "id": {
2699
+ "title": "Id",
2700
+ "type": "string"
2701
+ },
2702
+ "name": {
2703
+ "anyOf": [
2704
+ {
2705
+ "type": "string"
2706
+ },
2707
+ {
2708
+ "type": "null"
2709
+ }
2710
+ ],
2711
+ "default": null,
2712
+ "title": "Name"
2713
+ },
2714
+ "role": {
2715
+ "const": "system",
2716
+ "default": "system",
2717
+ "title": "Role",
2718
+ "type": "string"
2719
+ }
2720
+ },
2721
+ "required": [
2722
+ "id",
2723
+ "content"
2724
+ ],
2725
+ "title": "SystemMessage",
2726
+ "type": "object"
2727
+ },
2728
+ "TextInputContent": {
2729
+ "additionalProperties": true,
2730
+ "description": "A text fragment in a multimodal user message.",
2731
+ "properties": {
2732
+ "text": {
2733
+ "title": "Text",
2734
+ "type": "string"
2735
+ },
2736
+ "type": {
2737
+ "const": "text",
2738
+ "default": "text",
2739
+ "title": "Type",
2740
+ "type": "string"
2741
+ }
2742
+ },
2743
+ "required": [
2744
+ "text"
2745
+ ],
2746
+ "title": "TextInputContent",
2747
+ "type": "object"
2748
+ },
2749
+ "TextMessageChunkEvent": {
2750
+ "additionalProperties": true,
2751
+ "description": "Event containing a chunk of text message content.",
2752
+ "properties": {
2753
+ "delta": {
2754
+ "anyOf": [
2755
+ {
2756
+ "type": "string"
2757
+ },
2758
+ {
2759
+ "type": "null"
2760
+ }
2761
+ ],
2762
+ "default": null,
2763
+ "title": "Delta"
2764
+ },
2765
+ "messageId": {
2766
+ "anyOf": [
2767
+ {
2768
+ "type": "string"
2769
+ },
2770
+ {
2771
+ "type": "null"
2772
+ }
2773
+ ],
2774
+ "default": null,
2775
+ "title": "Messageid"
2776
+ },
2777
+ "name": {
2778
+ "anyOf": [
2779
+ {
2780
+ "type": "string"
2781
+ },
2782
+ {
2783
+ "type": "null"
2784
+ }
2785
+ ],
2786
+ "default": null,
2787
+ "title": "Name"
2788
+ },
2789
+ "rawEvent": {
2790
+ "anyOf": [
2791
+ {},
2792
+ {
2793
+ "type": "null"
2794
+ }
2795
+ ],
2796
+ "default": null,
2797
+ "title": "Rawevent"
2798
+ },
2799
+ "role": {
2800
+ "anyOf": [
2801
+ {
2802
+ "enum": [
2803
+ "developer",
2804
+ "system",
2805
+ "assistant",
2806
+ "user"
2807
+ ],
2808
+ "type": "string"
2809
+ },
2810
+ {
2811
+ "type": "null"
2812
+ }
2813
+ ],
2814
+ "default": null,
2815
+ "title": "Role"
2816
+ },
2817
+ "timestamp": {
2818
+ "anyOf": [
2819
+ {
2820
+ "type": "integer"
2821
+ },
2822
+ {
2823
+ "type": "null"
2824
+ }
2825
+ ],
2826
+ "default": null,
2827
+ "title": "Timestamp"
2828
+ },
2829
+ "type": {
2830
+ "const": "TEXT_MESSAGE_CHUNK",
2831
+ "default": "TEXT_MESSAGE_CHUNK",
2832
+ "title": "Type",
2833
+ "type": "string"
2834
+ }
2835
+ },
2836
+ "title": "TextMessageChunkEvent",
2837
+ "type": "object"
2838
+ },
2839
+ "TextMessageContentEvent": {
2840
+ "additionalProperties": true,
2841
+ "description": "Event containing a piece of text message content.",
2842
+ "properties": {
2843
+ "delta": {
2844
+ "title": "Delta",
2845
+ "type": "string"
2846
+ },
2847
+ "messageId": {
2848
+ "title": "Messageid",
2849
+ "type": "string"
2850
+ },
2851
+ "rawEvent": {
2852
+ "anyOf": [
2853
+ {},
2854
+ {
2855
+ "type": "null"
2856
+ }
2857
+ ],
2858
+ "default": null,
2859
+ "title": "Rawevent"
2860
+ },
2861
+ "timestamp": {
2862
+ "anyOf": [
2863
+ {
2864
+ "type": "integer"
2865
+ },
2866
+ {
2867
+ "type": "null"
2868
+ }
2869
+ ],
2870
+ "default": null,
2871
+ "title": "Timestamp"
2872
+ },
2873
+ "type": {
2874
+ "const": "TEXT_MESSAGE_CONTENT",
2875
+ "default": "TEXT_MESSAGE_CONTENT",
2876
+ "title": "Type",
2877
+ "type": "string"
2878
+ }
2879
+ },
2880
+ "required": [
2881
+ "messageId",
2882
+ "delta"
2883
+ ],
2884
+ "title": "TextMessageContentEvent",
2885
+ "type": "object"
2886
+ },
2887
+ "TextMessageEndEvent": {
2888
+ "additionalProperties": true,
2889
+ "description": "Event indicating the end of a text message.",
2890
+ "properties": {
2891
+ "messageId": {
2892
+ "title": "Messageid",
2893
+ "type": "string"
2894
+ },
2895
+ "rawEvent": {
2896
+ "anyOf": [
2897
+ {},
2898
+ {
2899
+ "type": "null"
2900
+ }
2901
+ ],
2902
+ "default": null,
2903
+ "title": "Rawevent"
2904
+ },
2905
+ "timestamp": {
2906
+ "anyOf": [
2907
+ {
2908
+ "type": "integer"
2909
+ },
2910
+ {
2911
+ "type": "null"
2912
+ }
2913
+ ],
2914
+ "default": null,
2915
+ "title": "Timestamp"
2916
+ },
2917
+ "type": {
2918
+ "const": "TEXT_MESSAGE_END",
2919
+ "default": "TEXT_MESSAGE_END",
2920
+ "title": "Type",
2921
+ "type": "string"
2922
+ }
2923
+ },
2924
+ "required": [
2925
+ "messageId"
2926
+ ],
2927
+ "title": "TextMessageEndEvent",
2928
+ "type": "object"
2929
+ },
2930
+ "TextMessageStartEvent": {
2931
+ "additionalProperties": true,
2932
+ "description": "Event indicating the start of a text message.",
2933
+ "properties": {
2934
+ "messageId": {
2935
+ "title": "Messageid",
2936
+ "type": "string"
2937
+ },
2938
+ "name": {
2939
+ "anyOf": [
2940
+ {
2941
+ "type": "string"
2942
+ },
2943
+ {
2944
+ "type": "null"
2945
+ }
2946
+ ],
2947
+ "default": null,
2948
+ "title": "Name"
2949
+ },
2950
+ "rawEvent": {
2951
+ "anyOf": [
2952
+ {},
2953
+ {
2954
+ "type": "null"
2955
+ }
2956
+ ],
2957
+ "default": null,
2958
+ "title": "Rawevent"
2959
+ },
2960
+ "role": {
2961
+ "default": "assistant",
2962
+ "enum": [
2963
+ "developer",
2964
+ "system",
2965
+ "assistant",
2966
+ "user"
2967
+ ],
2968
+ "title": "Role",
2969
+ "type": "string"
2970
+ },
2971
+ "timestamp": {
2972
+ "anyOf": [
2973
+ {
2974
+ "type": "integer"
2975
+ },
2976
+ {
2977
+ "type": "null"
2978
+ }
2979
+ ],
2980
+ "default": null,
2981
+ "title": "Timestamp"
2982
+ },
2983
+ "type": {
2984
+ "const": "TEXT_MESSAGE_START",
2985
+ "default": "TEXT_MESSAGE_START",
2986
+ "title": "Type",
2987
+ "type": "string"
2988
+ }
2989
+ },
2990
+ "required": [
2991
+ "messageId"
2992
+ ],
2993
+ "title": "TextMessageStartEvent",
2994
+ "type": "object"
2995
+ },
2996
+ "ThinkingEndEvent": {
2997
+ "additionalProperties": true,
2998
+ "description": "Event indicating the end of a thinking step event.",
2999
+ "properties": {
3000
+ "rawEvent": {
3001
+ "anyOf": [
3002
+ {},
3003
+ {
3004
+ "type": "null"
3005
+ }
3006
+ ],
3007
+ "default": null,
3008
+ "title": "Rawevent"
3009
+ },
3010
+ "timestamp": {
3011
+ "anyOf": [
3012
+ {
3013
+ "type": "integer"
3014
+ },
3015
+ {
3016
+ "type": "null"
3017
+ }
3018
+ ],
3019
+ "default": null,
3020
+ "title": "Timestamp"
3021
+ },
3022
+ "type": {
3023
+ "const": "THINKING_END",
3024
+ "default": "THINKING_END",
3025
+ "title": "Type",
3026
+ "type": "string"
3027
+ }
3028
+ },
3029
+ "title": "ThinkingEndEvent",
3030
+ "type": "object"
3031
+ },
3032
+ "ThinkingStartEvent": {
3033
+ "additionalProperties": true,
3034
+ "description": "Event indicating the start of a thinking step event.",
3035
+ "properties": {
3036
+ "rawEvent": {
3037
+ "anyOf": [
3038
+ {},
3039
+ {
3040
+ "type": "null"
3041
+ }
3042
+ ],
3043
+ "default": null,
3044
+ "title": "Rawevent"
3045
+ },
3046
+ "timestamp": {
3047
+ "anyOf": [
3048
+ {
3049
+ "type": "integer"
3050
+ },
3051
+ {
3052
+ "type": "null"
3053
+ }
3054
+ ],
3055
+ "default": null,
3056
+ "title": "Timestamp"
3057
+ },
3058
+ "title": {
3059
+ "anyOf": [
3060
+ {
3061
+ "type": "string"
3062
+ },
3063
+ {
3064
+ "type": "null"
3065
+ }
3066
+ ],
3067
+ "default": null,
3068
+ "title": "Title"
3069
+ },
3070
+ "type": {
3071
+ "const": "THINKING_START",
3072
+ "default": "THINKING_START",
3073
+ "title": "Type",
3074
+ "type": "string"
3075
+ }
3076
+ },
3077
+ "title": "ThinkingStartEvent",
3078
+ "type": "object"
3079
+ },
3080
+ "ThinkingTextMessageContentEvent": {
3081
+ "additionalProperties": true,
3082
+ "description": "Event indicating a piece of a thinking text message.",
3083
+ "properties": {
3084
+ "delta": {
3085
+ "title": "Delta",
3086
+ "type": "string"
3087
+ },
3088
+ "rawEvent": {
3089
+ "anyOf": [
3090
+ {},
3091
+ {
3092
+ "type": "null"
3093
+ }
3094
+ ],
3095
+ "default": null,
3096
+ "title": "Rawevent"
3097
+ },
3098
+ "timestamp": {
3099
+ "anyOf": [
3100
+ {
3101
+ "type": "integer"
3102
+ },
3103
+ {
3104
+ "type": "null"
3105
+ }
3106
+ ],
3107
+ "default": null,
3108
+ "title": "Timestamp"
3109
+ },
3110
+ "type": {
3111
+ "const": "THINKING_TEXT_MESSAGE_CONTENT",
3112
+ "default": "THINKING_TEXT_MESSAGE_CONTENT",
3113
+ "title": "Type",
3114
+ "type": "string"
3115
+ }
3116
+ },
3117
+ "required": [
3118
+ "delta"
3119
+ ],
3120
+ "title": "ThinkingTextMessageContentEvent",
3121
+ "type": "object"
3122
+ },
3123
+ "ThinkingTextMessageEndEvent": {
3124
+ "additionalProperties": true,
3125
+ "description": "Event indicating the end of a thinking text message.",
3126
+ "properties": {
3127
+ "rawEvent": {
3128
+ "anyOf": [
3129
+ {},
3130
+ {
3131
+ "type": "null"
3132
+ }
3133
+ ],
3134
+ "default": null,
3135
+ "title": "Rawevent"
3136
+ },
3137
+ "timestamp": {
3138
+ "anyOf": [
3139
+ {
3140
+ "type": "integer"
3141
+ },
3142
+ {
3143
+ "type": "null"
3144
+ }
3145
+ ],
3146
+ "default": null,
3147
+ "title": "Timestamp"
3148
+ },
3149
+ "type": {
3150
+ "const": "THINKING_TEXT_MESSAGE_END",
3151
+ "default": "THINKING_TEXT_MESSAGE_END",
3152
+ "title": "Type",
3153
+ "type": "string"
3154
+ }
3155
+ },
3156
+ "title": "ThinkingTextMessageEndEvent",
3157
+ "type": "object"
3158
+ },
3159
+ "ThinkingTextMessageStartEvent": {
3160
+ "additionalProperties": true,
3161
+ "description": "Event indicating the start of a thinking text message.",
3162
+ "properties": {
3163
+ "rawEvent": {
3164
+ "anyOf": [
3165
+ {},
3166
+ {
3167
+ "type": "null"
3168
+ }
3169
+ ],
3170
+ "default": null,
3171
+ "title": "Rawevent"
3172
+ },
3173
+ "timestamp": {
3174
+ "anyOf": [
3175
+ {
3176
+ "type": "integer"
3177
+ },
3178
+ {
3179
+ "type": "null"
3180
+ }
3181
+ ],
3182
+ "default": null,
3183
+ "title": "Timestamp"
3184
+ },
3185
+ "type": {
3186
+ "const": "THINKING_TEXT_MESSAGE_START",
3187
+ "default": "THINKING_TEXT_MESSAGE_START",
3188
+ "title": "Type",
3189
+ "type": "string"
3190
+ }
3191
+ },
3192
+ "title": "ThinkingTextMessageStartEvent",
3193
+ "type": "object"
3194
+ },
3195
+ "Tool": {
3196
+ "additionalProperties": true,
3197
+ "description": "A tool definition.",
3198
+ "properties": {
3199
+ "description": {
3200
+ "title": "Description",
3201
+ "type": "string"
3202
+ },
3203
+ "name": {
3204
+ "title": "Name",
3205
+ "type": "string"
3206
+ },
3207
+ "parameters": {
3208
+ "anyOf": [
3209
+ {},
3210
+ {
3211
+ "type": "null"
3212
+ }
3213
+ ],
3214
+ "default": null,
3215
+ "title": "Parameters"
3216
+ }
3217
+ },
3218
+ "required": [
3219
+ "name",
3220
+ "description"
3221
+ ],
3222
+ "title": "Tool",
3223
+ "type": "object"
3224
+ },
3225
+ "ToolCall": {
3226
+ "additionalProperties": true,
3227
+ "description": "A tool call, modelled after OpenAI tool calls.",
3228
+ "properties": {
3229
+ "encryptedValue": {
3230
+ "anyOf": [
3231
+ {
3232
+ "type": "string"
3233
+ },
3234
+ {
3235
+ "type": "null"
3236
+ }
3237
+ ],
3238
+ "default": null,
3239
+ "title": "Encryptedvalue"
3240
+ },
3241
+ "function": {
3242
+ "$ref": "#/definitions/FunctionCall"
3243
+ },
3244
+ "id": {
3245
+ "title": "Id",
3246
+ "type": "string"
3247
+ },
3248
+ "type": {
3249
+ "const": "function",
3250
+ "default": "function",
3251
+ "title": "Type",
3252
+ "type": "string"
3253
+ }
3254
+ },
3255
+ "required": [
3256
+ "id",
3257
+ "function"
3258
+ ],
3259
+ "title": "ToolCall",
3260
+ "type": "object"
3261
+ },
3262
+ "ToolCallArgsEvent": {
3263
+ "additionalProperties": true,
3264
+ "description": "Event containing tool call arguments.",
3265
+ "properties": {
3266
+ "delta": {
3267
+ "title": "Delta",
3268
+ "type": "string"
3269
+ },
3270
+ "rawEvent": {
3271
+ "anyOf": [
3272
+ {},
3273
+ {
3274
+ "type": "null"
3275
+ }
3276
+ ],
3277
+ "default": null,
3278
+ "title": "Rawevent"
3279
+ },
3280
+ "timestamp": {
3281
+ "anyOf": [
3282
+ {
3283
+ "type": "integer"
3284
+ },
3285
+ {
3286
+ "type": "null"
3287
+ }
3288
+ ],
3289
+ "default": null,
3290
+ "title": "Timestamp"
3291
+ },
3292
+ "toolCallId": {
3293
+ "title": "Toolcallid",
3294
+ "type": "string"
3295
+ },
3296
+ "type": {
3297
+ "const": "TOOL_CALL_ARGS",
3298
+ "default": "TOOL_CALL_ARGS",
3299
+ "title": "Type",
3300
+ "type": "string"
3301
+ }
3302
+ },
3303
+ "required": [
3304
+ "toolCallId",
3305
+ "delta"
3306
+ ],
3307
+ "title": "ToolCallArgsEvent",
3308
+ "type": "object"
3309
+ },
3310
+ "ToolCallChunkEvent": {
3311
+ "additionalProperties": true,
3312
+ "description": "Event containing a chunk of tool call content.",
3313
+ "properties": {
3314
+ "delta": {
3315
+ "anyOf": [
3316
+ {
3317
+ "type": "string"
3318
+ },
3319
+ {
3320
+ "type": "null"
3321
+ }
3322
+ ],
3323
+ "default": null,
3324
+ "title": "Delta"
3325
+ },
3326
+ "parentMessageId": {
3327
+ "anyOf": [
3328
+ {
3329
+ "type": "string"
3330
+ },
3331
+ {
3332
+ "type": "null"
3333
+ }
3334
+ ],
3335
+ "default": null,
3336
+ "title": "Parentmessageid"
3337
+ },
3338
+ "rawEvent": {
3339
+ "anyOf": [
3340
+ {},
3341
+ {
3342
+ "type": "null"
3343
+ }
3344
+ ],
3345
+ "default": null,
3346
+ "title": "Rawevent"
3347
+ },
3348
+ "timestamp": {
3349
+ "anyOf": [
3350
+ {
3351
+ "type": "integer"
3352
+ },
3353
+ {
3354
+ "type": "null"
3355
+ }
3356
+ ],
3357
+ "default": null,
3358
+ "title": "Timestamp"
3359
+ },
3360
+ "toolCallId": {
3361
+ "anyOf": [
3362
+ {
3363
+ "type": "string"
3364
+ },
3365
+ {
3366
+ "type": "null"
3367
+ }
3368
+ ],
3369
+ "default": null,
3370
+ "title": "Toolcallid"
3371
+ },
3372
+ "toolCallName": {
3373
+ "anyOf": [
3374
+ {
3375
+ "type": "string"
3376
+ },
3377
+ {
3378
+ "type": "null"
3379
+ }
3380
+ ],
3381
+ "default": null,
3382
+ "title": "Toolcallname"
3383
+ },
3384
+ "type": {
3385
+ "const": "TOOL_CALL_CHUNK",
3386
+ "default": "TOOL_CALL_CHUNK",
3387
+ "title": "Type",
3388
+ "type": "string"
3389
+ }
3390
+ },
3391
+ "title": "ToolCallChunkEvent",
3392
+ "type": "object"
3393
+ },
3394
+ "ToolCallEndEvent": {
3395
+ "additionalProperties": true,
3396
+ "description": "Event indicating the end of a tool call.",
3397
+ "properties": {
3398
+ "rawEvent": {
3399
+ "anyOf": [
3400
+ {},
3401
+ {
3402
+ "type": "null"
3403
+ }
3404
+ ],
3405
+ "default": null,
3406
+ "title": "Rawevent"
3407
+ },
3408
+ "timestamp": {
3409
+ "anyOf": [
3410
+ {
3411
+ "type": "integer"
3412
+ },
3413
+ {
3414
+ "type": "null"
3415
+ }
3416
+ ],
3417
+ "default": null,
3418
+ "title": "Timestamp"
3419
+ },
3420
+ "toolCallId": {
3421
+ "title": "Toolcallid",
3422
+ "type": "string"
3423
+ },
3424
+ "type": {
3425
+ "const": "TOOL_CALL_END",
3426
+ "default": "TOOL_CALL_END",
3427
+ "title": "Type",
3428
+ "type": "string"
3429
+ }
3430
+ },
3431
+ "required": [
3432
+ "toolCallId"
3433
+ ],
3434
+ "title": "ToolCallEndEvent",
3435
+ "type": "object"
3436
+ },
3437
+ "ToolCallResultEvent": {
3438
+ "additionalProperties": true,
3439
+ "description": "Event containing the result of a tool call.",
3440
+ "properties": {
3441
+ "content": {
3442
+ "title": "Content",
3443
+ "type": "string"
3444
+ },
3445
+ "messageId": {
3446
+ "title": "Messageid",
3447
+ "type": "string"
3448
+ },
3449
+ "rawEvent": {
3450
+ "anyOf": [
3451
+ {},
3452
+ {
3453
+ "type": "null"
3454
+ }
3455
+ ],
3456
+ "default": null,
3457
+ "title": "Rawevent"
3458
+ },
3459
+ "role": {
3460
+ "anyOf": [
3461
+ {
3462
+ "const": "tool",
3463
+ "type": "string"
3464
+ },
3465
+ {
3466
+ "type": "null"
3467
+ }
3468
+ ],
3469
+ "default": null,
3470
+ "title": "Role"
3471
+ },
3472
+ "timestamp": {
3473
+ "anyOf": [
3474
+ {
3475
+ "type": "integer"
3476
+ },
3477
+ {
3478
+ "type": "null"
3479
+ }
3480
+ ],
3481
+ "default": null,
3482
+ "title": "Timestamp"
3483
+ },
3484
+ "toolCallId": {
3485
+ "title": "Toolcallid",
3486
+ "type": "string"
3487
+ },
3488
+ "type": {
3489
+ "const": "TOOL_CALL_RESULT",
3490
+ "default": "TOOL_CALL_RESULT",
3491
+ "title": "Type",
3492
+ "type": "string"
3493
+ }
3494
+ },
3495
+ "required": [
3496
+ "messageId",
3497
+ "toolCallId",
3498
+ "content"
3499
+ ],
3500
+ "title": "ToolCallResultEvent",
3501
+ "type": "object"
3502
+ },
3503
+ "ToolCallStartEvent": {
3504
+ "additionalProperties": true,
3505
+ "description": "Event indicating the start of a tool call.",
3506
+ "properties": {
3507
+ "parentMessageId": {
3508
+ "anyOf": [
3509
+ {
3510
+ "type": "string"
3511
+ },
3512
+ {
3513
+ "type": "null"
3514
+ }
3515
+ ],
3516
+ "default": null,
3517
+ "title": "Parentmessageid"
3518
+ },
3519
+ "rawEvent": {
3520
+ "anyOf": [
3521
+ {},
3522
+ {
3523
+ "type": "null"
3524
+ }
3525
+ ],
3526
+ "default": null,
3527
+ "title": "Rawevent"
3528
+ },
3529
+ "timestamp": {
3530
+ "anyOf": [
3531
+ {
3532
+ "type": "integer"
3533
+ },
3534
+ {
3535
+ "type": "null"
3536
+ }
3537
+ ],
3538
+ "default": null,
3539
+ "title": "Timestamp"
3540
+ },
3541
+ "toolCallId": {
3542
+ "title": "Toolcallid",
3543
+ "type": "string"
3544
+ },
3545
+ "toolCallName": {
3546
+ "title": "Toolcallname",
3547
+ "type": "string"
3548
+ },
3549
+ "type": {
3550
+ "const": "TOOL_CALL_START",
3551
+ "default": "TOOL_CALL_START",
3552
+ "title": "Type",
3553
+ "type": "string"
3554
+ }
3555
+ },
3556
+ "required": [
3557
+ "toolCallId",
3558
+ "toolCallName"
3559
+ ],
3560
+ "title": "ToolCallStartEvent",
3561
+ "type": "object"
3562
+ },
3563
+ "ToolMessage": {
3564
+ "additionalProperties": true,
3565
+ "description": "A tool result message.",
3566
+ "properties": {
3567
+ "content": {
3568
+ "title": "Content",
3569
+ "type": "string"
3570
+ },
3571
+ "encryptedValue": {
3572
+ "anyOf": [
3573
+ {
3574
+ "type": "string"
3575
+ },
3576
+ {
3577
+ "type": "null"
3578
+ }
3579
+ ],
3580
+ "default": null,
3581
+ "title": "Encryptedvalue"
3582
+ },
3583
+ "error": {
3584
+ "anyOf": [
3585
+ {
3586
+ "type": "string"
3587
+ },
3588
+ {
3589
+ "type": "null"
3590
+ }
3591
+ ],
3592
+ "default": null,
3593
+ "title": "Error"
3594
+ },
3595
+ "id": {
3596
+ "title": "Id",
3597
+ "type": "string"
3598
+ },
3599
+ "role": {
3600
+ "const": "tool",
3601
+ "default": "tool",
3602
+ "title": "Role",
3603
+ "type": "string"
3604
+ },
3605
+ "toolCallId": {
3606
+ "title": "Toolcallid",
3607
+ "type": "string"
3608
+ }
3609
+ },
3610
+ "required": [
3611
+ "id",
3612
+ "content",
3613
+ "toolCallId"
3614
+ ],
3615
+ "title": "ToolMessage",
3616
+ "type": "object"
3617
+ },
3618
+ "ToolsCapabilities": {
3619
+ "additionalProperties": true,
3620
+ "description": "Tool calling capabilities.\n\nDistinguishes between tools the agent itself provides (listed in `items`) and tools the client passes at runtime\nvia `RunAgentInput.tools`. Enable this when your agent can call functions, search the web, execute code, etc.",
3621
+ "properties": {
3622
+ "clientProvided": {
3623
+ "anyOf": [
3624
+ {
3625
+ "type": "boolean"
3626
+ },
3627
+ {
3628
+ "type": "null"
3629
+ }
3630
+ ],
3631
+ "default": null,
3632
+ "description": "Set `True` if the agent accepts and uses tools provided by the client at runtime.",
3633
+ "title": "Clientprovided"
3634
+ },
3635
+ "items": {
3636
+ "anyOf": [
3637
+ {
3638
+ "items": {
3639
+ "$ref": "#/definitions/Tool"
3640
+ },
3641
+ "type": "array"
3642
+ },
3643
+ {
3644
+ "type": "null"
3645
+ }
3646
+ ],
3647
+ "default": null,
3648
+ "description": "The tools this agent provides on its own (full JSON Schema definitions). These are distinct from client-provided tools passed in `RunAgentInput.tools`.",
3649
+ "title": "Items"
3650
+ },
3651
+ "parallelCalls": {
3652
+ "anyOf": [
3653
+ {
3654
+ "type": "boolean"
3655
+ },
3656
+ {
3657
+ "type": "null"
3658
+ }
3659
+ ],
3660
+ "default": null,
3661
+ "description": "Set `True` if the agent can invoke multiple tools concurrently within a single step.",
3662
+ "title": "Parallelcalls"
3663
+ },
3664
+ "supported": {
3665
+ "anyOf": [
3666
+ {
3667
+ "type": "boolean"
3668
+ },
3669
+ {
3670
+ "type": "null"
3671
+ }
3672
+ ],
3673
+ "default": null,
3674
+ "description": "Set `True` if the agent can make tool calls at all. Set `False` to explicitly signal tool calling is disabled even if items are present.",
3675
+ "title": "Supported"
3676
+ }
3677
+ },
3678
+ "title": "ToolsCapabilities",
3679
+ "type": "object"
3680
+ },
3681
+ "TransportCapabilities": {
3682
+ "additionalProperties": true,
3683
+ "description": "Declares which transport mechanisms the agent supports.\n\nClients use this to pick the best connection strategy. Only set flags to `True` for transports your agent actually\nhandles \u2014 omit or set `False` for unsupported ones.",
3684
+ "properties": {
3685
+ "httpBinary": {
3686
+ "anyOf": [
3687
+ {
3688
+ "type": "boolean"
3689
+ },
3690
+ {
3691
+ "type": "null"
3692
+ }
3693
+ ],
3694
+ "default": null,
3695
+ "description": "Set `True` if the agent supports the AG-UI binary protocol (protobuf over HTTP).",
3696
+ "title": "Httpbinary"
3697
+ },
3698
+ "pushNotifications": {
3699
+ "anyOf": [
3700
+ {
3701
+ "type": "boolean"
3702
+ },
3703
+ {
3704
+ "type": "null"
3705
+ }
3706
+ ],
3707
+ "default": null,
3708
+ "description": "Set `True` if the agent can send async updates via webhooks after a run finishes.",
3709
+ "title": "Pushnotifications"
3710
+ },
3711
+ "resumable": {
3712
+ "anyOf": [
3713
+ {
3714
+ "type": "boolean"
3715
+ },
3716
+ {
3717
+ "type": "null"
3718
+ }
3719
+ ],
3720
+ "default": null,
3721
+ "description": "Set `True` if the agent supports resuming interrupted streams via sequence numbers.",
3722
+ "title": "Resumable"
3723
+ },
3724
+ "streaming": {
3725
+ "anyOf": [
3726
+ {
3727
+ "type": "boolean"
3728
+ },
3729
+ {
3730
+ "type": "null"
3731
+ }
3732
+ ],
3733
+ "default": null,
3734
+ "description": "Set `True` if the agent streams responses via SSE. Most agents enable this.",
3735
+ "title": "Streaming"
3736
+ },
3737
+ "websocket": {
3738
+ "anyOf": [
3739
+ {
3740
+ "type": "boolean"
3741
+ },
3742
+ {
3743
+ "type": "null"
3744
+ }
3745
+ ],
3746
+ "default": null,
3747
+ "description": "Set `True` if the agent accepts persistent WebSocket connections.",
3748
+ "title": "Websocket"
3749
+ }
3750
+ },
3751
+ "title": "TransportCapabilities",
3752
+ "type": "object"
3753
+ },
3754
+ "UserMessage": {
3755
+ "additionalProperties": true,
3756
+ "description": "A user message supporting text or multimodal content.",
3757
+ "properties": {
3758
+ "content": {
3759
+ "anyOf": [
3760
+ {
3761
+ "type": "string"
3762
+ },
3763
+ {
3764
+ "items": {
3765
+ "discriminator": {
3766
+ "mapping": {
3767
+ "audio": "#/definitions/AudioInputContent",
3768
+ "binary": "#/definitions/BinaryInputContent",
3769
+ "document": "#/definitions/DocumentInputContent",
3770
+ "image": "#/definitions/ImageInputContent",
3771
+ "text": "#/definitions/TextInputContent",
3772
+ "video": "#/definitions/VideoInputContent"
3773
+ },
3774
+ "propertyName": "type"
3775
+ },
3776
+ "oneOf": [
3777
+ {
3778
+ "$ref": "#/definitions/TextInputContent"
3779
+ },
3780
+ {
3781
+ "$ref": "#/definitions/ImageInputContent"
3782
+ },
3783
+ {
3784
+ "$ref": "#/definitions/AudioInputContent"
3785
+ },
3786
+ {
3787
+ "$ref": "#/definitions/VideoInputContent"
3788
+ },
3789
+ {
3790
+ "$ref": "#/definitions/DocumentInputContent"
3791
+ },
3792
+ {
3793
+ "$ref": "#/definitions/BinaryInputContent"
3794
+ }
3795
+ ]
3796
+ },
3797
+ "type": "array"
3798
+ }
3799
+ ],
3800
+ "title": "Content"
3801
+ },
3802
+ "encryptedValue": {
3803
+ "anyOf": [
3804
+ {
3805
+ "type": "string"
3806
+ },
3807
+ {
3808
+ "type": "null"
3809
+ }
3810
+ ],
3811
+ "default": null,
3812
+ "title": "Encryptedvalue"
3813
+ },
3814
+ "id": {
3815
+ "title": "Id",
3816
+ "type": "string"
3817
+ },
3818
+ "name": {
3819
+ "anyOf": [
3820
+ {
3821
+ "type": "string"
3822
+ },
3823
+ {
3824
+ "type": "null"
3825
+ }
3826
+ ],
3827
+ "default": null,
3828
+ "title": "Name"
3829
+ },
3830
+ "role": {
3831
+ "const": "user",
3832
+ "default": "user",
3833
+ "title": "Role",
3834
+ "type": "string"
3835
+ }
3836
+ },
3837
+ "required": [
3838
+ "id",
3839
+ "content"
3840
+ ],
3841
+ "title": "UserMessage",
3842
+ "type": "object"
3843
+ },
3844
+ "VideoInputContent": {
3845
+ "additionalProperties": true,
3846
+ "description": "A video input content fragment.",
3847
+ "properties": {
3848
+ "metadata": {
3849
+ "anyOf": [
3850
+ {},
3851
+ {
3852
+ "type": "null"
3853
+ }
3854
+ ],
3855
+ "default": null,
3856
+ "title": "Metadata"
3857
+ },
3858
+ "source": {
3859
+ "discriminator": {
3860
+ "mapping": {
3861
+ "data": "#/definitions/InputContentDataSource",
3862
+ "url": "#/definitions/InputContentUrlSource"
3863
+ },
3864
+ "propertyName": "type"
3865
+ },
3866
+ "oneOf": [
3867
+ {
3868
+ "$ref": "#/definitions/InputContentDataSource"
3869
+ },
3870
+ {
3871
+ "$ref": "#/definitions/InputContentUrlSource"
3872
+ }
3873
+ ],
3874
+ "title": "Source"
3875
+ },
3876
+ "type": {
3877
+ "const": "video",
3878
+ "default": "video",
3879
+ "title": "Type",
3880
+ "type": "string"
3881
+ }
3882
+ },
3883
+ "required": [
3884
+ "source"
3885
+ ],
3886
+ "title": "VideoInputContent",
3887
+ "type": "object"
3888
+ }
3889
+ }
3890
+ }