Loading...
Loading...
Use the unified Opper SDKs (`opperai` package for both Python and TypeScript, with built-in agent support) for AI task completion, structured output with Pydantic / Zod / JSON Schema, knowledge base semantic search, streaming, tracing, tool use, and multi-agent composition. Use this skill whenever the user is writing Python or TypeScript code that imports `opperai`, builds an Opper agent, or asks how to do anything Opper-related in code — even if they don't explicitly name the SDK. Both languages live in one repo with parallel numbered examples; agents are part of the SDK, not a separate package.
npx skill4agent add opper-ai/opper-skills opper-sdksopperaiopperai-agentspython/README.mdtypescript/README.mdopperaiopper.call(...)output_schema=outputSchema:opper.stream(...)Conversationopperaiopper.call(...)AgenttoolConversationHooksmcpagent.run(...)agent.stream(...)opperaibaseURLbase_urlhttps://api.opper.ai/v3/compatopper-apiopper.knowledge.*createqueryadd| You are… | Read |
|---|---|
| Writing Python (calls, streaming, schemas, knowledge, tracing) | references/python.md |
| Writing TypeScript / JavaScript | references/typescript.md |
| Building an agent in either language | references/agents.md |
| Calling Opper without an SDK (curl, fetch) | switch to the |
pip install opperai # Python — has one runtime dep: httpx
npm install opperai # TypeScript — zero runtime deps; zod and @modelcontextprotocol/sdk are optional peersOPPER_API_KEYapi_key=apiKey:from opperai import Opper
opper = Opper() # uses OPPER_API_KEY
result = opper.call(
"summarise",
instructions="Summarise the article in two sentences.",
input={"text": "..."},
)
print(result.data)import { Opper } from "opperai";
const opper = new Opper(); // uses OPPER_API_KEY
const result = await opper.call("summarise", {
instructions: "Summarise the article in two sentences.",
input: { text: "..." },
});
console.log(result.data);python/examples/typescript/examples/examples/getting-started/| Topic | File pattern |
|---|---|
| First call | |
| Schemas — Pydantic / Zod / dataclass / TypedDict / raw JSON Schema | |
| Streaming | |
| Tools — call & stream | |
| Images, audio, video | |
| Embeddings | |
| Function management | |
| Observability / tracing | |
| Models | |
| Real-time | TS-only: |
| Knowledge base | |
| Web tools | |
examples/agents/00..10python/src/opperai/types.pytypescript/src/types.tsnpm install zod@4zod@3.25.xhttpxopperaiopperai-agents@opperai/agentsAgenttoolConversationHooksopperaipython/MIGRATION.mdtypescript/MIGRATION.mdhttps://api.opper.ai/v3/openapi.yaml| For | Look at |
|---|---|
| Install, quick start, full READMEs | opper-sdks repo — |
| Working examples (numbered, progressive) | |
| Type definitions | |
| Live API spec | |
| Migrating from older SDK versions | |
| Repo-level workflows (OpenAPI sync, beta endpoints) | |
| Models available, gateway concepts, raw HTTP | the |
| Calling Opper from a terminal | the |