API reference

This reference is generated from the source every time the site is built, so it matches the code: Python from its docstrings and type hints, TypeScript from its declarations and doc comments, Rust from rustdoc.

Pages#

Python and TypeScript have one page per module, with a contents table, every parameter and field, return values, errors and examples. Each language has an overview: Python API, TypeScript API. Use the search box to find a name.

GroupModulePythonTypeScript
AgentsAgents: Agent, threads, streams, approvalsPythonTypeScript
ToolsPythonTypeScript
HooksPythonTypeScript
ErrorsPythonTypeScript
Usage and costPythonTypeScript
ModelsModels and providersPythonTypeScript
GatewayPythonTypeScript
Keys and environmentPythonTypeScript
Redactionn/aTypeScript
DataStorage and memoryPythonTypeScript
CollectionsPythonTypeScript
OrchestrationWorkflowsPythonTypeScript
PatternsPythonTypeScript
Specialist agentsPythonTypeScript
IntegrationsMCP serversPythonTypeScript
Web search and page readingPythonTypeScript
Quality and operationsTelemetryPythonTypeScript
Trace viewerPythonTypeScript
EvalsPythonTypeScript
Readiness checkPythonTypeScript

The Rust reference is rustdoc's own, one page per crate: see Rust API.

Where to start in each#

You wantPythonTypeScriptRust
An agentAgentAgent, AgentOptionscriogenai_agent::AgentBuilder
A tool@tool, ToolError, ToolContexttool(), ToolDefinition, ToolErrortool_fn, ToolSpec, ToolError
A conversationThread, ReplyThread, Reply, StreamThread, Reply, ThreadStream
StorageStorage, MemoryStorage, Memorycriogenai_storage::Storage, Memory
ModelsOpenAI, Anthropic, Gemini, Azure, Bedrock, Vertex, Ollama, OpenAICompatible, FakeModelopenai(), anthropic(), gemini(), azure(), bedrock(), vertex(), ollama(), FakeModelProviderModel, Endpoint, AzureModel, VertexModel, FakeModel
ErrorsCriogenError and subclassesCriogenError, isCriogenErrorAgentError, RunError, StorageError
WorkflowsWorkflow, CompiledWorkflow, WorkflowThreadWorkflow, CompiledWorkflow, WorkflowThreadcriogenai_core::WorkflowBuilder, Storage::workflow_thread
Patterns and specialistscriogenai.patterns, criogenai.specialistspatterns, specialistscriogenai_agent::patterns, criogenai_agent::specialists
Web search and page readingcriogenai.webwebcriogenai_agent::web (feature web)
Tools from MCP serverscriogenai.mcpmcpcriogenai_agent::mcp (feature mcp)
Documents searched by meaningCollectionCollectioncriogenai_agent::retrieval
Evalscriogenai.evalsevalscriogenai_agent::evals
The local trace viewercriogenai.traceserveTracescriogenai_trace
GatewayGatewayGatewaycriogenai_gateway::Gateway, Config

Once the crates are on crates.io, the Rust reference will also be on docs.rs.