Skip to content

Commit dc11f51

Browse files
authored
chore: update spec doc with referenceTaskIds (#621)
1 parent e0a3070 commit dc11f51

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

docs/specification.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide:
55

66
# Agent2Agent (A2A) Protocol Specification
77

8-
**Version:** `0.2.0`
8+
**Version:** `0.2.1`
99

1010
## 1. Introduction
1111

@@ -488,27 +488,29 @@ interface Message {
488488
// Keys SHOULD be strings; values can be any valid JSON type.
489489
// Useful for timestamps, source identifiers, language codes, etc.
490490
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
492494
messageId: string;
493-
//task identifier the current message is related to
495+
// task identifier the current message is related to
494496
taskId?: string
495-
//Context identifier the message is associated with
497+
// Context identifier the message is associated with
496498
contextId?: string;
497-
//type discriminator
499+
// type discriminator
498500
kind: 'message'
499501
}
500502
```
501503

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 |
512514

513515
### 6.5. `Part` Union Type
514516

0 commit comments

Comments
 (0)