Skip to content

API reference

Generated from the source docstrings and type hints, so it is always in step with the code.

Package Contents
aaa.runtime Engine, RunHandle, Budget, Ledger, Ctx, the Algorithm protocol.
aaa.algos ToolLoop, ReAct, PlanAndExecute, Router, Supervisor, GenerateTestRepair, GeneratorCritic, WorkflowGraph, FSM, SelfConsistency, RAGAgent, and authoring helpers.
aaa.tools @tool, ToolRegistry, ToolHandler, ToolContext, the guard configuration.
aaa.llm Clients, gateway presets, wrappers, handler, fakes, message types, errors.
aaa.data Item, codecs, blob stores, Index.
aaa.session SessionManager, Session, TenantSessions, TurnResult, SessionAlgo.
aaa.context ContextPolicy, the compaction strategies, token counters, SummaryBook.
aaa.mcp MCPClient (stdio / HTTP / your own session), mcp_memory, MCPToolInfo.
aaa.memory The Memory protocol and capabilities, Scope, MemoryHandler, memory_tools, and the Mem0, Graphiti, Supermemory, LangGraph, native and callable backends.
aaa.events Event, stores, buses, projections and snapshots, schemas, CloudEvents, guards.
aaa.validate, aaa.core Validators; outcomes, errors, ids.

New to the library? Start with the mental model and the guides; this section is for lookup.