You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(tasks): clarify task ID format in tool descriptions
Make it explicit that blocked_by expects task IDs in the format task_1,
task_2, etc. This helps LLMs use the correct format on first try.
Assisted-By: cagent
Copy file name to clipboardExpand all lines: pkg/tools/builtin/tasks.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,20 +33,20 @@ type Task struct {
33
33
IDstring`json:"id" jsonschema:"ID of the task"`
34
34
Descriptionstring`json:"description" jsonschema:"Description of the task"`
35
35
Statusstring`json:"status" jsonschema:"Status: pending, in-progress, or completed"`
36
-
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"IDs of tasks that must be completed before this one can start"`
37
-
Blocks []string`json:"blocks,omitempty" jsonschema:"IDs of tasks that are waiting for this one to complete"`
36
+
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"Task IDs (e.g. task_1, task_2) that must be completed before this one can start"`
37
+
Blocks []string`json:"blocks,omitempty" jsonschema:"Task IDs that are waiting for this one to complete"`
38
38
Ownerstring`json:"owner,omitempty" jsonschema:"Owner/assignee of this task"`
39
39
}
40
40
41
41
typeCreateTaskArgsstruct {
42
42
Descriptionstring`json:"description" jsonschema:"Description of the task,required"`
43
-
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"IDs of tasks that must be completed before this one can start"`
43
+
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"Task IDs (e.g. task_1, task_2) that must be completed first"`
44
44
Ownerstring`json:"owner,omitempty" jsonschema:"Owner/assignee of this task"`
45
45
}
46
46
47
47
typeCreateTaskItemstruct {
48
48
Descriptionstring`json:"description" jsonschema:"Description of the task,required"`
49
-
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"IDs of tasks that must be completed before this one can start"`
49
+
BlockedBy []string`json:"blocked_by,omitempty" jsonschema:"Task IDs (e.g. task_1, task_2) that must be completed first. For batch creation, use task_N where N is the 1-based position in the final list."`
50
50
Ownerstring`json:"owner,omitempty" jsonschema:"Owner/assignee of this task"`
0 commit comments