Skip to main content
The Python SDK is the primary way to integrate DecimalAI into your agent code. It wraps every public REST endpoint, auto-instruments 8 agent framework integrations plus 3 direct LLM provider SDKs (OpenAI, Anthropic, Google) — including native plugins for Google ADK and Anthropic’s Claude Agent SDK — and ships zero-config helpers for tracing, evaluation, and dataset export.

Sections

Init & Setup

decimalai.init(), environment variables, framework flags.

Tracing

@trace, start_trace, log_llm_call, log_tool_call, @tool.

Manifests

register_manifest, flush_manifest_for_ci.

Evaluations

eval, score, get_eval_breakdown, batch_eval, @eval, external imports.

Replay & Experiments

get_replay_prompts, create_replay_batch, get_replay_batch.

Datasets & Training

pull_dataset, push_to_hub, load_hf_dataset.

Framework Instrumentation

8 framework integrations — OpenAI Agents, LangChain, LlamaIndex, CrewAI, AutoGen, generic OTel, plus native plugins for Google ADK and Anthropic Claude Agent SDK.

Skills

Sync from disk, pull from platform, SkillRouter CRUD.

Complete API Summary

Top-level functions (in decimalai)

Grouped by surface. Every function below is importable directly from decimalai.

Framework instrumentation (subpackages)

8 framework integrations. Google ADK and Anthropic’s Claude Agent SDK use native plugins (not OTel).

Class-based clients

REST-only endpoints

For endpoints that don’t yet have a top-level SDK wrapper (list_datasets, get_trace_stats, get_manifest, repair preview/apply, compatibility policy set, etc.), use httpx directly against the REST API:
See the API Reference for the full endpoint registry.