Skip to main contentCrate yoagent
Source pub use agent::Agent;pub use agent_loop::agent_loop;pub use agent_loop::agent_loop_continue;pub use retry::RetryConfig;pub use skills::SkillSet;pub use sub_agent::SubAgentTool;pub use types::*;
- agent
- Stateful Agent struct — wraps the agent loop with state management,
steering/follow-up queues, and abort support.
- agent_loop
- The core agent loop: prompt → LLM stream → tool execution → repeat.
- context
- Context window management — smart truncation and token counting.
- mcp
- MCP (Model Context Protocol) client support.
- provider
- retry
- Retry with exponential backoff and jitter for provider calls.
- skills
- Skills — load AgentSkills-compatible skill directories and inject into system prompts.
- sub_agent
- Sub-agent tool — delegates tasks to a child agent loop.
- tools
- types