opper-sdks
Installation
SKILL.md
Opper SDKs
The Python and TypeScript SDKs for Opper live in a single monorepo: github.com/opper-ai/opper-sdks. Both publish as opperai (PyPI / npm). Agents are part of the SDK — there is no separate opperai-agents package.
The upstream READMEs (python/README.md, typescript/README.md) and the numbered example files are the source of truth. This skill points at them; it does not duplicate them.
Pick your primitive
The unified opperai package exposes a few different shapes. Pick by what you're building:
- One-shot structured task (input → typed output, including image / audio / video generation):
opper.call(...)is recommended. Passoutput_schema=(Python) oroutputSchema:(TS) — Pydantic / Zod / dataclasses / TypedDict / raw JSON Schema all work. - Streaming any of the above:
opper.stream(...)— same shape, async-iterable of typed chunks. - Multi-turn chat or message-thread style:
Conversation(re-exported fromopperai) — keeps history acrossopper.call(...)invocations. - Tool-using agent, multi-step reasoning, multi-agent, MCP: the Agent SDK (
Agent,tool,Conversation,Hooks,mcp) is recommended for any "model decides what to do next" flow. Useagent.run(...)for a single shot oragent.stream(...)for live progress. - Drop-in compatibility with OpenAI / Anthropic / Google SDKs: not exposed through the
opperaiSDK. Recommended: call the compat endpoints directly through the provider's own SDK (point itsbaseURL/base_urlathttps://api.opper.ai/v3/compat), or see theopper-apiskill for raw HTTP. - Knowledge bases / RAG:
opper.knowledge.*—create,query,add, etc.
Pick a path
Related skills