Core concepts of the AI Agents library
mainThe AI Agents library provides a framework for building multi-agent AI workflows using several interconnected abstractions:
- Agents: Immutable, thread-safe AI assistants defined by specific roles and capabilities.
- AgentRunner: A thread-safe execution manager responsible for managing multi-agent conversations.
- Context: A mechanism for serializable state management that persists across different agent interactions.
- Handoffs: A tool-based mechanism used to facilitate seamless transitions between different agents.
- Tools: Stateless extensions that allow agents to integrate with external systems.
- Callbacks: A system for receiving real-time notifications regarding agent reasoning (thinking), tool execution, and handoffs.
- AgentTool: A specialized mechanism for agent-to-agent collaboration that does not require a full conversation handoff.