a2a 0.1.0.pre → 0.2.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.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.agent-docs/ROADMAP.md +423 -0
  3. data/.agent-docs/index.md +124 -0
  4. data/.agent-docs/llms.txt +318 -0
  5. data/.agent-docs/specification/json.json +2575 -0
  6. data/.agent-docs/specification.md +1924 -0
  7. data/.agent-docs/topics/a2a-and-mcp.md +132 -0
  8. data/.agent-docs/topics/agent-discovery.md +96 -0
  9. data/.agent-docs/topics/enterprise-ready.md +139 -0
  10. data/.agent-docs/topics/extensions.md +260 -0
  11. data/.agent-docs/topics/key-concepts.md +99 -0
  12. data/.agent-docs/topics/life-of-a-task.md +255 -0
  13. data/.agent-docs/topics/streaming-and-async.md +111 -0
  14. data/.agent-docs/topics/what-is-a2a.md +218 -0
  15. data/.agent-docs/tutorials/index.md +31 -0
  16. data/.agent-docs/tutorials/python/1-introduction.md +32 -0
  17. data/.agent-docs/tutorials/python/2-setup.md +55 -0
  18. data/.agent-docs/tutorials/python/3-agent-skills-and-card.md +48 -0
  19. data/.agent-docs/tutorials/python/4-agent-executor.md +57 -0
  20. data/.agent-docs/tutorials/python/5-start-server.md +55 -0
  21. data/.agent-docs/tutorials/python/6-interact-with-server.md +95 -0
  22. data/.agent-docs/tutorials/python/7-streaming-and-multiturn.md +97 -0
  23. data/.agent-docs/tutorials/python/8-next-steps.md +40 -0
  24. data/.agent-docs/types.ts +1544 -0
  25. data/.agent-docs/types_mapping.md +196 -0
  26. data/.claude/commands/gemfile/update.md +52 -0
  27. data/.claude/settings.local.json +23 -0
  28. data/.rubocop.yml +25 -4
  29. data/.tool-versions +1 -1
  30. data/CHANGELOG.md +86 -2
  31. data/CLAUDE.md +98 -0
  32. data/Guardfile +1 -1
  33. data/README.md +55 -4
  34. data/Rakefile +1 -3
  35. data/WARP.md +115 -0
  36. data/lib/a2a/extensions/additional_properties.rb +121 -0
  37. data/lib/a2a/extensions/case_transformation.rb +46 -0
  38. data/lib/a2a/extensions/json_deserialization.rb +51 -0
  39. data/lib/a2a/types/agent_capabilities.rb +18 -0
  40. data/lib/a2a/types/agent_card.rb +71 -0
  41. data/lib/a2a/types/agent_card_signature.rb +17 -0
  42. data/lib/a2a/types/agent_extension.rb +19 -0
  43. data/lib/a2a/types/agent_interface.rb +13 -0
  44. data/lib/a2a/types/agent_provider.rb +12 -0
  45. data/lib/a2a/types/agent_skill.rb +34 -0
  46. data/lib/a2a/types/api_key_security_scheme.rb +15 -0
  47. data/lib/a2a/types/artifact.rb +24 -0
  48. data/lib/a2a/types/authenticated_extended_card_not_configured_error.rb +43 -0
  49. data/lib/a2a/types/authorization_code_oauth_flow.rb +22 -0
  50. data/lib/a2a/types/cancel_task_request.rb +18 -0
  51. data/lib/a2a/types/cancel_task_response.rb +12 -0
  52. data/lib/a2a/types/client_credentials_oauth_flow.rb +16 -0
  53. data/lib/a2a/types/content_type_not_supported_error.rb +42 -0
  54. data/lib/a2a/types/data_part.rb +12 -0
  55. data/lib/a2a/types/delete_task_push_notification_config_params.rb +9 -0
  56. data/lib/a2a/types/delete_task_push_notification_config_request.rb +18 -0
  57. data/lib/a2a/types/delete_task_push_notification_config_response.rb +13 -0
  58. data/lib/a2a/types/error.rb +19 -0
  59. data/lib/a2a/types/error_codes.rb +32 -0
  60. data/lib/a2a/types/file_base.rb +12 -0
  61. data/lib/a2a/types/file_part.rb +13 -0
  62. data/lib/a2a/types/file_with_bytes.rb +9 -0
  63. data/lib/a2a/types/file_with_uri.rb +9 -0
  64. data/lib/a2a/types/get_authenticated_extended_card_request.rb +15 -0
  65. data/lib/a2a/types/get_authenticated_extended_card_response.rb +13 -0
  66. data/lib/a2a/types/get_task_push_notification_config_params.rb +9 -0
  67. data/lib/a2a/types/get_task_push_notification_config_request.rb +21 -0
  68. data/lib/a2a/types/get_task_push_notification_request.rb +18 -0
  69. data/lib/a2a/types/get_task_push_notification_response.rb +12 -0
  70. data/lib/a2a/types/get_task_request.rb +18 -0
  71. data/lib/a2a/types/get_task_response.rb +12 -0
  72. data/lib/a2a/types/http_auth_security_scheme.rb +18 -0
  73. data/lib/a2a/types/implicit_oauth_flow.rb +16 -0
  74. data/lib/a2a/types/invalid_agent_response_error.rb +41 -0
  75. data/lib/a2a/types/list_task_push_notification_config_params.rb +8 -0
  76. data/lib/a2a/types/list_task_push_notification_config_request.rb +18 -0
  77. data/lib/a2a/types/list_task_push_notification_config_response.rb +13 -0
  78. data/lib/a2a/types/message.rb +35 -0
  79. data/lib/a2a/types/message_send_configuration.rb +20 -0
  80. data/lib/a2a/types/message_send_params.rb +16 -0
  81. data/lib/a2a/types/mutual_tls_security_scheme.rb +9 -0
  82. data/lib/a2a/types/oauth2_security_scheme.rb +16 -0
  83. data/lib/a2a/types/oauth_flows.rb +20 -0
  84. data/lib/a2a/types/openid_connect_security_scheme.rb +12 -0
  85. data/lib/a2a/types/part.rb +7 -0
  86. data/lib/a2a/types/part_base.rb +9 -0
  87. data/lib/a2a/types/password_oauth_flow.rb +16 -0
  88. data/lib/a2a/types/protocol_struct.rb +12 -0
  89. data/lib/a2a/types/push_notification_authentication_info.rb +12 -0
  90. data/lib/a2a/types/push_notification_config.rb +20 -0
  91. data/lib/a2a/types/push_notification_not_supported_error.rb +42 -0
  92. data/lib/a2a/types/request.rb +15 -0
  93. data/lib/a2a/types/security_scheme.rb +11 -0
  94. data/lib/a2a/types/security_scheme_base.rb +9 -0
  95. data/lib/a2a/types/send_message_request.rb +18 -0
  96. data/lib/a2a/types/send_message_response.rb +13 -0
  97. data/lib/a2a/types/send_streaming_message_request.rb +18 -0
  98. data/lib/a2a/types/send_streaming_message_response.rb +15 -0
  99. data/lib/a2a/types/set_task_push_notification_config_request.rb +18 -0
  100. data/lib/a2a/types/set_task_push_notification_request.rb +18 -0
  101. data/lib/a2a/types/set_task_push_notification_response.rb +12 -0
  102. data/lib/a2a/types/task.rb +29 -0
  103. data/lib/a2a/types/task_artifact_update_event.rb +29 -0
  104. data/lib/a2a/types/task_id_params.rb +12 -0
  105. data/lib/a2a/types/task_not_cancelable_error.rb +42 -0
  106. data/lib/a2a/types/task_not_found_error.rb +42 -0
  107. data/lib/a2a/types/task_push_notification_config.rb +12 -0
  108. data/lib/a2a/types/task_query_params.rb +9 -0
  109. data/lib/a2a/types/task_resubscription_request.rb +18 -0
  110. data/lib/a2a/types/task_state.rb +7 -0
  111. data/lib/a2a/types/task_status.rb +15 -0
  112. data/lib/a2a/types/task_status_update_event.rb +25 -0
  113. data/lib/a2a/types/text_part.rb +12 -0
  114. data/lib/a2a/types/transport_protocol.rb +6 -0
  115. data/lib/a2a/types/unsupported_operation_error.rb +42 -0
  116. data/lib/a2a/types.rb +25 -0
  117. data/lib/a2a/version.rb +1 -1
  118. data/lib/a2a.rb +30 -1
  119. metadata +128 -299
