pub struct EventLogReadRequest {
pub agent_scope: Option<EventsAgentScope>,
pub cursor: Option<String>,
pub max: Option<i64>,
pub types: Option<Value>,
pub wait_ms: Option<i32>,
}Expand description
Cursor, batch size, and optional long-poll/filter parameters for reading session events.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§agent_scope: Option<EventsAgentScope>Agent-scope filter: ‘primary’ returns only main-agent events plus events whose type starts with ‘subagent.’ (matching the typed-subscription default behavior); ‘all’ returns events from all agents (matching wildcard-subscription behavior). Default is ‘all’ to preserve wildcard semantics for catch-up callers.
cursor: Option<String>Opaque cursor returned by a previous read. Omit on the first call to start from the beginning of the session’s persisted history.
max: Option<i64>Maximum number of events to return in this batch (1–1000, default 200).
types: Option<Value>Either ‘*’ to receive all event types, or a non-empty list of event types to receive
wait_ms: Option<i32>Milliseconds to wait for new events when the cursor is at the tail of history. 0 (default) returns immediately even if no events are available. Capped at 30000ms. Ephemeral events that arrive during the wait are delivered in this batch but are NOT replayable on a subsequent read (use a non-zero waitMs in your next call to capture future ephemerals as they happen).
Trait Implementations§
Source§impl Clone for EventLogReadRequest
impl Clone for EventLogReadRequest
Source§fn clone(&self) -> EventLogReadRequest
fn clone(&self) -> EventLogReadRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more