Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

RunError.md

34 lines980 Bytes

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