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