Skip to main content
This page is for the code path - signatures and endpoints, not explanations. To build an agent without code, start with Build your first agent. The reference pages are tables and signatures, not explanations. For why a feature exists and when to reach for it, start from Durable runs, AI, Agent kit, or Integrations; every reference page links back to its owner.

TypeScript SDK

Package and entry points

@duraton/sdk: install, imports, and the scoped entries for client-only and AI-only code.

Defining workflows

workflow: name, triggers, retry, flow control, and the optional step and tool manifests.

Steps

The StepContext and every step.* signature.

connect

Run a runner over an outbound WebSocket - no inbound URL.

REST client

createClient: events, runs, approvals, workflows, and errors.

AI steps

step.ai.generate, wrap, embed, loop, providers, cost, and the cache store.

REST API

Overview

Base URL, authentication, conventions, and the resource map.

Runs

List, filter, paginate, stream, and summarise runs; read steps, logs, and AI spend.

Events and workflows

Send events, read the event log, and trigger a workflow by hand.

Control

Cancel, pause, resume, replay, retry from a step, and the control-action audit log.

Approvals

Decide parked runs.

Webhooks, runners, limits

Deliveries and endpoints, apps and runners, rate limits and defaults.

Protocol

Protocol reference

How Duraton drives a runner: the endpoints, routing, and status codes.

Errors

Status codes, the 409 conflict table, and how the SDK surfaces them.