Skip to content
Browse documentation
typescript sdk

Agents

Compose model and Tool execution with explicit run state, context and application ownership.

Run application work, not your coding assistant

An Agent combines a definition with an execution runtime. The definition declares identity, instructions and available Tools; the runtime supplies Worker execution, inference and governance bindings.

Use an embedded runtime for single-process execution, or borrow a host-owned Worker when it needs an independent lifetime. Neither creates a universal application instance.

Add only the capabilities you need

Models can run without an Agent. Tools can be host-executed. Agent threads and application execution are optional Features, not requirements for a one-off run.

For assistants that edit your source code, use CLI MCP and Skills.