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

Struct SubagentTool

pkg/tools/subagent.go:340–345  ·  view source on GitHub ↗

SubagentTool executes a subagent task synchronously and returns the result. It directly calls SubTurnSpawner with Async=false for synchronous execution.

Source from the content-addressed store, hash-verified

338// SubagentTool executes a subagent task synchronously and returns the result.
339// It directly calls SubTurnSpawner with Async=false for synchronous execution.
340type SubagentTool struct {
341 spawner SubTurnSpawner
342 defaultModel string
343 maxTokens int
344 temperature float64
345}
346
347func NewSubagentTool(manager *SubagentManager) *SubagentTool {
348 if manager == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected