MCPcopy
hub / github.com/sipeed/picoclaw / DelegateTool

Struct DelegateTool

pkg/tools/delegate.go:15–19  ·  view source on GitHub ↗

DelegateTool delegates a task to a specific named agent and waits for the result. Unlike spawn (async, fire-and-forget) or subagent (sync but generic), delegate targets a named agent and runs the task using that agent's own workspace, model, and tools.

Source from the content-addressed store, hash-verified

13// generic), delegate targets a named agent and runs the task using that
14// agent's own workspace, model, and tools.
15type DelegateTool struct {
16 spawner SubTurnSpawner
17 allowlistCheck func(targetAgentID string) bool
18 selfAgentID string
19}
20
21func NewDelegateTool() *DelegateTool {
22 return &DelegateTool{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected