Open History to see the last commit
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