Skip to main content
The Corti Agent SDK is in alpha v2 private preview. The API surface may change between releases, and the Python package is still being rebuilt for v2 parity. Do not use it in production without a dedicated support arrangement. Contact help@corti.ai to request access.
The Corti Agent SDK (@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, and schema (TypeScript only) connectors with typed factory helpers
  • Multi-agent composition: deterministic workflow pipelines, parallel fan-out, and stateGraph routing 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 fetch and AsyncIterable)
  • Python: Python 3.9 or later
The TypeScript package is ESM-only. For CommonJS projects, use dynamic 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.