API Reference

This section contains the API reference for all public modules and classes in Atomic Agents.

Core Components

The Atomic Agents framework is built around several core components that work together to provide a flexible and powerful system for building AI agents.

Agents

The agents module provides the base classes for creating AI agents:

  • BaseAgent: The foundational agent class that handles interactions with LLMs

  • BaseAgentConfig: Configuration class for customizing agent behavior

  • BaseAgentInputSchema: Standard input schema for agent interactions

  • BaseAgentOutputSchema: Standard output schema for agent responses

Learn more about agents

Components

The components module contains essential building blocks:

  • AgentMemory: Manages conversation history and state with support for:

    • Message history with role-based messages

    • Turn-based conversation tracking

    • Multimodal content

    • Serialization and persistence

    • Memory size management

  • SystemPromptGenerator: Creates structured system prompts with:

    • Background information

    • Processing steps

    • Output instructions

    • Dynamic context through context providers

  • SystemPromptContextProviderBase: Base class for creating custom context providers that can inject dynamic information into system prompts

Learn more about components

Utils

The utils module provides helper functions and utilities:

  • Message formatting

  • Tool response handling

  • Schema validation

  • Error handling

Learn more about utilities

Getting Started

For practical examples and guides on using these components, see: