Skip to main content

Module agent_tool

Module agent_tool 

Source
Expand description

AgentTool: spawn a sub-agent to handle complex sub-tasks.

Each sub-agent runs its own agentic loop with independent message history, cost tracking, and tool access. The Agent tool is filtered out of sub-agents to prevent infinite recursion.

Structs§

AgentTool
The AgentTool — spawns independent sub-agents.