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

StateSnapshotEvent.md

50 lines954 Bytes

Interface: StateSnapshotEvent

Defined in: packages/ai/src/types.ts:1310

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/ai/src/types.ts:1312

Model identifier for multi-model support


state?

optional state: Record<string, unknown>;

Defined in: packages/ai/src/types.ts:1317

Deprecated

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