Skip to content

TurnTimeoutError

Thrown when a turn or model call exceeds its time limit.

new TurnTimeoutError(timeoutMs, scope): TurnTimeoutError

number

"turn" | "model"

TurnTimeoutError

AgentExpressError.constructor

readonly optional cause?: Error

Original error that caused this one, if any.

AgentExpressError.cause


code: string

Machine-readable error code (e.g., “ABORT”, “RATE_LIMIT”, “TOOL_DENIED”).

AgentExpressError.code


readonly retryable: boolean

Whether this error can be retried by retry middleware.

AgentExpressError.retryable


readonly scope: "turn" | "model"

Whether this was a turn timeout or model call timeout.


readonly timeoutMs: number

Timeout that was exceeded, in milliseconds.