pub struct SessionReadView(/* private fields */);Implementations§
Source§impl SessionReadView
impl SessionReadView
pub fn from_snapshot(snapshot: &SessionSnapshot) -> Self
pub fn from_persisted_state(state: &RuntimeSessionState) -> Self
pub fn session_graph(&self) -> &SessionGraph
pub fn session_id(&self) -> &str
pub fn policy(&self) -> &SessionPolicy
pub fn materialized_session_graph(&self) -> SessionGraph
pub fn messages(&self) -> &[Message]
pub fn active_events(&self) -> &[SessionEventRecord] ⓘ
pub fn chronological_projection(&self) -> ChronologicalProjection
pub fn message_tree(&self) -> Vec<SessionMessageTreeNode>
pub fn turn_index(&self) -> usize
pub fn token_usage(&self) -> &TokenUsage
pub fn last_prompt_usage(&self) -> Option<&PromptUsage>
pub fn protocol_turn_options(&self) -> &ProtocolTurnOptions
pub fn to_snapshot(&self) -> SessionSnapshot
Trait Implementations§
Source§impl Clone for SessionReadView
impl Clone for SessionReadView
Source§fn clone(&self) -> SessionReadView
fn clone(&self) -> SessionReadView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionReadView
impl RefUnwindSafe for SessionReadView
impl Send for SessionReadView
impl Sync for SessionReadView
impl Unpin for SessionReadView
impl UnsafeUnpin for SessionReadView
impl UnwindSafe for SessionReadView
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