Commit 5368e77
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
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1083 | 1090 | | |
1084 | 1091 | | |
1085 | 1092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
0 commit comments