()
| 24 | } |
| 25 | |
| 26 | func (d *DelegateTool) Definition() api.ToolDef { |
| 27 | return api.ToolDef{ |
| 28 | Name: "delegate_" + d.Subagent.Name(), |
| 29 | Description: d.Subagent.Description(), |
| 30 | InputSchema: map[string]any{ |
| 31 | "task": map[string]any{ |
| 32 | "type": "string", |
| 33 | "description": "Concrete description of what the subagent should do.", |
| 34 | }, |
| 35 | }, |
| 36 | Required: []string{"task"}, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (d *DelegateTool) Execute(ctx context.Context, rawInput string) (string, bool) { |
| 41 | var in struct { |
nothing calls this directly
no test coverage detected