0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/interfaces/RunError.md
github-actions[bot] 5701bf5184
docs: regenerate API documentation (#1141)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-18 19:53:35 +02:00

1,003 B

id title
RunError RunError

Interface: RunError

Defined in: packages/ai/src/activities/chat/middleware/run-store.ts:99

Why a run failed.

A bare message is an LLM provider's prose: it changes between model versions and cannot be branched on. code is what a consumer switches over to decide whether to retry, escalate, or surface a specific UI.

Properties

code?

optional code?: string;

Defined in: packages/ai/src/activities/chat/middleware/run-store.ts:102

Stable, machine-branchable classification, when the provider supplies one.


message

message: string;

Defined in: packages/ai/src/activities/chat/middleware/run-store.ts:100