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

MessagesSnapshotEvent

Interface: MessagesSnapshotEvent

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

Emitted to provide a snapshot of all messages in a conversation.

Unlike StateSnapshot (which carries arbitrary application state), MessagesSnapshot specifically delivers the conversation transcript.

@ag-ui/core provides: messages (as @ag-ui/core Message[]) TanStack AI adds: model?

Note: The messages field uses the @ag-ui/core Message type. Use converters to transform to/from TanStack UIMessage format.

Extends

  • MessagesSnapshotEvent

Indexable

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

Properties

model?

ts
optional model: string;
optional model: string;

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

Model identifier for multi-model support