DurabilityOptions
The durability options of a session.
import type { DurabilityOptions } from '@threadplane/ag-ui';Declaration
export interface DurabilityOptions {
readonly persistence?: SessionPersistence;
readonly replay?: ReplaySource;
}Members
persistence
Application-owned durable storage. The session saves its thread after
every run and before it sends an answer, and restores it on creation.
Requires a threadId the application chose.
readonly persistence?: SessionPersistence;replay
Loads the thread's AG-UI events from the server when the session is
created. Replay wins whenever it returns at least one event; an empty
result, a failure, or events that cannot be folded fall back to
persistence, or to the thread the session was created with. A failed
replay never rejects ready.
readonly replay?: ReplaySource;