Skip to content

Commit 5368e77

Browse files
authored
feat: Add optional referenceTaskIds for task followups (#608)
### Problem Clients need to follow up or refine previously created tasks by agents. ### Proposal **New Task in same contextId (Preferred)** Context can be thought of as a larger goal from a client perspective. Clients can use the same contextId from the previous task and send a message for refinement or followup. Agents should spawn up new tasks. Tasks cannot restart processing from terminal states (Completed, Failed and Cancelled). ### Proposed API Change * Addition of optional `referenceTaskIds` field in the `Message` object. * Optional addition of `referenceArtifactId` in `part` metadata of `Message` object.
1 parent 2d386d4 commit 5368e77

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

specification/json/a2a.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,13 @@
10801080
},
10811081
"type": "array"
10821082
},
1083+
"referenceTaskIds": {
1084+
"description": "list of tasks referenced as context by this message.",
1085+
"items": {
1086+
"type": "string"
1087+
},
1088+
"type": "array"
1089+
},
10831090
"role": {
10841091
"description": "Message sender's role",
10851092
"enum": [

types/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ export interface Message {
251251
metadata?: {
252252
[key: string]: any;
253253
};
254+
/** List of tasks referenced as context by this message.*/
255+
referenceTaskIds?: string[];
254256
/** Identifier created by the message creator*/
255257
messageId: string;
256258
/** Identifier of task the message is related to */

0 commit comments

Comments
 (0)