pub struct SessionsReadPersistedEventsRequest {
pub cursor: Option<String>,
pub direction: Option<EventsReadDirection>,
pub max: Option<i64>,
pub session_id: SessionId,
}Expand description
Pagination options for reading an inactive or active local session’s persisted event journal.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§cursor: Option<String>Opaque, process-local, single-use cursor returned by the previous persisted-event read. Omit on the first call and issue continuations sequentially; reusing the same cursor returns an expired terminal page.
direction: Option<EventsReadDirection>Direction to page through persisted history. Forward starts at the beginning; backward starts with the newest events. Events in each page remain chronological. This selects the initial read only; a continuation always uses the direction bound into its cursor.
max: Option<i64>Maximum number of events to return in this batch (1–1000, default 200). Pages may contain fewer events to keep the serialized event array within a soft 1 MiB budget including resolved binary assets; one oversized event is returned alone to guarantee progress.
session_id: SessionIdSession ID whose persisted event journal should be read.