The Opper Agent SDK is part of the unifiedDocumentation Index
Fetch the complete documentation index at: https://docs.opper.ai/llms.txt
Use this file to discover all available pages before exploring further.
opperai SDK and is available for Python and TypeScript with a matching API.
On the standalone
opper-agents (Python) or @opperai/agents (TypeScript) package? See Migration & legacy SDKs for the upgrade path and links to the legacy repos.Source
opper-ai/opper-sdks — full source for both languages.Working examples
11 numbered examples per language. Each one runs against the live API.
| Language | Package | Imports | Examples |
|---|---|---|---|
| Python | opperai | from opperai.agent import Agent, tool, Hooks | python/examples/agents/ |
| TypeScript | opperai | import { Agent, tool } from "opperai" | typescript/examples/agents/ |
What an agent is
An agent runs a think → act → observe loop:- Think — the LLM is given the goal, instructions, and available tools, and decides what to do next.
- Act — if the model called a tool, the SDK executes it and feeds the result back.
- Loop — repeat until the model produces a final answer (and validates it against
output_schemaif set).
Minimal agent
What’s in the box
| Pattern | Page | Source example |
|---|---|---|
| Tools | Tools | 02_agent_with_tools |
| Structured output | Structured output | 01_agent_with_schema |
| Streaming | Streaming | 03_streaming |
| Lifecycle hooks | Hooks | 04_hooks_logging, 05_hooks_timing |
| Multi-agent | Multi-agent | 07_agent_as_tool, 08_multi_agent |
| Multi-turn | Conversation | 10_conversation |
| MCP | MCP | 09_mcp_stdio |
When to use it
Reach for the Agent SDK when the work involves choosing between tools, chaining steps based on intermediate results, or coordinating multiple specialists. For a single deterministic LLM call, useopper.call() directly.