This directory contains the core components of the atomic agents framework. These components provide the foundation for building and orchestrating agents.
The Agent Base component provides the base classes and interfaces for implementing agents. All agents in the framework inherit from the BaseAgent abstract base class.
Features:
- Abstract base class for agents
- Lifecycle management (initialize, process, shutdown)
- State management
The Adapters component provides bidirectional adapters for integrating atomic-agents with our existing agent architecture.
Features:
AtomicAgentAdapter: Wraps atomic-agents to work in our frameworkLegacyAgentAdapter: Wraps our agents to work in the atomic-agents framework- Bidirectional message conversion between frameworks
The Factory component provides factory classes for simplified agent creation.
Features:
AgentFactory: Factory for creating both legacy and atomic agents- Registration mechanism for new agent types
- Simplified agent instantiation
The Messaging component provides the infrastructure for inter-agent communication. It includes a message class and a message broker for routing messages between agents.
Features:
- Message class for structured communication
- Message broker for routing messages
- Support for direct and broadcast messaging
- Integration with atomic-agents messaging
The Orchestration component provides tools for coordinating multiple agents. It includes an orchestrator class that can register agents and execute workflows.
Features:
- Agent registration and management
- Workflow definition and execution
- Inter-agent communication coordination
- Integration with atomic-agents orchestration
Learn more about Orchestration
The core components work together to provide a flexible and extensible framework for building agent-based systems:
- Agent Base defines the interface that all agents must implement
- Adapters provide bidirectional integration with atomic-agents
- Factory simplifies the creation of agents
- Messaging enables communication between agents
- Orchestration coordinates the execution of agents in workflows
This architecture allows for the creation of specialized agents that can be composed to perform complex tasks.
To extend the core components, you can:
- Create new agent types by inheriting from
BaseAgent - Register new agent types with the
AgentFactory - Create adapters for new external agent frameworks
- Extend the messaging system with new message types or delivery mechanisms
- Enhance the orchestration system with new workflow patterns or execution strategies
When extending the core, make sure to maintain compatibility with the existing components and follow the established patterns.