MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / Definition

Method Definition

delegate.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (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
40func (d *DelegateTool) Execute(ctx context.Context, rawInput string) (string, bool) {
41 var in struct {

Callers

nothing calls this directly

Calls 2

NameMethod · 0.65
DescriptionMethod · 0.65

Tested by

no test coverage detected