|
5 | 5 |
|
6 | 6 | # Agent2Agent (A2A) Protocol Specification
|
7 | 7 |
|
8 |
| -**Version:** `0.2.0` |
| 8 | +**Version:** `0.2.1` |
9 | 9 |
|
10 | 10 | ## 1. Introduction
|
11 | 11 |
|
@@ -488,27 +488,29 @@ interface Message {
|
488 | 488 | // Keys SHOULD be strings; values can be any valid JSON type.
|
489 | 489 | // Useful for timestamps, source identifiers, language codes, etc.
|
490 | 490 | metadata?: Record<string, any>;
|
491 |
| - //message identifier created by the message creator |
| 491 | + // List of tasks referenced as contextual hint by this message. |
| 492 | + referenceTaskIds?: string[]; |
| 493 | + // message identifier created by the message creator |
492 | 494 | messageId: string;
|
493 |
| - //task identifier the current message is related to |
| 495 | + // task identifier the current message is related to |
494 | 496 | taskId?: string
|
495 |
| - //Context identifier the message is associated with |
| 497 | + // Context identifier the message is associated with |
496 | 498 | contextId?: string;
|
497 |
| - //type discriminator |
| 499 | + // type discriminator |
498 | 500 | kind: 'message'
|
499 | 501 | }
|
500 | 502 | ```
|
501 | 503 |
|
502 |
| -| Field Name | Type | Required | Description | |
503 |
| -| :--------- | :------------------------------ | :------- | :------------------------------------------------------------------------------- | |
504 |
| -| `role` | `"user"` \| `"agent"` | Yes | Indicates the sender: `"user"` (from A2A Client) or `"agent"` (from A2A Server). | |
505 |
| -| `parts` | [`Part[]`](#65-part-union-type) | Yes | Array of content parts. Must contain at least one part. | |
506 |
| -| `metadata` | `Record<string, any>` | No | Arbitrary key-value metadata associated with this message. | |
507 |
| -| `messageId` | `string` | Yes | Message identifier generated by the message sender | |
508 |
| -| `taskId` | `string` | No | Task identifier the current message is related to | |
509 |
| -| `contextId` | `string` | No | Context identifier the message is associated with | |
510 |
| -| `kind` | `"message"` | Yes | Type discriminator, literal value | |
511 |
| - |
| 504 | +| Field Name | Type | Required | Description | |
| 505 | +| :----------------- | :------------------------------ | :------- | :------------------------------------------------------------------------------- | |
| 506 | +| `role` | `"user"` \| `"agent"` | Yes | Indicates the sender: `"user"` (from A2A Client) or `"agent"` (from A2A Server). | |
| 507 | +| `parts` | [`Part[]`](#65-part-union-type) | Yes | Array of content parts. Must contain at least one part. | |
| 508 | +| `metadata` | `Record<string, any>` | No | Arbitrary key-value metadata associated with this message. | |
| 509 | +| `referenceTaskIds` | `string[]` | No | List of tasks referenced as contextual hint by this message. | |
| 510 | +| `messageId` | `string` | Yes | Message identifier generated by the message sender | |
| 511 | +| `taskId` | `string` | No | Task identifier the current message is related to | |
| 512 | +| `contextId` | `string` | No | Context identifier the message is associated with | |
| 513 | +| `kind` | `"message"` | Yes | Type discriminator, literal value | |
512 | 514 |
|
513 | 515 | ### 6.5. `Part` Union Type
|
514 | 516 |
|
|
0 commit comments