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

MessagesSnapshotEvent.md

20 lines608 Bytes

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

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[])

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

Extends

  • MessagesSnapshotEvent