@corti/agent-sdk for TypeScript, corti-agent-sdk for Python) is a developer-friendly wrapper for building multi-agent systems on the Agentic Framework v2 API. The TypeScript package is the v2 reference implementation. The Python package is being rebuilt for v2 parity; until then, the two may differ in available features.
The TypeScript package is built on openapi-ts with openapi-fetch as its only runtime dependency. The Python package uses httpx with async/await.
What it provides
- Agent lifecycle: create, list, get, update, and delete agents via typed resource clients
- A2A messaging: send messages, stream responses, and manage conversation contexts with automatic context ID tracking
- Connector factories: build
registry,mcp,agent,a2a, andschema(TypeScript only) connectors with typed factory helpers - Multi-agent composition: deterministic
workflowpipelines,parallelfan-out, andstateGraphrouting with cycles and typed shared state - Structured errors: typed error classes (
CortiError,ManagementError,HttpError,A2AError) for both management and A2A planes - Extended resources: contexts, registry, usage, feedback, agent cards, and models
Prerequisites
- A Corti API tenant with credentials
- TypeScript: Node.js 18 or later (uses native
fetchandAsyncIterable) - Python: Python 3.9 or later
import() or set your project to ESM.
Install
Quick example
Decision guide
Rule of thumb: start with
workflow. Only reach for stateGraph when you need cycles or branching that depends on accumulated state.
Next steps
Core concepts
Learn about the client, agents, contexts, connectors, message responses, and streaming.
Multi-agent composition
Build workflows, fan out in parallel, and route with state graphs.
API reference
Full method and type reference for both languages.
Common pitfalls
Avoid the most frequent mistakes when using the SDK.