API Reference#

🚧 Early Access Documentation

This documentation is part of an early access release and is under active development. Many sections are still being written, edited, or reorganized. Expect inconsistencies, missing content, outdated references, and broken cross-links.

We welcome feedback! If you find issues or have suggestions, please open an issue on our GitHub page.

Complete technical reference for all public APIs in the Alpha Berkeley Framework. This is your authoritative source for classes, methods, functions, and their precise interfaces. See also the Developer Guides for learning-oriented content, then return here when you need specific implementation details.

🎯 API Learning Paths & Quick Navigation

Essential API Learning Path

  1. Base Components - BaseCapability and decorators

  2. State and Context Management - AgentState and ContextManager

  3. Gateway - Entry point architecture

  4. Human Approval - Safety and oversight

  5. Classification System - Robust error handling

Core API Patterns:

Advanced API Workflows

Production-Ready APIs:

Implementation Shortcuts

Build a new capabilityBaseCapability + capability_node()

Add approval workflowsApprovalManager + Human Approval

Execute Python code safelyPythonExecutorService

Store user contextContextManager + State and Context Management

Deploy with containerscontainer_manager + Container Management

Handle complex data flowsDataSourceManager

Integrate external dataDataSourceProvider + provider patterns

Manage LLM modelsget_model() + get_chat_completion()

Configure loggingget_logger() + ComponentLogger

Stream responsesget_streamer() + StreamWriter

Core Framework APIs

Infrastructure Pipeline APIs

Production & Error Management

Core API Sections#

🏗️ Core Framework

Essential daily-use APIs

State management, context handling, base components, registry system, and configuration APIs that developers use most frequently.

Core Framework
⚡ Infrastructure

Message processing pipeline

Gateway, task extraction, classification, orchestration, and execution control for building intelligent workflows.

Infrastructure
🚀 Production Systems

Production-ready services

Container management, data management, human approval systems, and deployment tools for building robust applications.

Production Systems
🛡️ Error Handling

Resilient error management

Exception hierarchy, recovery strategies, and error classification for building fault-tolerant systems.

Error Handling
🔧 Framework Utilities

Advanced utilities

Model factory, logging, streaming, and developer tools for extending and customizing framework behavior.

Framework Utilities
📚 Complete API Documentation Tree

🏗️ Core Framework

⚡ Infrastructure

🚀 Production Systems

🛡️ Error Handling

🔧 Framework Utilities