Repository navigation
LiteAgents 0.2.0 replaces the original public SDK with profiles and native agent harnesses: DeepAgents, Pydantic AI, Claude Agent SDK, Codex, and both OpenCode API generations.
Use one client for shared application tools, MCP, streaming, subagents, approvals, retries, and optional durable execution through Temporal. A simple agent requires neither Temporal nor PostgreSQL.
Install with Python 3.11+ (3.12 recommended):
python -m pip install 'liteagents[deepagents] @ https://github.com/BerriAI/liteagents/releases/download/v0.2.0/liteagents-0.2.0-py3-none-any.whl'Replace [deepagents] with [all] to install every Python harness and Temporal/MCP support. OpenCode additionally requires npm install -g opencode-ai@1.18.29; PostgreSQL support is a separate postgres extra. Use this release URL because the existing PyPI liteagents listing is a different package.
Getting started · JSON/YAML profiles · Cookbooks · Migration · Validation
This release defines explicit tool selection (None for defaults, [] for no tools), adapts shared tools/MCP automatically, normalizes tool names, and reports capabilities for the effective execution mode. Native model protocols and supported settings still differ by harness.
Direct queries share conversation history; Temporal submissions are independent jobs. Recovery reuses completed recorded operations; interrupted external effects require application idempotency. Finish existing durable runs on their original SDK version, and upgrade clients and workers together. The former API remains available under liteagents.legacy with the legacy extra.
Validation includes the full native/Temporal/PostgreSQL regression suite, live-provider checks across all six harnesses, real MCP transports, worker-crash recovery, and clean package installation. SHA256SUMS covers the attached wheel and source distribution.