Theo Docs
TheoKitTheoKit-SDKTheoUITheo PaaS
API reference

AgentRunError

Thrown by `Agent.prompt` (and helpers that go through `run.wait()`) when

AgentRunError

Auto-generated from TypeDoc on each build. Edit the JSDoc in packages/sdk/src/ to change this page.

Thrown by Agent.prompt (and helpers that go through run.wait()) when the option { throwOnError: true } is set and the run terminates with status: 'error'. Carries the structured RunResult.error fields so callers can catch once and branch on code / provider instead of unwrapping the run.

Extends TheokitAgentError per ADR D65 — no new hierarchy.

Signature

class AgentRunError {
  captureStackTrace(...): ...
  prepareStackTrace(...): ...
}

Kind

class

Source

packages/sdk/src/errors.ts:207

On this page