pub struct SessionState {
pub agent_id: Option<String>,
pub transcript: Vec<TranscriptEntry>,
pub pending: HashMap<String, PendingToolCall>,
pub status: SessionStatus,
}Expand description
The derived state of one agent session: its transcript, outstanding tool calls, and status.
Fields§
§agent_id: Option<String>Set from this session’s own SessionStarted event, if it’s been
applied yet. None until then (or for a namespace that never
started a session at all).
transcript: Vec<TranscriptEntry>The reconstructed transcript in application order.
pending: HashMap<String, PendingToolCall>Tool calls seen without a matching result yet, keyed by call_id.
status: SessionStatusThe session’s lifecycle status.
Trait Implementations§
Source§impl Debug for SessionState
impl Debug for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more