Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

StateSnapshotEvent

Interface: StateSnapshotEvent

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

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

ts
[k: string]: unknown
[k: string]: unknown

Properties

model?

ts
optional model: string;
optional model: string;

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

Model identifier for multi-model support


state?

ts
optional state: Record<string, unknown>;
optional state: Record<string, unknown>;

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

Deprecated

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