mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: improve task reporting tool description (#18119)
In my (albeit subjective) testing, this dramatically improved the reporting ability - both in frequency and accuracy.
This commit is contained in:
@ -180,8 +180,28 @@ type ReportTaskArgs struct {
|
||||
|
||||
var ReportTask = Tool[ReportTaskArgs, codersdk.Response]{
|
||||
Tool: aisdk.Tool{
|
||||
Name: "coder_report_task",
|
||||
Description: "Report progress on a user task in Coder.",
|
||||
Name: "coder_report_task",
|
||||
Description: `Report progress on your work.
|
||||
|
||||
The user observes your work through a Task UI. To keep them updated
|
||||
on your progress, or if you need help - use this tool.
|
||||
|
||||
Good Tasks
|
||||
- "Cloning the repository <repository-url>"
|
||||
- "Working on <feature-name>"
|
||||
- "Figuring our why <issue> is happening"
|
||||
|
||||
Bad Tasks
|
||||
- "I'm working on it"
|
||||
- "I'm trying to fix it"
|
||||
- "I'm trying to implement <feature-name>"
|
||||
|
||||
Use the "state" field to indicate your progress. Periodically report
|
||||
progress to keep the user updated. It is not possible to send too many updates!
|
||||
|
||||
After you complete your work, ALWAYS send a "complete" or "failure" state. Only report
|
||||
these states if you are finished, not if you are working on it.
|
||||
`,
|
||||
Schema: aisdk.Schema{
|
||||
Properties: map[string]any{
|
||||
"summary": map[string]any{
|
||||
|
Reference in New Issue
Block a user