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

StateSnapshotEvent

Interface: StateSnapshotEvent

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

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

Model identifier for multi-model support


state?

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

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

Deprecated

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