Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 3.01 KB

File metadata and controls

82 lines (54 loc) · 3.01 KB

Core Components

This directory contains the core components of the atomic agents framework. These components provide the foundation for building and orchestrating agents.

Components

Agent Base

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

Learn more about Agent Base

Adapters

The Adapters component provides bidirectional adapters for integrating atomic-agents with our existing agent architecture.

Features:

  • AtomicAgentAdapter: Wraps atomic-agents to work in our framework
  • LegacyAgentAdapter: Wraps our agents to work in the atomic-agents framework
  • Bidirectional message conversion between frameworks

Factory

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

Messaging

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

Learn more about Messaging

Orchestration

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

Architecture

The core components work together to provide a flexible and extensible framework for building agent-based systems:

  1. Agent Base defines the interface that all agents must implement
  2. Adapters provide bidirectional integration with atomic-agents
  3. Factory simplifies the creation of agents
  4. Messaging enables communication between agents
  5. 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.

Extending the Core

To extend the core components, you can:

  1. Create new agent types by inheriting from BaseAgent
  2. Register new agent types with the AgentFactory
  3. Create adapters for new external agent frameworks
  4. Extend the messaging system with new message types or delivery mechanisms
  5. 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.