@@ -0,0 +1,2575 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "A2AError": {
5
+ "anyOf": [
6
+ {
7
+ "$ref": "#/definitions/JSONParseError"
8
+ },
9
+ {
10
+ "$ref": "#/definitions/InvalidRequestError"
11
+ },
12
+ {
13
+ "$ref": "#/definitions/MethodNotFoundError"
14
+ },
15
+ {
16
+ "$ref": "#/definitions/InvalidParamsError"
17
+ },
18
+ {
19
+ "$ref": "#/definitions/InternalError"
20
+ },
21
+ {
22
+ "$ref": "#/definitions/TaskNotFoundError"
23
+ },
24
+ {
25
+ "$ref": "#/definitions/TaskNotCancelableError"
26
+ },
27
+ {
28
+ "$ref": "#/definitions/PushNotificationNotSupportedError"
29
+ },
30
+ {
31
+ "$ref": "#/definitions/UnsupportedOperationError"
32
+ },
33
+ {
34
+ "$ref": "#/definitions/ContentTypeNotSupportedError"
35
+ },
36
+ {
37
+ "$ref": "#/definitions/InvalidAgentResponseError"
38
+ },
39
+ {
40
+ "$ref": "#/definitions/AuthenticatedExtendedCardNotConfiguredError"
41
+ }
42
+ ],
43
+ "description": "A discriminated union of all standard JSON-RPC and A2A-specific error types."
44
+ },
45
+ "A2ARequest": {
46
+ "anyOf": [
47
+ {
48
+ "$ref": "#/definitions/SendMessageRequest"
49
+ },
50
+ {
51
+ "$ref": "#/definitions/SendStreamingMessageRequest"
52
+ },
53
+ {
54
+ "$ref": "#/definitions/GetTaskRequest"
55
+ },
56
+ {
57
+ "$ref": "#/definitions/CancelTaskRequest"
58
+ },
59
+ {
60
+ "$ref": "#/definitions/SetTaskPushNotificationConfigRequest"
61
+ },
62
+ {
63
+ "$ref": "#/definitions/GetTaskPushNotificationConfigRequest"
64
+ },
65
+ {
66
+ "$ref": "#/definitions/TaskResubscriptionRequest"
67
+ },
68
+ {
69
+ "$ref": "#/definitions/ListTaskPushNotificationConfigRequest"
70
+ },
71
+ {
72
+ "$ref": "#/definitions/DeleteTaskPushNotificationConfigRequest"
73
+ },
74
+ {
75
+ "$ref": "#/definitions/GetAuthenticatedExtendedCardRequest"
76
+ }
77
+ ],
78
+ "description": "A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification."
79
+ },
80
+ "APIKeySecurityScheme": {
81
+ "description": "Defines a security scheme using an API key.",
82
+ "properties": {
83
+ "description": {
84
+ "description": "An optional description for the security scheme.",
85
+ "type": "string"
86
+ },
87
+ "in": {
88
+ "description": "The location of the API key.",
89
+ "enum": [
90
+ "cookie",
91
+ "header",
92
+ "query"
93
+ ],
94
+ "type": "string"
95
+ },
96
+ "name": {
97
+ "description": "The name of the header, query, or cookie parameter to be used.",
98
+ "type": "string"
99
+ },
100
+ "type": {
101
+ "const": "apiKey",
102
+ "description": "The type of the security scheme. Must be 'apiKey'.",
103
+ "type": "string"
104
+ }
105
+ },
106
+ "required": [
107
+ "in",
108
+ "name",
109
+ "type"
110
+ ],
111
+ "type": "object"
112
+ },
113
+ "AgentCapabilities": {
114
+ "description": "Defines optional capabilities supported by an agent.",
115
+ "properties": {
116
+ "extensions": {
117
+ "description": "A list of protocol extensions supported by the agent.",
118
+ "items": {
119
+ "$ref": "#/definitions/AgentExtension"
120
+ },
121
+ "type": "array"
122
+ },
123
+ "pushNotifications": {
124
+ "description": "Indicates if the agent supports sending push notifications for asynchronous task updates.",
125
+ "type": "boolean"
126
+ },
127
+ "stateTransitionHistory": {
128
+ "description": "Indicates if the agent provides a history of state transitions for a task.",
129
+ "type": "boolean"
130
+ },
131
+ "streaming": {
132
+ "description": "Indicates if the agent supports Server-Sent Events (SSE) for streaming responses.",
133
+ "type": "boolean"
134
+ }
135
+ },
136
+ "type": "object"
137
+ },
138
+ "AgentCard": {
139
+ "description": "The AgentCard is a self-describing manifest for an agent. It provides essential\nmetadata including the agent's identity, capabilities, skills, supported\ncommunication methods, and security requirements.",
140
+ "properties": {
141
+ "additionalInterfaces": {
142
+ "description": "A list of additional supported interfaces (transport and URL combinations).\nThis allows agents to expose multiple transports, potentially at different URLs.\n\nBest practices:\n- SHOULD include all supported transports for completeness\n- SHOULD include an entry matching the main 'url' and 'preferredTransport'\n- MAY reuse URLs if multiple transports are available at the same endpoint\n- MUST accurately declare the transport available at each URL\n\nClients can select any interface from this list based on their transport capabilities\nand preferences. This enables transport negotiation and fallback scenarios.",
143
+ "items": {
144
+ "$ref": "#/definitions/AgentInterface"
145
+ },
146
+ "type": "array"
147
+ },
148
+ "capabilities": {
149
+ "$ref": "#/definitions/AgentCapabilities",
150
+ "description": "A declaration of optional capabilities supported by the agent."
151
+ },
152
+ "defaultInputModes": {
153
+ "description": "Default set of supported input MIME types for all skills, which can be\noverridden on a per-skill basis.",
154
+ "items": {
155
+ "type": "string"
156
+ },
157
+ "type": "array"
158
+ },
159
+ "defaultOutputModes": {
160
+ "description": "Default set of supported output MIME types for all skills, which can be\noverridden on a per-skill basis.",
161
+ "items": {
162
+ "type": "string"
163
+ },
164
+ "type": "array"
165
+ },
166
+ "description": {
167
+ "description": "A human-readable description of the agent, assisting users and other agents\nin understanding its purpose.",
168
+ "examples": [
169
+ "Agent that helps users with recipes and cooking."
170
+ ],
171
+ "type": "string"
172
+ },
173
+ "documentationUrl": {
174
+ "description": "An optional URL to the agent's documentation.",
175
+ "type": "string"
176
+ },
177
+ "iconUrl": {
178
+ "description": "An optional URL to an icon for the agent.",
179
+ "type": "string"
180
+ },
181
+ "name": {
182
+ "description": "A human-readable name for the agent.",
183
+ "examples": [
184
+ "Recipe Agent"
185
+ ],
186
+ "type": "string"
187
+ },
188
+ "preferredTransport": {
189
+ "default": "JSONRPC",
190
+ "description": "The transport protocol for the preferred endpoint (the main 'url' field).\nIf not specified, defaults to 'JSONRPC'.\n\nIMPORTANT: The transport specified here MUST be available at the main 'url'.\nThis creates a binding between the main URL and its supported transport protocol.\nClients should prefer this transport and URL combination when both are supported.",
191
+ "examples": [
192
+ "JSONRPC",
193
+ "GRPC",
194
+ "HTTP+JSON"
195
+ ],
196
+ "type": "string"
197
+ },
198
+ "protocolVersion": {
199
+ "default": "0.3.0",
200
+ "description": "The version of the A2A protocol this agent supports.",
201
+ "type": "string"
202
+ },
203
+ "provider": {
204
+ "$ref": "#/definitions/AgentProvider",
205
+ "description": "Information about the agent's service provider."
206
+ },
207
+ "security": {
208
+ "description": "A list of security requirement objects that apply to all agent interactions. Each object\nlists security schemes that can be used. Follows the OpenAPI 3.0 Security Requirement Object.\nThis list can be seen as an OR of ANDs. Each object in the list describes one possible\nset of security requirements that must be present on a request. This allows specifying,\nfor example, \"callers must either use OAuth OR an API Key AND mTLS.\"",
209
+ "examples": [
210
+ [
211
+ {
212
+ "oauth": [
213
+ "read"
214
+ ]
215
+ },
216
+ {
217
+ "api-key": [],
218
+ "mtls": []
219
+ }
220
+ ]
221
+ ],
222
+ "items": {
223
+ "additionalProperties": {
224
+ "items": {
225
+ "type": "string"
226
+ },
227
+ "type": "array"
228
+ },
229
+ "type": "object"
230
+ },
231
+ "type": "array"
232
+ },
233
+ "securitySchemes": {
234
+ "additionalProperties": {
235
+ "$ref": "#/definitions/SecurityScheme"
236
+ },
237
+ "description": "A declaration of the security schemes available to authorize requests. The key is the\nscheme name. Follows the OpenAPI 3.0 Security Scheme Object.",
238
+ "type": "object"
239
+ },
240
+ "signatures": {
241
+ "description": "JSON Web Signatures computed for this AgentCard.",
242
+ "items": {
243
+ "$ref": "#/definitions/AgentCardSignature"
244
+ },
245
+ "type": "array"
246
+ },
247
+ "skills": {
248
+ "description": "The set of skills, or distinct capabilities, that the agent can perform.",
249
+ "items": {
250
+ "$ref": "#/definitions/AgentSkill"
251
+ },
252
+ "type": "array"
253
+ },
254
+ "supportsAuthenticatedExtendedCard": {
255
+ "description": "If true, the agent can provide an extended agent card with additional details\nto authenticated users. Defaults to false.",
256
+ "type": "boolean"
257
+ },
258
+ "url": {
259
+ "description": "The preferred endpoint URL for interacting with the agent.\nThis URL MUST support the transport specified by 'preferredTransport'.",
260
+ "examples": [
261
+ "https://api.example.com/a2a/v1"
262
+ ],
263
+ "type": "string"
264
+ },
265
+ "version": {
266
+ "description": "The agent's own version number. The format is defined by the provider.",
267
+ "examples": [
268
+ "1.0.0"
269
+ ],
270
+ "type": "string"
271
+ }
272
+ },
273
+ "required": [
274
+ "capabilities",
275
+ "defaultInputModes",
276
+ "defaultOutputModes",
277
+ "description",
278
+ "name",
279
+ "protocolVersion",
280
+ "skills",
281
+ "url",
282
+ "version"
283
+ ],
284
+ "type": "object"
285
+ },
286
+ "AgentCardSignature": {
287
+ "description": "AgentCardSignature represents a JWS signature of an AgentCard.\nThis follows the JSON format of an RFC 7515 JSON Web Signature (JWS).",
288
+ "properties": {
289
+ "header": {
290
+ "additionalProperties": {},
291
+ "description": "The unprotected JWS header values.",
292
+ "type": "object"
293
+ },
294
+ "protected": {
295
+ "description": "The protected JWS header for the signature. This is a Base64url-encoded\nJSON object, as per RFC 7515.",
296
+ "type": "string"
297
+ },
298
+ "signature": {
299
+ "description": "The computed signature, Base64url-encoded.",
300
+ "type": "string"
301
+ }
302
+ },
303
+ "required": [
304
+ "protected",
305
+ "signature"
306
+ ],
307
+ "type": "object"
308
+ },
309
+ "AgentExtension": {
310
+ "description": "A declaration of a protocol extension supported by an Agent.",
311
+ "examples": [
312
+ {
313
+ "description": "Google OAuth 2.0 authentication",
314
+ "required": false,
315
+ "uri": "https://developers.google.com/identity/protocols/oauth2"
316
+ }
317
+ ],
318
+ "properties": {
319
+ "description": {
320
+ "description": "A human-readable description of how this agent uses the extension.",
321
+ "type": "string"
322
+ },
323
+ "params": {
324
+ "additionalProperties": {},
325
+ "description": "Optional, extension-specific configuration parameters.",
326
+ "type": "object"
327
+ },
328
+ "required": {
329
+ "description": "If true, the client must understand and comply with the extension's requirements\nto interact with the agent.",
330
+ "type": "boolean"
331
+ },
332
+ "uri": {
333
+ "description": "The unique URI identifying the extension.",
334
+ "type": "string"
335
+ }
336
+ },
337
+ "required": [
338
+ "uri"
339
+ ],
340
+ "type": "object"
341
+ },
342
+ "AgentInterface": {
343
+ "description": "Declares a combination of a target URL and a transport protocol for interacting with the agent.\nThis allows agents to expose the same functionality over multiple transport mechanisms.",
344
+ "properties": {
345
+ "transport": {
346
+ "description": "The transport protocol supported at this URL.",
347
+ "examples": [
348
+ "JSONRPC",
349
+ "GRPC",
350
+ "HTTP+JSON"
351
+ ],
352
+ "type": "string"
353
+ },
354
+ "url": {
355
+ "description": "The URL where this interface is available. Must be a valid absolute HTTPS URL in production.",
356
+ "examples": [
357
+ "https://api.example.com/a2a/v1",
358
+ "https://grpc.example.com/a2a",
359
+ "https://rest.example.com/v1"
360
+ ],
361
+ "type": "string"
362
+ }
363
+ },
364
+ "required": [
365
+ "transport",
366
+ "url"
367
+ ],
368
+ "type": "object"
369
+ },
370
+ "AgentProvider": {
371
+ "description": "Represents the service provider of an agent.",
372
+ "examples": [
373
+ {
374
+ "organization": "Google",
375
+ "url": "https://ai.google.dev"
376
+ }
377
+ ],
378
+ "properties": {
379
+ "organization": {
380
+ "description": "The name of the agent provider's organization.",
381
+ "type": "string"
382
+ },
383
+ "url": {
384
+ "description": "A URL for the agent provider's website or relevant documentation.",
385
+ "type": "string"
386
+ }
387
+ },
388
+ "required": [
389
+ "organization",
390
+ "url"
391
+ ],
392
+ "type": "object"
393
+ },
394
+ "AgentSkill": {
395
+ "description": "Represents a distinct capability or function that an agent can perform.",
396
+ "properties": {
397
+ "description": {
398
+ "description": "A detailed description of the skill, intended to help clients or users\nunderstand its purpose and functionality.",
399
+ "type": "string"
400
+ },
401
+ "examples": {
402
+ "description": "Example prompts or scenarios that this skill can handle. Provides a hint to\nthe client on how to use the skill.",
403
+ "examples": [
404
+ [
405
+ "I need a recipe for bread"
406
+ ]
407
+ ],
408
+ "items": {
409
+ "type": "string"
410
+ },
411
+ "type": "array"
412
+ },
413
+ "id": {
414
+ "description": "A unique identifier for the agent's skill.",
415
+ "type": "string"
416
+ },
417
+ "inputModes": {
418
+ "description": "The set of supported input MIME types for this skill, overriding the agent's defaults.",
419
+ "items": {
420
+ "type": "string"
421
+ },
422
+ "type": "array"
423
+ },
424
+ "name": {
425
+ "description": "A human-readable name for the skill.",
426
+ "type": "string"
427
+ },
428
+ "outputModes": {
429
+ "description": "The set of supported output MIME types for this skill, overriding the agent's defaults.",
430
+ "items": {
431
+ "type": "string"
432
+ },
433
+ "type": "array"
434
+ },
435
+ "security": {
436
+ "description": "Security schemes necessary for the agent to leverage this skill.\nAs in the overall AgentCard.security, this list represents a logical OR of security\nrequirement objects. Each object is a set of security schemes that must be used together\n(a logical AND).",
437
+ "examples": [
438
+ [
439
+ {
440
+ "google": [
441
+ "oidc"
442
+ ]
443
+ }
444
+ ]
445
+ ],
446
+ "items": {
447
+ "additionalProperties": {
448
+ "items": {
449
+ "type": "string"
450
+ },
451
+ "type": "array"
452
+ },
453
+ "type": "object"
454
+ },
455
+ "type": "array"
456
+ },
457
+ "tags": {
458
+ "description": "A set of keywords describing the skill's capabilities.",
459
+ "examples": [
460
+ [
461
+ "cooking",
462
+ "customer support",
463
+ "billing"
464
+ ]
465
+ ],
466
+ "items": {
467
+ "type": "string"
468
+ },
469
+ "type": "array"
470
+ }
471
+ },
472
+ "required": [
473
+ "description",
474
+ "id",
475
+ "name",
476
+ "tags"
477
+ ],
478
+ "type": "object"
479
+ },
480
+ "Artifact": {
481
+ "description": "Represents a file, data structure, or other resource generated by an agent during a task.",
482
+ "properties": {
483
+ "artifactId": {
484
+ "description": "A unique identifier (e.g. UUID) for the artifact within the scope of the task.",
485
+ "type": "string"
486
+ },
487
+ "description": {
488
+ "description": "An optional, human-readable description of the artifact.",
489
+ "type": "string"
490
+ },
491
+ "extensions": {
492
+ "description": "The URIs of extensions that are relevant to this artifact.",
493
+ "items": {
494
+ "type": "string"
495
+ },
496
+ "type": "array"
497
+ },
498
+ "metadata": {
499
+ "additionalProperties": {},
500
+ "description": "Optional metadata for extensions. The key is an extension-specific identifier.",
501
+ "type": "object"
502
+ },
503
+ "name": {
504
+ "description": "An optional, human-readable name for the artifact.",
505
+ "type": "string"
506
+ },
507
+ "parts": {
508
+ "description": "An array of content parts that make up the artifact.",
509
+ "items": {
510
+ "$ref": "#/definitions/Part"
511
+ },
512
+ "type": "array"
513
+ }
514
+ },
515
+ "required": [
516
+ "artifactId",
517
+ "parts"
518
+ ],
519
+ "type": "object"
520
+ },
521
+ "AuthenticatedExtendedCardNotConfiguredError": {
522
+ "description": "An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured",
523
+ "properties": {
524
+ "code": {
525
+ "const": -32007,
526
+ "description": "The error code for when an authenticated extended card is not configured.",
527
+ "type": "integer"
528
+ },
529
+ "data": {
530
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
531
+ },
532
+ "message": {
533
+ "default": "Authenticated Extended Card is not configured",
534
+ "description": "The error message.",
535
+ "type": "string"
536
+ }
537
+ },
538
+ "required": [
539
+ "code",
540
+ "message"
541
+ ],
542
+ "type": "object"
543
+ },
544
+ "AuthorizationCodeOAuthFlow": {
545
+ "description": "Defines configuration details for the OAuth 2.0 Authorization Code flow.",
546
+ "properties": {
547
+ "authorizationUrl": {
548
+ "description": "The authorization URL to be used for this flow.\nThis MUST be a URL and use TLS.",
549
+ "type": "string"
550
+ },
551
+ "refreshUrl": {
552
+ "description": "The URL to be used for obtaining refresh tokens.\nThis MUST be a URL and use TLS.",
553
+ "type": "string"
554
+ },
555
+ "scopes": {
556
+ "additionalProperties": {
557
+ "type": "string"
558
+ },
559
+ "description": "The available scopes for the OAuth2 security scheme. A map between the scope\nname and a short description for it.",
560
+ "type": "object"
561
+ },
562
+ "tokenUrl": {
563
+ "description": "The token URL to be used for this flow.\nThis MUST be a URL and use TLS.",
564
+ "type": "string"
565
+ }
566
+ },
567
+ "required": [
568
+ "authorizationUrl",
569
+ "scopes",
570
+ "tokenUrl"
571
+ ],
572
+ "type": "object"
573
+ },
574
+ "CancelTaskRequest": {
575
+ "description": "Represents a JSON-RPC request for the `tasks/cancel` method.",
576
+ "properties": {
577
+ "id": {
578
+ "description": "The identifier for this request.",
579
+ "type": [
580
+ "string",
581
+ "integer"
582
+ ]
583
+ },
584
+ "jsonrpc": {
585
+ "const": "2.0",
586
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
587
+ "type": "string"
588
+ },
589
+ "method": {
590
+ "const": "tasks/cancel",
591
+ "description": "The method name. Must be 'tasks/cancel'.",
592
+ "type": "string"
593
+ },
594
+ "params": {
595
+ "$ref": "#/definitions/TaskIdParams",
596
+ "description": "The parameters identifying the task to cancel."
597
+ }
598
+ },
599
+ "required": [
600
+ "id",
601
+ "jsonrpc",
602
+ "method",
603
+ "params"
604
+ ],
605
+ "type": "object"
606
+ },
607
+ "CancelTaskResponse": {
608
+ "anyOf": [
609
+ {
610
+ "$ref": "#/definitions/JSONRPCErrorResponse"
611
+ },
612
+ {
613
+ "$ref": "#/definitions/CancelTaskSuccessResponse"
614
+ }
615
+ ],
616
+ "description": "Represents a JSON-RPC response for the `tasks/cancel` method."
617
+ },
618
+ "CancelTaskSuccessResponse": {
619
+ "description": "Represents a successful JSON-RPC response for the `tasks/cancel` method.",
620
+ "properties": {
621
+ "id": {
622
+ "description": "The identifier established by the client.",
623
+ "type": [
624
+ "string",
625
+ "integer",
626
+ "null"
627
+ ]
628
+ },
629
+ "jsonrpc": {
630
+ "const": "2.0",
631
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
632
+ "type": "string"
633
+ },
634
+ "result": {
635
+ "$ref": "#/definitions/Task",
636
+ "description": "The result, containing the final state of the canceled Task object."
637
+ }
638
+ },
639
+ "required": [
640
+ "id",
641
+ "jsonrpc",
642
+ "result"
643
+ ],
644
+ "type": "object"
645
+ },
646
+ "ClientCredentialsOAuthFlow": {
647
+ "description": "Defines configuration details for the OAuth 2.0 Client Credentials flow.",
648
+ "properties": {
649
+ "refreshUrl": {
650
+ "description": "The URL to be used for obtaining refresh tokens. This MUST be a URL.",
651
+ "type": "string"
652
+ },
653
+ "scopes": {
654
+ "additionalProperties": {
655
+ "type": "string"
656
+ },
657
+ "description": "The available scopes for the OAuth2 security scheme. A map between the scope\nname and a short description for it.",
658
+ "type": "object"
659
+ },
660
+ "tokenUrl": {
661
+ "description": "The token URL to be used for this flow. This MUST be a URL.",
662
+ "type": "string"
663
+ }
664
+ },
665
+ "required": [
666
+ "scopes",
667
+ "tokenUrl"
668
+ ],
669
+ "type": "object"
670
+ },
671
+ "ContentTypeNotSupportedError": {
672
+ "description": "An A2A-specific error indicating an incompatibility between the requested\ncontent types and the agent's capabilities.",
673
+ "properties": {
674
+ "code": {
675
+ "const": -32005,
676
+ "description": "The error code for an unsupported content type.",
677
+ "type": "integer"
678
+ },
679
+ "data": {
680
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
681
+ },
682
+ "message": {
683
+ "default": "Incompatible content types",
684
+ "description": "The error message.",
685
+ "type": "string"
686
+ }
687
+ },
688
+ "required": [
689
+ "code",
690
+ "message"
691
+ ],
692
+ "type": "object"
693
+ },
694
+ "DataPart": {
695
+ "description": "Represents a structured data segment (e.g., JSON) within a message or artifact.",
696
+ "properties": {
697
+ "data": {
698
+ "additionalProperties": {},
699
+ "description": "The structured data content.",
700
+ "type": "object"
701
+ },
702
+ "kind": {
703
+ "const": "data",
704
+ "description": "The type of this part, used as a discriminator. Always 'data'.",
705
+ "type": "string"
706
+ },
707
+ "metadata": {
708
+ "additionalProperties": {},
709
+ "description": "Optional metadata associated with this part.",
710
+ "type": "object"
711
+ }
712
+ },
713
+ "required": [
714
+ "data",
715
+ "kind"
716
+ ],
717
+ "type": "object"
718
+ },
719
+ "DeleteTaskPushNotificationConfigParams": {
720
+ "description": "Defines parameters for deleting a specific push notification configuration for a task.",
721
+ "properties": {
722
+ "id": {
723
+ "description": "The unique identifier (e.g. UUID) of the task.",
724
+ "type": "string"
725
+ },
726
+ "metadata": {
727
+ "additionalProperties": {},
728
+ "description": "Optional metadata associated with the request.",
729
+ "type": "object"
730
+ },
731
+ "pushNotificationConfigId": {
732
+ "description": "The ID of the push notification configuration to delete.",
733
+ "type": "string"
734
+ }
735
+ },
736
+ "required": [
737
+ "id",
738
+ "pushNotificationConfigId"
739
+ ],
740
+ "type": "object"
741
+ },
742
+ "DeleteTaskPushNotificationConfigRequest": {
743
+ "description": "Represents a JSON-RPC request for the `tasks/pushNotificationConfig/delete` method.",
744
+ "properties": {
745
+ "id": {
746
+ "description": "The identifier for this request.",
747
+ "type": [
748
+ "string",
749
+ "integer"
750
+ ]
751
+ },
752
+ "jsonrpc": {
753
+ "const": "2.0",
754
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
755
+ "type": "string"
756
+ },
757
+ "method": {
758
+ "const": "tasks/pushNotificationConfig/delete",
759
+ "description": "The method name. Must be 'tasks/pushNotificationConfig/delete'.",
760
+ "type": "string"
761
+ },
762
+ "params": {
763
+ "$ref": "#/definitions/DeleteTaskPushNotificationConfigParams",
764
+ "description": "The parameters identifying the push notification configuration to delete."
765
+ }
766
+ },
767
+ "required": [
768
+ "id",
769
+ "jsonrpc",
770
+ "method",
771
+ "params"
772
+ ],
773
+ "type": "object"
774
+ },
775
+ "DeleteTaskPushNotificationConfigResponse": {
776
+ "anyOf": [
777
+ {
778
+ "$ref": "#/definitions/JSONRPCErrorResponse"
779
+ },
780
+ {
781
+ "$ref": "#/definitions/DeleteTaskPushNotificationConfigSuccessResponse"
782
+ }
783
+ ],
784
+ "description": "Represents a JSON-RPC response for the `tasks/pushNotificationConfig/delete` method."
785
+ },
786
+ "DeleteTaskPushNotificationConfigSuccessResponse": {
787
+ "description": "Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/delete` method.",
788
+ "properties": {
789
+ "id": {
790
+ "description": "The identifier established by the client.",
791
+ "type": [
792
+ "string",
793
+ "integer",
794
+ "null"
795
+ ]
796
+ },
797
+ "jsonrpc": {
798
+ "const": "2.0",
799
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
800
+ "type": "string"
801
+ },
802
+ "result": {
803
+ "description": "The result is null on successful deletion.",
804
+ "type": "null"
805
+ }
806
+ },
807
+ "required": [
808
+ "id",
809
+ "jsonrpc",
810
+ "result"
811
+ ],
812
+ "type": "object"
813
+ },
814
+ "FileBase": {
815
+ "description": "Defines base properties for a file.",
816
+ "properties": {
817
+ "mimeType": {
818
+ "description": "The MIME type of the file (e.g., \"application/pdf\").",
819
+ "type": "string"
820
+ },
821
+ "name": {
822
+ "description": "An optional name for the file (e.g., \"document.pdf\").",
823
+ "type": "string"
824
+ }
825
+ },
826
+ "type": "object"
827
+ },
828
+ "FilePart": {
829
+ "description": "Represents a file segment within a message or artifact. The file content can be\nprovided either directly as bytes or as a URI.",
830
+ "properties": {
831
+ "file": {
832
+ "anyOf": [
833
+ {
834
+ "$ref": "#/definitions/FileWithBytes"
835
+ },
836
+ {
837
+ "$ref": "#/definitions/FileWithUri"
838
+ }
839
+ ],
840
+ "description": "The file content, represented as either a URI or as base64-encoded bytes."
841
+ },
842
+ "kind": {
843
+ "const": "file",
844
+ "description": "The type of this part, used as a discriminator. Always 'file'.",
845
+ "type": "string"
846
+ },
847
+ "metadata": {
848
+ "additionalProperties": {},
849
+ "description": "Optional metadata associated with this part.",
850
+ "type": "object"
851
+ }
852
+ },
853
+ "required": [
854
+ "file",
855
+ "kind"
856
+ ],
857
+ "type": "object"
858
+ },
859
+ "FileWithBytes": {
860
+ "description": "Represents a file with its content provided directly as a base64-encoded string.",
861
+ "properties": {
862
+ "bytes": {
863
+ "description": "The base64-encoded content of the file.",
864
+ "type": "string"
865
+ },
866
+ "mimeType": {
867
+ "description": "The MIME type of the file (e.g., \"application/pdf\").",
868
+ "type": "string"
869
+ },
870
+ "name": {
871
+ "description": "An optional name for the file (e.g., \"document.pdf\").",
872
+ "type": "string"
873
+ }
874
+ },
875
+ "required": [
876
+ "bytes"
877
+ ],
878
+ "type": "object"
879
+ },
880
+ "FileWithUri": {
881
+ "description": "Represents a file with its content located at a specific URI.",
882
+ "properties": {
883
+ "mimeType": {
884
+ "description": "The MIME type of the file (e.g., \"application/pdf\").",
885
+ "type": "string"
886
+ },
887
+ "name": {
888
+ "description": "An optional name for the file (e.g., \"document.pdf\").",
889
+ "type": "string"
890
+ },
891
+ "uri": {
892
+ "description": "A URL pointing to the file's content.",
893
+ "type": "string"
894
+ }
895
+ },
896
+ "required": [
897
+ "uri"
898
+ ],
899
+ "type": "object"
900
+ },
901
+ "GetAuthenticatedExtendedCardRequest": {
902
+ "description": "Represents a JSON-RPC request for the `agent/getAuthenticatedExtendedCard` method.",
903
+ "properties": {
904
+ "id": {
905
+ "description": "The identifier for this request.",
906
+ "type": [
907
+ "string",
908
+ "integer"
909
+ ]
910
+ },
911
+ "jsonrpc": {
912
+ "const": "2.0",
913
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
914
+ "type": "string"
915
+ },
916
+ "method": {
917
+ "const": "agent/getAuthenticatedExtendedCard",
918
+ "description": "The method name. Must be 'agent/getAuthenticatedExtendedCard'.",
919
+ "type": "string"
920
+ }
921
+ },
922
+ "required": [
923
+ "id",
924
+ "jsonrpc",
925
+ "method"
926
+ ],
927
+ "type": "object"
928
+ },
929
+ "GetAuthenticatedExtendedCardResponse": {
930
+ "anyOf": [
931
+ {
932
+ "$ref": "#/definitions/JSONRPCErrorResponse"
933
+ },
934
+ {
935
+ "$ref": "#/definitions/GetAuthenticatedExtendedCardSuccessResponse"
936
+ }
937
+ ],
938
+ "description": "Represents a JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method."
939
+ },
940
+ "GetAuthenticatedExtendedCardSuccessResponse": {
941
+ "description": "Represents a successful JSON-RPC response for the `agent/getAuthenticatedExtendedCard` method.",
942
+ "properties": {
943
+ "id": {
944
+ "description": "The identifier established by the client.",
945
+ "type": [
946
+ "string",
947
+ "integer",
948
+ "null"
949
+ ]
950
+ },
951
+ "jsonrpc": {
952
+ "const": "2.0",
953
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
954
+ "type": "string"
955
+ },
956
+ "result": {
957
+ "$ref": "#/definitions/AgentCard",
958
+ "description": "The result is an Agent Card object."
959
+ }
960
+ },
961
+ "required": [
962
+ "id",
963
+ "jsonrpc",
964
+ "result"
965
+ ],
966
+ "type": "object"
967
+ },
968
+ "GetTaskPushNotificationConfigParams": {
969
+ "description": "Defines parameters for fetching a specific push notification configuration for a task.",
970
+ "properties": {
971
+ "id": {
972
+ "description": "The unique identifier (e.g. UUID) of the task.",
973
+ "type": "string"
974
+ },
975
+ "metadata": {
976
+ "additionalProperties": {},
977
+ "description": "Optional metadata associated with the request.",
978
+ "type": "object"
979
+ },
980
+ "pushNotificationConfigId": {
981
+ "description": "The ID of the push notification configuration to retrieve.",
982
+ "type": "string"
983
+ }
984
+ },
985
+ "required": [
986
+ "id"
987
+ ],
988
+ "type": "object"
989
+ },
990
+ "GetTaskPushNotificationConfigRequest": {
991
+ "description": "Represents a JSON-RPC request for the `tasks/pushNotificationConfig/get` method.",
992
+ "properties": {
993
+ "id": {
994
+ "description": "The identifier for this request.",
995
+ "type": [
996
+ "string",
997
+ "integer"
998
+ ]
999
+ },
1000
+ "jsonrpc": {
1001
+ "const": "2.0",
1002
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1003
+ "type": "string"
1004
+ },
1005
+ "method": {
1006
+ "const": "tasks/pushNotificationConfig/get",
1007
+ "description": "The method name. Must be 'tasks/pushNotificationConfig/get'.",
1008
+ "type": "string"
1009
+ },
1010
+ "params": {
1011
+ "anyOf": [
1012
+ {
1013
+ "$ref": "#/definitions/TaskIdParams"
1014
+ },
1015
+ {
1016
+ "$ref": "#/definitions/GetTaskPushNotificationConfigParams"
1017
+ }
1018
+ ],
1019
+ "description": "The parameters for getting a push notification configuration."
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "id",
1024
+ "jsonrpc",
1025
+ "method",
1026
+ "params"
1027
+ ],
1028
+ "type": "object"
1029
+ },
1030
+ "GetTaskPushNotificationConfigResponse": {
1031
+ "anyOf": [
1032
+ {
1033
+ "$ref": "#/definitions/JSONRPCErrorResponse"
1034
+ },
1035
+ {
1036
+ "$ref": "#/definitions/GetTaskPushNotificationConfigSuccessResponse"
1037
+ }
1038
+ ],
1039
+ "description": "Represents a JSON-RPC response for the `tasks/pushNotificationConfig/get` method."
1040
+ },
1041
+ "GetTaskPushNotificationConfigSuccessResponse": {
1042
+ "description": "Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/get` method.",
1043
+ "properties": {
1044
+ "id": {
1045
+ "description": "The identifier established by the client.",
1046
+ "type": [
1047
+ "string",
1048
+ "integer",
1049
+ "null"
1050
+ ]
1051
+ },
1052
+ "jsonrpc": {
1053
+ "const": "2.0",
1054
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1055
+ "type": "string"
1056
+ },
1057
+ "result": {
1058
+ "$ref": "#/definitions/TaskPushNotificationConfig",
1059
+ "description": "The result, containing the requested push notification configuration."
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "id",
1064
+ "jsonrpc",
1065
+ "result"
1066
+ ],
1067
+ "type": "object"
1068
+ },
1069
+ "GetTaskRequest": {
1070
+ "description": "Represents a JSON-RPC request for the `tasks/get` method.",
1071
+ "properties": {
1072
+ "id": {
1073
+ "description": "The identifier for this request.",
1074
+ "type": [
1075
+ "string",
1076
+ "integer"
1077
+ ]
1078
+ },
1079
+ "jsonrpc": {
1080
+ "const": "2.0",
1081
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1082
+ "type": "string"
1083
+ },
1084
+ "method": {
1085
+ "const": "tasks/get",
1086
+ "description": "The method name. Must be 'tasks/get'.",
1087
+ "type": "string"
1088
+ },
1089
+ "params": {
1090
+ "$ref": "#/definitions/TaskQueryParams",
1091
+ "description": "The parameters for querying a task."
1092
+ }
1093
+ },
1094
+ "required": [
1095
+ "id",
1096
+ "jsonrpc",
1097
+ "method",
1098
+ "params"
1099
+ ],
1100
+ "type": "object"
1101
+ },
1102
+ "GetTaskResponse": {
1103
+ "anyOf": [
1104
+ {
1105
+ "$ref": "#/definitions/JSONRPCErrorResponse"
1106
+ },
1107
+ {
1108
+ "$ref": "#/definitions/GetTaskSuccessResponse"
1109
+ }
1110
+ ],
1111
+ "description": "Represents a JSON-RPC response for the `tasks/get` method."
1112
+ },
1113
+ "GetTaskSuccessResponse": {
1114
+ "description": "Represents a successful JSON-RPC response for the `tasks/get` method.",
1115
+ "properties": {
1116
+ "id": {
1117
+ "description": "The identifier established by the client.",
1118
+ "type": [
1119
+ "string",
1120
+ "integer",
1121
+ "null"
1122
+ ]
1123
+ },
1124
+ "jsonrpc": {
1125
+ "const": "2.0",
1126
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1127
+ "type": "string"
1128
+ },
1129
+ "result": {
1130
+ "$ref": "#/definitions/Task",
1131
+ "description": "The result, containing the requested Task object."
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "id",
1136
+ "jsonrpc",
1137
+ "result"
1138
+ ],
1139
+ "type": "object"
1140
+ },
1141
+ "HTTPAuthSecurityScheme": {
1142
+ "description": "Defines a security scheme using HTTP authentication.",
1143
+ "properties": {
1144
+ "bearerFormat": {
1145
+ "description": "A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\").\nThis is primarily for documentation purposes.",
1146
+ "type": "string"
1147
+ },
1148
+ "description": {
1149
+ "description": "An optional description for the security scheme.",
1150
+ "type": "string"
1151
+ },
1152
+ "scheme": {
1153
+ "description": "The name of the HTTP Authentication scheme to be used in the Authorization header,\nas defined in RFC7235 (e.g., \"Bearer\").\nThis value should be registered in the IANA Authentication Scheme registry.",
1154
+ "type": "string"
1155
+ },
1156
+ "type": {
1157
+ "const": "http",
1158
+ "description": "The type of the security scheme. Must be 'http'.",
1159
+ "type": "string"
1160
+ }
1161
+ },
1162
+ "required": [
1163
+ "scheme",
1164
+ "type"
1165
+ ],
1166
+ "type": "object"
1167
+ },
1168
+ "ImplicitOAuthFlow": {
1169
+ "description": "Defines configuration details for the OAuth 2.0 Implicit flow.",
1170
+ "properties": {
1171
+ "authorizationUrl": {
1172
+ "description": "The authorization URL to be used for this flow. This MUST be a URL.",
1173
+ "type": "string"
1174
+ },
1175
+ "refreshUrl": {
1176
+ "description": "The URL to be used for obtaining refresh tokens. This MUST be a URL.",
1177
+ "type": "string"
1178
+ },
1179
+ "scopes": {
1180
+ "additionalProperties": {
1181
+ "type": "string"
1182
+ },
1183
+ "description": "The available scopes for the OAuth2 security scheme. A map between the scope\nname and a short description for it.",
1184
+ "type": "object"
1185
+ }
1186
+ },
1187
+ "required": [
1188
+ "authorizationUrl",
1189
+ "scopes"
1190
+ ],
1191
+ "type": "object"
1192
+ },
1193
+ "InternalError": {
1194
+ "description": "An error indicating an internal error on the server.",
1195
+ "properties": {
1196
+ "code": {
1197
+ "const": -32603,
1198
+ "description": "The error code for an internal server error.",
1199
+ "type": "integer"
1200
+ },
1201
+ "data": {
1202
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1203
+ },
1204
+ "message": {
1205
+ "default": "Internal error",
1206
+ "description": "The error message.",
1207
+ "type": "string"
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "code",
1212
+ "message"
1213
+ ],
1214
+ "type": "object"
1215
+ },
1216
+ "InvalidAgentResponseError": {
1217
+ "description": "An A2A-specific error indicating that the agent returned a response that\ndoes not conform to the specification for the current method.",
1218
+ "properties": {
1219
+ "code": {
1220
+ "const": -32006,
1221
+ "description": "The error code for an invalid agent response.",
1222
+ "type": "integer"
1223
+ },
1224
+ "data": {
1225
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1226
+ },
1227
+ "message": {
1228
+ "default": "Invalid agent response",
1229
+ "description": "The error message.",
1230
+ "type": "string"
1231
+ }
1232
+ },
1233
+ "required": [
1234
+ "code",
1235
+ "message"
1236
+ ],
1237
+ "type": "object"
1238
+ },
1239
+ "InvalidParamsError": {
1240
+ "description": "An error indicating that the method parameters are invalid.",
1241
+ "properties": {
1242
+ "code": {
1243
+ "const": -32602,
1244
+ "description": "The error code for an invalid parameters error.",
1245
+ "type": "integer"
1246
+ },
1247
+ "data": {
1248
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1249
+ },
1250
+ "message": {
1251
+ "default": "Invalid parameters",
1252
+ "description": "The error message.",
1253
+ "type": "string"
1254
+ }
1255
+ },
1256
+ "required": [
1257
+ "code",
1258
+ "message"
1259
+ ],
1260
+ "type": "object"
1261
+ },
1262
+ "InvalidRequestError": {
1263
+ "description": "An error indicating that the JSON sent is not a valid Request object.",
1264
+ "properties": {
1265
+ "code": {
1266
+ "const": -32600,
1267
+ "description": "The error code for an invalid request.",
1268
+ "type": "integer"
1269
+ },
1270
+ "data": {
1271
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1272
+ },
1273
+ "message": {
1274
+ "default": "Request payload validation error",
1275
+ "description": "The error message.",
1276
+ "type": "string"
1277
+ }
1278
+ },
1279
+ "required": [
1280
+ "code",
1281
+ "message"
1282
+ ],
1283
+ "type": "object"
1284
+ },
1285
+ "JSONParseError": {
1286
+ "description": "An error indicating that the server received invalid JSON.",
1287
+ "properties": {
1288
+ "code": {
1289
+ "const": -32700,
1290
+ "description": "The error code for a JSON parse error.",
1291
+ "type": "integer"
1292
+ },
1293
+ "data": {
1294
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1295
+ },
1296
+ "message": {
1297
+ "default": "Invalid JSON payload",
1298
+ "description": "The error message.",
1299
+ "type": "string"
1300
+ }
1301
+ },
1302
+ "required": [
1303
+ "code",
1304
+ "message"
1305
+ ],
1306
+ "type": "object"
1307
+ },
1308
+ "JSONRPCError": {
1309
+ "description": "Represents a JSON-RPC 2.0 Error object, included in an error response.",
1310
+ "properties": {
1311
+ "code": {
1312
+ "description": "A number that indicates the error type that occurred.",
1313
+ "type": "integer"
1314
+ },
1315
+ "data": {
1316
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1317
+ },
1318
+ "message": {
1319
+ "description": "A string providing a short description of the error.",
1320
+ "type": "string"
1321
+ }
1322
+ },
1323
+ "required": [
1324
+ "code",
1325
+ "message"
1326
+ ],
1327
+ "type": "object"
1328
+ },
1329
+ "JSONRPCErrorResponse": {
1330
+ "description": "Represents a JSON-RPC 2.0 Error Response object.",
1331
+ "properties": {
1332
+ "error": {
1333
+ "anyOf": [
1334
+ {
1335
+ "$ref": "#/definitions/JSONRPCError"
1336
+ },
1337
+ {
1338
+ "$ref": "#/definitions/JSONParseError"
1339
+ },
1340
+ {
1341
+ "$ref": "#/definitions/InvalidRequestError"
1342
+ },
1343
+ {
1344
+ "$ref": "#/definitions/MethodNotFoundError"
1345
+ },
1346
+ {
1347
+ "$ref": "#/definitions/InvalidParamsError"
1348
+ },
1349
+ {
1350
+ "$ref": "#/definitions/InternalError"
1351
+ },
1352
+ {
1353
+ "$ref": "#/definitions/TaskNotFoundError"
1354
+ },
1355
+ {
1356
+ "$ref": "#/definitions/TaskNotCancelableError"
1357
+ },
1358
+ {
1359
+ "$ref": "#/definitions/PushNotificationNotSupportedError"
1360
+ },
1361
+ {
1362
+ "$ref": "#/definitions/UnsupportedOperationError"
1363
+ },
1364
+ {
1365
+ "$ref": "#/definitions/ContentTypeNotSupportedError"
1366
+ },
1367
+ {
1368
+ "$ref": "#/definitions/InvalidAgentResponseError"
1369
+ },
1370
+ {
1371
+ "$ref": "#/definitions/AuthenticatedExtendedCardNotConfiguredError"
1372
+ }
1373
+ ],
1374
+ "description": "An object describing the error that occurred."
1375
+ },
1376
+ "id": {
1377
+ "description": "The identifier established by the client.",
1378
+ "type": [
1379
+ "string",
1380
+ "integer",
1381
+ "null"
1382
+ ]
1383
+ },
1384
+ "jsonrpc": {
1385
+ "const": "2.0",
1386
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1387
+ "type": "string"
1388
+ }
1389
+ },
1390
+ "required": [
1391
+ "error",
1392
+ "id",
1393
+ "jsonrpc"
1394
+ ],
1395
+ "type": "object"
1396
+ },
1397
+ "JSONRPCMessage": {
1398
+ "description": "Defines the base structure for any JSON-RPC 2.0 request, response, or notification.",
1399
+ "properties": {
1400
+ "id": {
1401
+ "description": "A unique identifier established by the client. It must be a String, a Number, or null.\nThe server must reply with the same value in the response. This property is omitted for notifications.",
1402
+ "type": [
1403
+ "string",
1404
+ "integer",
1405
+ "null"
1406
+ ]
1407
+ },
1408
+ "jsonrpc": {
1409
+ "const": "2.0",
1410
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1411
+ "type": "string"
1412
+ }
1413
+ },
1414
+ "required": [
1415
+ "jsonrpc"
1416
+ ],
1417
+ "type": "object"
1418
+ },
1419
+ "JSONRPCRequest": {
1420
+ "description": "Represents a JSON-RPC 2.0 Request object.",
1421
+ "properties": {
1422
+ "id": {
1423
+ "description": "A unique identifier established by the client. It must be a String, a Number, or null.\nThe server must reply with the same value in the response. This property is omitted for notifications.",
1424
+ "type": [
1425
+ "string",
1426
+ "integer",
1427
+ "null"
1428
+ ]
1429
+ },
1430
+ "jsonrpc": {
1431
+ "const": "2.0",
1432
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1433
+ "type": "string"
1434
+ },
1435
+ "method": {
1436
+ "description": "A string containing the name of the method to be invoked.",
1437
+ "type": "string"
1438
+ },
1439
+ "params": {
1440
+ "additionalProperties": {},
1441
+ "description": "A structured value holding the parameter values to be used during the method invocation.",
1442
+ "type": "object"
1443
+ }
1444
+ },
1445
+ "required": [
1446
+ "jsonrpc",
1447
+ "method"
1448
+ ],
1449
+ "type": "object"
1450
+ },
1451
+ "JSONRPCResponse": {
1452
+ "anyOf": [
1453
+ {
1454
+ "$ref": "#/definitions/JSONRPCErrorResponse"
1455
+ },
1456
+ {
1457
+ "$ref": "#/definitions/SendMessageSuccessResponse"
1458
+ },
1459
+ {
1460
+ "$ref": "#/definitions/SendStreamingMessageSuccessResponse"
1461
+ },
1462
+ {
1463
+ "$ref": "#/definitions/GetTaskSuccessResponse"
1464
+ },
1465
+ {
1466
+ "$ref": "#/definitions/CancelTaskSuccessResponse"
1467
+ },
1468
+ {
1469
+ "$ref": "#/definitions/SetTaskPushNotificationConfigSuccessResponse"
1470
+ },
1471
+ {
1472
+ "$ref": "#/definitions/GetTaskPushNotificationConfigSuccessResponse"
1473
+ },
1474
+ {
1475
+ "$ref": "#/definitions/ListTaskPushNotificationConfigSuccessResponse"
1476
+ },
1477
+ {
1478
+ "$ref": "#/definitions/DeleteTaskPushNotificationConfigSuccessResponse"
1479
+ },
1480
+ {
1481
+ "$ref": "#/definitions/GetAuthenticatedExtendedCardSuccessResponse"
1482
+ }
1483
+ ],
1484
+ "description": "A discriminated union representing all possible JSON-RPC 2.0 responses\nfor the A2A specification methods."
1485
+ },
1486
+ "JSONRPCSuccessResponse": {
1487
+ "description": "Represents a successful JSON-RPC 2.0 Response object.",
1488
+ "properties": {
1489
+ "id": {
1490
+ "description": "The identifier established by the client.",
1491
+ "type": [
1492
+ "string",
1493
+ "integer",
1494
+ "null"
1495
+ ]
1496
+ },
1497
+ "jsonrpc": {
1498
+ "const": "2.0",
1499
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1500
+ "type": "string"
1501
+ },
1502
+ "result": {
1503
+ "description": "The value of this member is determined by the method invoked on the Server."
1504
+ }
1505
+ },
1506
+ "required": [
1507
+ "id",
1508
+ "jsonrpc",
1509
+ "result"
1510
+ ],
1511
+ "type": "object"
1512
+ },
1513
+ "ListTaskPushNotificationConfigParams": {
1514
+ "description": "Defines parameters for listing all push notification configurations associated with a task.",
1515
+ "properties": {
1516
+ "id": {
1517
+ "description": "The unique identifier (e.g. UUID) of the task.",
1518
+ "type": "string"
1519
+ },
1520
+ "metadata": {
1521
+ "additionalProperties": {},
1522
+ "description": "Optional metadata associated with the request.",
1523
+ "type": "object"
1524
+ }
1525
+ },
1526
+ "required": [
1527
+ "id"
1528
+ ],
1529
+ "type": "object"
1530
+ },
1531
+ "ListTaskPushNotificationConfigRequest": {
1532
+ "description": "Represents a JSON-RPC request for the `tasks/pushNotificationConfig/list` method.",
1533
+ "properties": {
1534
+ "id": {
1535
+ "description": "The identifier for this request.",
1536
+ "type": [
1537
+ "string",
1538
+ "integer"
1539
+ ]
1540
+ },
1541
+ "jsonrpc": {
1542
+ "const": "2.0",
1543
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1544
+ "type": "string"
1545
+ },
1546
+ "method": {
1547
+ "const": "tasks/pushNotificationConfig/list",
1548
+ "description": "The method name. Must be 'tasks/pushNotificationConfig/list'.",
1549
+ "type": "string"
1550
+ },
1551
+ "params": {
1552
+ "$ref": "#/definitions/ListTaskPushNotificationConfigParams",
1553
+ "description": "The parameters identifying the task whose configurations are to be listed."
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "id",
1558
+ "jsonrpc",
1559
+ "method",
1560
+ "params"
1561
+ ],
1562
+ "type": "object"
1563
+ },
1564
+ "ListTaskPushNotificationConfigResponse": {
1565
+ "anyOf": [
1566
+ {
1567
+ "$ref": "#/definitions/JSONRPCErrorResponse"
1568
+ },
1569
+ {
1570
+ "$ref": "#/definitions/ListTaskPushNotificationConfigSuccessResponse"
1571
+ }
1572
+ ],
1573
+ "description": "Represents a JSON-RPC response for the `tasks/pushNotificationConfig/list` method."
1574
+ },
1575
+ "ListTaskPushNotificationConfigSuccessResponse": {
1576
+ "description": "Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/list` method.",
1577
+ "properties": {
1578
+ "id": {
1579
+ "description": "The identifier established by the client.",
1580
+ "type": [
1581
+ "string",
1582
+ "integer",
1583
+ "null"
1584
+ ]
1585
+ },
1586
+ "jsonrpc": {
1587
+ "const": "2.0",
1588
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1589
+ "type": "string"
1590
+ },
1591
+ "result": {
1592
+ "description": "The result, containing an array of all push notification configurations for the task.",
1593
+ "items": {
1594
+ "$ref": "#/definitions/TaskPushNotificationConfig"
1595
+ },
1596
+ "type": "array"
1597
+ }
1598
+ },
1599
+ "required": [
1600
+ "id",
1601
+ "jsonrpc",
1602
+ "result"
1603
+ ],
1604
+ "type": "object"
1605
+ },
1606
+ "Message": {
1607
+ "description": "Represents a single message in the conversation between a user and an agent.",
1608
+ "properties": {
1609
+ "contextId": {
1610
+ "description": "The context ID for this message, used to group related interactions.",
1611
+ "type": "string"
1612
+ },
1613
+ "extensions": {
1614
+ "description": "The URIs of extensions that are relevant to this message.",
1615
+ "items": {
1616
+ "type": "string"
1617
+ },
1618
+ "type": "array"
1619
+ },
1620
+ "kind": {
1621
+ "const": "message",
1622
+ "description": "The type of this object, used as a discriminator. Always 'message' for a Message.",
1623
+ "type": "string"
1624
+ },
1625
+ "messageId": {
1626
+ "description": "A unique identifier for the message, typically a UUID, generated by the sender.",
1627
+ "type": "string"
1628
+ },
1629
+ "metadata": {
1630
+ "additionalProperties": {},
1631
+ "description": "Optional metadata for extensions. The key is an extension-specific identifier.",
1632
+ "type": "object"
1633
+ },
1634
+ "parts": {
1635
+ "description": "An array of content parts that form the message body. A message can be\ncomposed of multiple parts of different types (e.g., text and files).",
1636
+ "items": {
1637
+ "$ref": "#/definitions/Part"
1638
+ },
1639
+ "type": "array"
1640
+ },
1641
+ "referenceTaskIds": {
1642
+ "description": "A list of other task IDs that this message references for additional context.",
1643
+ "items": {
1644
+ "type": "string"
1645
+ },
1646
+ "type": "array"
1647
+ },
1648
+ "role": {
1649
+ "description": "Identifies the sender of the message. `user` for the client, `agent` for the service.",
1650
+ "enum": [
1651
+ "agent",
1652
+ "user"
1653
+ ],
1654
+ "type": "string"
1655
+ },
1656
+ "taskId": {
1657
+ "description": "The ID of the task this message is part of. Can be omitted for the first message of a new task.",
1658
+ "type": "string"
1659
+ }
1660
+ },
1661
+ "required": [
1662
+ "kind",
1663
+ "messageId",
1664
+ "parts",
1665
+ "role"
1666
+ ],
1667
+ "type": "object"
1668
+ },
1669
+ "MessageSendConfiguration": {
1670
+ "description": "Defines configuration options for a `message/send` or `message/stream` request.",
1671
+ "properties": {
1672
+ "acceptedOutputModes": {
1673
+ "description": "A list of output MIME types the client is prepared to accept in the response.",
1674
+ "items": {
1675
+ "type": "string"
1676
+ },
1677
+ "type": "array"
1678
+ },
1679
+ "blocking": {
1680
+ "description": "If true, the client will wait for the task to complete. The server may reject this if the task is long-running.",
1681
+ "type": "boolean"
1682
+ },
1683
+ "historyLength": {
1684
+ "description": "The number of most recent messages from the task's history to retrieve in the response.",
1685
+ "type": "integer"
1686
+ },
1687
+ "pushNotificationConfig": {
1688
+ "$ref": "#/definitions/PushNotificationConfig",
1689
+ "description": "Configuration for the agent to send push notifications for updates after the initial response."
1690
+ }
1691
+ },
1692
+ "type": "object"
1693
+ },
1694
+ "MessageSendParams": {
1695
+ "description": "Defines the parameters for a request to send a message to an agent. This can be used\nto create a new task, continue an existing one, or restart a task.",
1696
+ "properties": {
1697
+ "configuration": {
1698
+ "$ref": "#/definitions/MessageSendConfiguration",
1699
+ "description": "Optional configuration for the send request."
1700
+ },
1701
+ "message": {
1702
+ "$ref": "#/definitions/Message",
1703
+ "description": "The message object being sent to the agent."
1704
+ },
1705
+ "metadata": {
1706
+ "additionalProperties": {},
1707
+ "description": "Optional metadata for extensions.",
1708
+ "type": "object"
1709
+ }
1710
+ },
1711
+ "required": [
1712
+ "message"
1713
+ ],
1714
+ "type": "object"
1715
+ },
1716
+ "MethodNotFoundError": {
1717
+ "description": "An error indicating that the requested method does not exist or is not available.",
1718
+ "properties": {
1719
+ "code": {
1720
+ "const": -32601,
1721
+ "description": "The error code for a method not found error.",
1722
+ "type": "integer"
1723
+ },
1724
+ "data": {
1725
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1726
+ },
1727
+ "message": {
1728
+ "default": "Method not found",
1729
+ "description": "The error message.",
1730
+ "type": "string"
1731
+ }
1732
+ },
1733
+ "required": [
1734
+ "code",
1735
+ "message"
1736
+ ],
1737
+ "type": "object"
1738
+ },
1739
+ "MutualTLSSecurityScheme": {
1740
+ "description": "Defines a security scheme using mTLS authentication.",
1741
+ "properties": {
1742
+ "description": {
1743
+ "description": "An optional description for the security scheme.",
1744
+ "type": "string"
1745
+ },
1746
+ "type": {
1747
+ "const": "mutualTLS",
1748
+ "description": "The type of the security scheme. Must be 'mutualTLS'.",
1749
+ "type": "string"
1750
+ }
1751
+ },
1752
+ "required": [
1753
+ "type"
1754
+ ],
1755
+ "type": "object"
1756
+ },
1757
+ "OAuth2SecurityScheme": {
1758
+ "description": "Defines a security scheme using OAuth 2.0.",
1759
+ "properties": {
1760
+ "description": {
1761
+ "description": "An optional description for the security scheme.",
1762
+ "type": "string"
1763
+ },
1764
+ "flows": {
1765
+ "$ref": "#/definitions/OAuthFlows",
1766
+ "description": "An object containing configuration information for the supported OAuth 2.0 flows."
1767
+ },
1768
+ "oauth2MetadataUrl": {
1769
+ "description": "URL to the oauth2 authorization server metadata\n[RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.",
1770
+ "type": "string"
1771
+ },
1772
+ "type": {
1773
+ "const": "oauth2",
1774
+ "description": "The type of the security scheme. Must be 'oauth2'.",
1775
+ "type": "string"
1776
+ }
1777
+ },
1778
+ "required": [
1779
+ "flows",
1780
+ "type"
1781
+ ],
1782
+ "type": "object"
1783
+ },
1784
+ "OAuthFlows": {
1785
+ "description": "Defines the configuration for the supported OAuth 2.0 flows.",
1786
+ "properties": {
1787
+ "authorizationCode": {
1788
+ "$ref": "#/definitions/AuthorizationCodeOAuthFlow",
1789
+ "description": "Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."
1790
+ },
1791
+ "clientCredentials": {
1792
+ "$ref": "#/definitions/ClientCredentialsOAuthFlow",
1793
+ "description": "Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."
1794
+ },
1795
+ "implicit": {
1796
+ "$ref": "#/definitions/ImplicitOAuthFlow",
1797
+ "description": "Configuration for the OAuth Implicit flow."
1798
+ },
1799
+ "password": {
1800
+ "$ref": "#/definitions/PasswordOAuthFlow",
1801
+ "description": "Configuration for the OAuth Resource Owner Password flow."
1802
+ }
1803
+ },
1804
+ "type": "object"
1805
+ },
1806
+ "OpenIdConnectSecurityScheme": {
1807
+ "description": "Defines a security scheme using OpenID Connect.",
1808
+ "properties": {
1809
+ "description": {
1810
+ "description": "An optional description for the security scheme.",
1811
+ "type": "string"
1812
+ },
1813
+ "openIdConnectUrl": {
1814
+ "description": "The OpenID Connect Discovery URL for the OIDC provider's metadata.",
1815
+ "type": "string"
1816
+ },
1817
+ "type": {
1818
+ "const": "openIdConnect",
1819
+ "description": "The type of the security scheme. Must be 'openIdConnect'.",
1820
+ "type": "string"
1821
+ }
1822
+ },
1823
+ "required": [
1824
+ "openIdConnectUrl",
1825
+ "type"
1826
+ ],
1827
+ "type": "object"
1828
+ },
1829
+ "Part": {
1830
+ "anyOf": [
1831
+ {
1832
+ "$ref": "#/definitions/TextPart"
1833
+ },
1834
+ {
1835
+ "$ref": "#/definitions/FilePart"
1836
+ },
1837
+ {
1838
+ "$ref": "#/definitions/DataPart"
1839
+ }
1840
+ ],
1841
+ "description": "A discriminated union representing a part of a message or artifact, which can\nbe text, a file, or structured data."
1842
+ },
1843
+ "PartBase": {
1844
+ "description": "Defines base properties common to all message or artifact parts.",
1845
+ "properties": {
1846
+ "metadata": {
1847
+ "additionalProperties": {},
1848
+ "description": "Optional metadata associated with this part.",
1849
+ "type": "object"
1850
+ }
1851
+ },
1852
+ "type": "object"
1853
+ },
1854
+ "PasswordOAuthFlow": {
1855
+ "description": "Defines configuration details for the OAuth 2.0 Resource Owner Password flow.",
1856
+ "properties": {
1857
+ "refreshUrl": {
1858
+ "description": "The URL to be used for obtaining refresh tokens. This MUST be a URL.",
1859
+ "type": "string"
1860
+ },
1861
+ "scopes": {
1862
+ "additionalProperties": {
1863
+ "type": "string"
1864
+ },
1865
+ "description": "The available scopes for the OAuth2 security scheme. A map between the scope\nname and a short description for it.",
1866
+ "type": "object"
1867
+ },
1868
+ "tokenUrl": {
1869
+ "description": "The token URL to be used for this flow. This MUST be a URL.",
1870
+ "type": "string"
1871
+ }
1872
+ },
1873
+ "required": [
1874
+ "scopes",
1875
+ "tokenUrl"
1876
+ ],
1877
+ "type": "object"
1878
+ },
1879
+ "PushNotificationAuthenticationInfo": {
1880
+ "description": "Defines authentication details for a push notification endpoint.",
1881
+ "properties": {
1882
+ "credentials": {
1883
+ "description": "Optional credentials required by the push notification endpoint.",
1884
+ "type": "string"
1885
+ },
1886
+ "schemes": {
1887
+ "description": "A list of supported authentication schemes (e.g., 'Basic', 'Bearer').",
1888
+ "items": {
1889
+ "type": "string"
1890
+ },
1891
+ "type": "array"
1892
+ }
1893
+ },
1894
+ "required": [
1895
+ "schemes"
1896
+ ],
1897
+ "type": "object"
1898
+ },
1899
+ "PushNotificationConfig": {
1900
+ "description": "Defines the configuration for setting up push notifications for task updates.",
1901
+ "properties": {
1902
+ "authentication": {
1903
+ "$ref": "#/definitions/PushNotificationAuthenticationInfo",
1904
+ "description": "Optional authentication details for the agent to use when calling the notification URL."
1905
+ },
1906
+ "id": {
1907
+ "description": "A unique identifier (e.g. UUID) for the push notification configuration, set by the client\nto support multiple notification callbacks.",
1908
+ "type": "string"
1909
+ },
1910
+ "token": {
1911
+ "description": "A unique token for this task or session to validate incoming push notifications.",
1912
+ "type": "string"
1913
+ },
1914
+ "url": {
1915
+ "description": "The callback URL where the agent should send push notifications.",
1916
+ "type": "string"
1917
+ }
1918
+ },
1919
+ "required": [
1920
+ "url"
1921
+ ],
1922
+ "type": "object"
1923
+ },
1924
+ "PushNotificationNotSupportedError": {
1925
+ "description": "An A2A-specific error indicating that the agent does not support push notifications.",
1926
+ "properties": {
1927
+ "code": {
1928
+ "const": -32003,
1929
+ "description": "The error code for when push notifications are not supported.",
1930
+ "type": "integer"
1931
+ },
1932
+ "data": {
1933
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
1934
+ },
1935
+ "message": {
1936
+ "default": "Push Notification is not supported",
1937
+ "description": "The error message.",
1938
+ "type": "string"
1939
+ }
1940
+ },
1941
+ "required": [
1942
+ "code",
1943
+ "message"
1944
+ ],
1945
+ "type": "object"
1946
+ },
1947
+ "SecurityScheme": {
1948
+ "anyOf": [
1949
+ {
1950
+ "$ref": "#/definitions/APIKeySecurityScheme"
1951
+ },
1952
+ {
1953
+ "$ref": "#/definitions/HTTPAuthSecurityScheme"
1954
+ },
1955
+ {
1956
+ "$ref": "#/definitions/OAuth2SecurityScheme"
1957
+ },
1958
+ {
1959
+ "$ref": "#/definitions/OpenIdConnectSecurityScheme"
1960
+ },
1961
+ {
1962
+ "$ref": "#/definitions/MutualTLSSecurityScheme"
1963
+ }
1964
+ ],
1965
+ "description": "Defines a security scheme that can be used to secure an agent's endpoints.\nThis is a discriminated union type based on the OpenAPI 3.0 Security Scheme Object."
1966
+ },
1967
+ "SecuritySchemeBase": {
1968
+ "description": "Defines base properties shared by all security scheme objects.",
1969
+ "properties": {
1970
+ "description": {
1971
+ "description": "An optional description for the security scheme.",
1972
+ "type": "string"
1973
+ }
1974
+ },
1975
+ "type": "object"
1976
+ },
1977
+ "SendMessageRequest": {
1978
+ "description": "Represents a JSON-RPC request for the `message/send` method.",
1979
+ "properties": {
1980
+ "id": {
1981
+ "description": "The identifier for this request.",
1982
+ "type": [
1983
+ "string",
1984
+ "integer"
1985
+ ]
1986
+ },
1987
+ "jsonrpc": {
1988
+ "const": "2.0",
1989
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
1990
+ "type": "string"
1991
+ },
1992
+ "method": {
1993
+ "const": "message/send",
1994
+ "description": "The method name. Must be 'message/send'.",
1995
+ "type": "string"
1996
+ },
1997
+ "params": {
1998
+ "$ref": "#/definitions/MessageSendParams",
1999
+ "description": "The parameters for sending a message."
2000
+ }
2001
+ },
2002
+ "required": [
2003
+ "id",
2004
+ "jsonrpc",
2005
+ "method",
2006
+ "params"
2007
+ ],
2008
+ "type": "object"
2009
+ },
2010
+ "SendMessageResponse": {
2011
+ "anyOf": [
2012
+ {
2013
+ "$ref": "#/definitions/JSONRPCErrorResponse"
2014
+ },
2015
+ {
2016
+ "$ref": "#/definitions/SendMessageSuccessResponse"
2017
+ }
2018
+ ],
2019
+ "description": "Represents a JSON-RPC response for the `message/send` method."
2020
+ },
2021
+ "SendMessageSuccessResponse": {
2022
+ "description": "Represents a successful JSON-RPC response for the `message/send` method.",
2023
+ "properties": {
2024
+ "id": {
2025
+ "description": "The identifier established by the client.",
2026
+ "type": [
2027
+ "string",
2028
+ "integer",
2029
+ "null"
2030
+ ]
2031
+ },
2032
+ "jsonrpc": {
2033
+ "const": "2.0",
2034
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2035
+ "type": "string"
2036
+ },
2037
+ "result": {
2038
+ "anyOf": [
2039
+ {
2040
+ "$ref": "#/definitions/Task"
2041
+ },
2042
+ {
2043
+ "$ref": "#/definitions/Message"
2044
+ }
2045
+ ],
2046
+ "description": "The result, which can be a direct reply Message or the initial Task object."
2047
+ }
2048
+ },
2049
+ "required": [
2050
+ "id",
2051
+ "jsonrpc",
2052
+ "result"
2053
+ ],
2054
+ "type": "object"
2055
+ },
2056
+ "SendStreamingMessageRequest": {
2057
+ "description": "Represents a JSON-RPC request for the `message/stream` method.",
2058
+ "properties": {
2059
+ "id": {
2060
+ "description": "The identifier for this request.",
2061
+ "type": [
2062
+ "string",
2063
+ "integer"
2064
+ ]
2065
+ },
2066
+ "jsonrpc": {
2067
+ "const": "2.0",
2068
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2069
+ "type": "string"
2070
+ },
2071
+ "method": {
2072
+ "const": "message/stream",
2073
+ "description": "The method name. Must be 'message/stream'.",
2074
+ "type": "string"
2075
+ },
2076
+ "params": {
2077
+ "$ref": "#/definitions/MessageSendParams",
2078
+ "description": "The parameters for sending a message."
2079
+ }
2080
+ },
2081
+ "required": [
2082
+ "id",
2083
+ "jsonrpc",
2084
+ "method",
2085
+ "params"
2086
+ ],
2087
+ "type": "object"
2088
+ },
2089
+ "SendStreamingMessageResponse": {
2090
+ "anyOf": [
2091
+ {
2092
+ "$ref": "#/definitions/JSONRPCErrorResponse"
2093
+ },
2094
+ {
2095
+ "$ref": "#/definitions/SendStreamingMessageSuccessResponse"
2096
+ }
2097
+ ],
2098
+ "description": "Represents a JSON-RPC response for the `message/stream` method."
2099
+ },
2100
+ "SendStreamingMessageSuccessResponse": {
2101
+ "description": "Represents a successful JSON-RPC response for the `message/stream` method.\nThe server may send multiple response objects for a single request.",
2102
+ "properties": {
2103
+ "id": {
2104
+ "description": "The identifier established by the client.",
2105
+ "type": [
2106
+ "string",
2107
+ "integer",
2108
+ "null"
2109
+ ]
2110
+ },
2111
+ "jsonrpc": {
2112
+ "const": "2.0",
2113
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2114
+ "type": "string"
2115
+ },
2116
+ "result": {
2117
+ "anyOf": [
2118
+ {
2119
+ "$ref": "#/definitions/Task"
2120
+ },
2121
+ {
2122
+ "$ref": "#/definitions/Message"
2123
+ },
2124
+ {
2125
+ "$ref": "#/definitions/TaskStatusUpdateEvent"
2126
+ },
2127
+ {
2128
+ "$ref": "#/definitions/TaskArtifactUpdateEvent"
2129
+ }
2130
+ ],
2131
+ "description": "The result, which can be a Message, Task, or a streaming update event."
2132
+ }
2133
+ },
2134
+ "required": [
2135
+ "id",
2136
+ "jsonrpc",
2137
+ "result"
2138
+ ],
2139
+ "type": "object"
2140
+ },
2141
+ "SetTaskPushNotificationConfigRequest": {
2142
+ "description": "Represents a JSON-RPC request for the `tasks/pushNotificationConfig/set` method.",
2143
+ "properties": {
2144
+ "id": {
2145
+ "description": "The identifier for this request.",
2146
+ "type": [
2147
+ "string",
2148
+ "integer"
2149
+ ]
2150
+ },
2151
+ "jsonrpc": {
2152
+ "const": "2.0",
2153
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2154
+ "type": "string"
2155
+ },
2156
+ "method": {
2157
+ "const": "tasks/pushNotificationConfig/set",
2158
+ "description": "The method name. Must be 'tasks/pushNotificationConfig/set'.",
2159
+ "type": "string"
2160
+ },
2161
+ "params": {
2162
+ "$ref": "#/definitions/TaskPushNotificationConfig",
2163
+ "description": "The parameters for setting the push notification configuration."
2164
+ }
2165
+ },
2166
+ "required": [
2167
+ "id",
2168
+ "jsonrpc",
2169
+ "method",
2170
+ "params"
2171
+ ],
2172
+ "type": "object"
2173
+ },
2174
+ "SetTaskPushNotificationConfigResponse": {
2175
+ "anyOf": [
2176
+ {
2177
+ "$ref": "#/definitions/JSONRPCErrorResponse"
2178
+ },
2179
+ {
2180
+ "$ref": "#/definitions/SetTaskPushNotificationConfigSuccessResponse"
2181
+ }
2182
+ ],
2183
+ "description": "Represents a JSON-RPC response for the `tasks/pushNotificationConfig/set` method."
2184
+ },
2185
+ "SetTaskPushNotificationConfigSuccessResponse": {
2186
+ "description": "Represents a successful JSON-RPC response for the `tasks/pushNotificationConfig/set` method.",
2187
+ "properties": {
2188
+ "id": {
2189
+ "description": "The identifier established by the client.",
2190
+ "type": [
2191
+ "string",
2192
+ "integer",
2193
+ "null"
2194
+ ]
2195
+ },
2196
+ "jsonrpc": {
2197
+ "const": "2.0",
2198
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2199
+ "type": "string"
2200
+ },
2201
+ "result": {
2202
+ "$ref": "#/definitions/TaskPushNotificationConfig",
2203
+ "description": "The result, containing the configured push notification settings."
2204
+ }
2205
+ },
2206
+ "required": [
2207
+ "id",
2208
+ "jsonrpc",
2209
+ "result"
2210
+ ],
2211
+ "type": "object"
2212
+ },
2213
+ "Task": {
2214
+ "description": "Represents a single, stateful operation or conversation between a client and an agent.",
2215
+ "properties": {
2216
+ "artifacts": {
2217
+ "description": "A collection of artifacts generated by the agent during the execution of the task.",
2218
+ "items": {
2219
+ "$ref": "#/definitions/Artifact"
2220
+ },
2221
+ "type": "array"
2222
+ },
2223
+ "contextId": {
2224
+ "description": "A server-generated unique identifier (e.g. UUID) for maintaining context across multiple related tasks or interactions.",
2225
+ "type": "string"
2226
+ },
2227
+ "history": {
2228
+ "description": "An array of messages exchanged during the task, representing the conversation history.",
2229
+ "items": {
2230
+ "$ref": "#/definitions/Message"
2231
+ },
2232
+ "type": "array"
2233
+ },
2234
+ "id": {
2235
+ "description": "A unique identifier (e.g. UUID) for the task, generated by the server for a new task.",
2236
+ "type": "string"
2237
+ },
2238
+ "kind": {
2239
+ "const": "task",
2240
+ "description": "The type of this object, used as a discriminator. Always 'task' for a Task.",
2241
+ "type": "string"
2242
+ },
2243
+ "metadata": {
2244
+ "additionalProperties": {},
2245
+ "description": "Optional metadata for extensions. The key is an extension-specific identifier.",
2246
+ "type": "object"
2247
+ },
2248
+ "status": {
2249
+ "$ref": "#/definitions/TaskStatus",
2250
+ "description": "The current status of the task, including its state and a descriptive message."
2251
+ }
2252
+ },
2253
+ "required": [
2254
+ "contextId",
2255
+ "id",
2256
+ "kind",
2257
+ "status"
2258
+ ],
2259
+ "type": "object"
2260
+ },
2261
+ "TaskArtifactUpdateEvent": {
2262
+ "description": "An event sent by the agent to notify the client that an artifact has been\ngenerated or updated. This is typically used in streaming models.",
2263
+ "properties": {
2264
+ "append": {
2265
+ "description": "If true, the content of this artifact should be appended to a previously sent artifact with the same ID.",
2266
+ "type": "boolean"
2267
+ },
2268
+ "artifact": {
2269
+ "$ref": "#/definitions/Artifact",
2270
+ "description": "The artifact that was generated or updated."
2271
+ },
2272
+ "contextId": {
2273
+ "description": "The context ID associated with the task.",
2274
+ "type": "string"
2275
+ },
2276
+ "kind": {
2277
+ "const": "artifact-update",
2278
+ "description": "The type of this event, used as a discriminator. Always 'artifact-update'.",
2279
+ "type": "string"
2280
+ },
2281
+ "lastChunk": {
2282
+ "description": "If true, this is the final chunk of the artifact.",
2283
+ "type": "boolean"
2284
+ },
2285
+ "metadata": {
2286
+ "additionalProperties": {},
2287
+ "description": "Optional metadata for extensions.",
2288
+ "type": "object"
2289
+ },
2290
+ "taskId": {
2291
+ "description": "The ID of the task this artifact belongs to.",
2292
+ "type": "string"
2293
+ }
2294
+ },
2295
+ "required": [
2296
+ "artifact",
2297
+ "contextId",
2298
+ "kind",
2299
+ "taskId"
2300
+ ],
2301
+ "type": "object"
2302
+ },
2303
+ "TaskIdParams": {
2304
+ "description": "Defines parameters containing a task ID, used for simple task operations.",
2305
+ "properties": {
2306
+ "id": {
2307
+ "description": "The unique identifier (e.g. UUID) of the task.",
2308
+ "type": "string"
2309
+ },
2310
+ "metadata": {
2311
+ "additionalProperties": {},
2312
+ "description": "Optional metadata associated with the request.",
2313
+ "type": "object"
2314
+ }
2315
+ },
2316
+ "required": [
2317
+ "id"
2318
+ ],
2319
+ "type": "object"
2320
+ },
2321
+ "TaskNotCancelableError": {
2322
+ "description": "An A2A-specific error indicating that the task is in a state where it cannot be canceled.",
2323
+ "properties": {
2324
+ "code": {
2325
+ "const": -32002,
2326
+ "description": "The error code for a task that cannot be canceled.",
2327
+ "type": "integer"
2328
+ },
2329
+ "data": {
2330
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
2331
+ },
2332
+ "message": {
2333
+ "default": "Task cannot be canceled",
2334
+ "description": "The error message.",
2335
+ "type": "string"
2336
+ }
2337
+ },
2338
+ "required": [
2339
+ "code",
2340
+ "message"
2341
+ ],
2342
+ "type": "object"
2343
+ },
2344
+ "TaskNotFoundError": {
2345
+ "description": "An A2A-specific error indicating that the requested task ID was not found.",
2346
+ "properties": {
2347
+ "code": {
2348
+ "const": -32001,
2349
+ "description": "The error code for a task not found error.",
2350
+ "type": "integer"
2351
+ },
2352
+ "data": {
2353
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
2354
+ },
2355
+ "message": {
2356
+ "default": "Task not found",
2357
+ "description": "The error message.",
2358
+ "type": "string"
2359
+ }
2360
+ },
2361
+ "required": [
2362
+ "code",
2363
+ "message"
2364
+ ],
2365
+ "type": "object"
2366
+ },
2367
+ "TaskPushNotificationConfig": {
2368
+ "description": "A container associating a push notification configuration with a specific task.",
2369
+ "properties": {
2370
+ "pushNotificationConfig": {
2371
+ "$ref": "#/definitions/PushNotificationConfig",
2372
+ "description": "The push notification configuration for this task."
2373
+ },
2374
+ "taskId": {
2375
+ "description": "The unique identifier (e.g. UUID) of the task.",
2376
+ "type": "string"
2377
+ }
2378
+ },
2379
+ "required": [
2380
+ "pushNotificationConfig",
2381
+ "taskId"
2382
+ ],
2383
+ "type": "object"
2384
+ },
2385
+ "TaskQueryParams": {
2386
+ "description": "Defines parameters for querying a task, with an option to limit history length.",
2387
+ "properties": {
2388
+ "historyLength": {
2389
+ "description": "The number of most recent messages from the task's history to retrieve.",
2390
+ "type": "integer"
2391
+ },
2392
+ "id": {
2393
+ "description": "The unique identifier (e.g. UUID) of the task.",
2394
+ "type": "string"
2395
+ },
2396
+ "metadata": {
2397
+ "additionalProperties": {},
2398
+ "description": "Optional metadata associated with the request.",
2399
+ "type": "object"
2400
+ }
2401
+ },
2402
+ "required": [
2403
+ "id"
2404
+ ],
2405
+ "type": "object"
2406
+ },
2407
+ "TaskResubscriptionRequest": {
2408
+ "description": "Represents a JSON-RPC request for the `tasks/resubscribe` method, used to resume a streaming connection.",
2409
+ "properties": {
2410
+ "id": {
2411
+ "description": "The identifier for this request.",
2412
+ "type": [
2413
+ "string",
2414
+ "integer"
2415
+ ]
2416
+ },
2417
+ "jsonrpc": {
2418
+ "const": "2.0",
2419
+ "description": "The version of the JSON-RPC protocol. MUST be exactly \"2.0\".",
2420
+ "type": "string"
2421
+ },
2422
+ "method": {
2423
+ "const": "tasks/resubscribe",
2424
+ "description": "The method name. Must be 'tasks/resubscribe'.",
2425
+ "type": "string"
2426
+ },
2427
+ "params": {
2428
+ "$ref": "#/definitions/TaskIdParams",
2429
+ "description": "The parameters identifying the task to resubscribe to."
2430
+ }
2431
+ },
2432
+ "required": [
2433
+ "id",
2434
+ "jsonrpc",
2435
+ "method",
2436
+ "params"
2437
+ ],
2438
+ "type": "object"
2439
+ },
2440
+ "TaskState": {
2441
+ "description": "Defines the lifecycle states of a Task.",
2442
+ "enum": [
2443
+ "submitted",
2444
+ "working",
2445
+ "input-required",
2446
+ "completed",
2447
+ "canceled",
2448
+ "failed",
2449
+ "rejected",
2450
+ "auth-required",
2451
+ "unknown"
2452
+ ],
2453
+ "type": "string"
2454
+ },
2455
+ "TaskStatus": {
2456
+ "description": "Represents the status of a task at a specific point in time.",
2457
+ "properties": {
2458
+ "message": {
2459
+ "$ref": "#/definitions/Message",
2460
+ "description": "An optional, human-readable message providing more details about the current status."
2461
+ },
2462
+ "state": {
2463
+ "$ref": "#/definitions/TaskState",
2464
+ "description": "The current state of the task's lifecycle."
2465
+ },
2466
+ "timestamp": {
2467
+ "description": "An ISO 8601 datetime string indicating when this status was recorded.",
2468
+ "examples": [
2469
+ "2023-10-27T10:00:00Z"
2470
+ ],
2471
+ "type": "string"
2472
+ }
2473
+ },
2474
+ "required": [
2475
+ "state"
2476
+ ],
2477
+ "type": "object"
2478
+ },
2479
+ "TaskStatusUpdateEvent": {
2480
+ "description": "An event sent by the agent to notify the client of a change in a task's status.\nThis is typically used in streaming or subscription models.",
2481
+ "properties": {
2482
+ "contextId": {
2483
+ "description": "The context ID associated with the task.",
2484
+ "type": "string"
2485
+ },
2486
+ "final": {
2487
+ "description": "If true, this is the final event in the stream for this interaction.",
2488
+ "type": "boolean"
2489
+ },
2490
+ "kind": {
2491
+ "const": "status-update",
2492
+ "description": "The type of this event, used as a discriminator. Always 'status-update'.",
2493
+ "type": "string"
2494
+ },
2495
+ "metadata": {
2496
+ "additionalProperties": {},
2497
+ "description": "Optional metadata for extensions.",
2498
+ "type": "object"
2499
+ },
2500
+ "status": {
2501
+ "$ref": "#/definitions/TaskStatus",
2502
+ "description": "The new status of the task."
2503
+ },
2504
+ "taskId": {
2505
+ "description": "The ID of the task that was updated.",
2506
+ "type": "string"
2507
+ }
2508
+ },
2509
+ "required": [
2510
+ "contextId",
2511
+ "final",
2512
+ "kind",
2513
+ "status",
2514
+ "taskId"
2515
+ ],
2516
+ "type": "object"
2517
+ },
2518
+ "TextPart": {
2519
+ "description": "Represents a text segment within a message or artifact.",
2520
+ "properties": {
2521
+ "kind": {
2522
+ "const": "text",
2523
+ "description": "The type of this part, used as a discriminator. Always 'text'.",
2524
+ "type": "string"
2525
+ },
2526
+ "metadata": {
2527
+ "additionalProperties": {},
2528
+ "description": "Optional metadata associated with this part.",
2529
+ "type": "object"
2530
+ },
2531
+ "text": {
2532
+ "description": "The string content of the text part.",
2533
+ "type": "string"
2534
+ }
2535
+ },
2536
+ "required": [
2537
+ "kind",
2538
+ "text"
2539
+ ],
2540
+ "type": "object"
2541
+ },
2542
+ "TransportProtocol": {
2543
+ "description": "Supported A2A transport protocols.",
2544
+ "enum": [
2545
+ "JSONRPC",
2546
+ "GRPC",
2547
+ "HTTP+JSON"
2548
+ ],
2549
+ "type": "string"
2550
+ },
2551
+ "UnsupportedOperationError": {
2552
+ "description": "An A2A-specific error indicating that the requested operation is not supported by the agent.",
2553
+ "properties": {
2554
+ "code": {
2555
+ "const": -32004,
2556
+ "description": "The error code for an unsupported operation.",
2557
+ "type": "integer"
2558
+ },
2559
+ "data": {
2560
+ "description": "A primitive or structured value containing additional information about the error.\nThis may be omitted."
2561
+ },
2562
+ "message": {
2563
+ "default": "This operation is not supported",
2564
+ "description": "The error message.",
2565
+ "type": "string"
2566
+ }
2567
+ },
2568
+ "required": [
2569
+ "code",
2570
+ "message"
2571
+ ],
2572
+ "type": "object"
2573
+ }
2574
+ }
2575
+ }