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

StateSnapshotEvent.md

50 lines1020 Bytes

Interface: StateSnapshotEvent

Defined in: packages/typescript/ai/src/types.ts:1118

Emitted to provide a full state snapshot.

@ag-ui/core provides: snapshot (any) TanStack AI adds: model?, state? (deprecated alias for snapshot)

Extends

  • StateSnapshotEvent

Indexable

[k: string]: unknown

Properties

model?

optional model: string;

Defined in: packages/typescript/ai/src/types.ts:1120

Model identifier for multi-model support


state?

optional state: Record<string, unknown>;

Defined in: packages/typescript/ai/src/types.ts:1125

Deprecated

Use snapshot instead (from @ag-ui/core spec). Kept for backward compatibility.