pub struct SessionProjection {Show 18 fields
pub session_id: String,
pub profile_revision_id: String,
pub deleted: bool,
pub last_seq: u64,
pub active_run_id: Option<String>,
pub waiting_interaction_id: Option<String>,
pub messages: Vec<ProjectedMessage>,
pub injected_context: Vec<ProjectedContext>,
pub run_status: BTreeMap<String, String>,
pub open_tool_calls: BTreeMap<String, OpenToolCall>,
pub started_tool_calls: BTreeSet<String>,
pub queued_inputs: BTreeMap<String, (String, DeliveryMode)>,
pub claimed_inputs: BTreeMap<String, String>,
pub open_turn: Option<u32>,
pub open_steps: BTreeSet<u32>,
pub next_step: u32,
pub open_compaction: Option<(String, u64)>,
pub summary: Option<String>,
/* private fields */
}Fields§
§session_id: String§profile_revision_id: String§deleted: bool§last_seq: u64§active_run_id: Option<String>§waiting_interaction_id: Option<String>§messages: Vec<ProjectedMessage>§injected_context: Vec<ProjectedContext>§run_status: BTreeMap<String, String>§open_tool_calls: BTreeMap<String, OpenToolCall>§started_tool_calls: BTreeSet<String>§queued_inputs: BTreeMap<String, (String, DeliveryMode)>§claimed_inputs: BTreeMap<String, String>§open_turn: Option<u32>§open_steps: BTreeSet<u32>§next_step: u32§open_compaction: Option<(String, u64)>§summary: Option<String>Implementations§
Source§impl SessionProjection
impl SessionProjection
pub fn replay(events: &[SessionEvent]) -> Result<Self, EventError>
pub fn apply(&mut self, envelope: &SessionEvent) -> Result<(), EventError>
pub fn usage_for(&self, run_id: &str) -> (u64, u64)
pub fn billable_units_for(&self, run_id: &str) -> u64
Trait Implementations§
Source§impl Clone for SessionProjection
impl Clone for SessionProjection
Source§fn clone(&self) -> SessionProjection
fn clone(&self) -> SessionProjection
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 moreSource§impl Debug for SessionProjection
impl Debug for SessionProjection
Source§impl Default for SessionProjection
impl Default for SessionProjection
Source§fn default() -> SessionProjection
fn default() -> SessionProjection
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionProjection
impl PartialEq for SessionProjection
impl StructuralPartialEq for SessionProjection
Auto Trait Implementations§
impl Freeze for SessionProjection
impl RefUnwindSafe for SessionProjection
impl Send for SessionProjection
impl Sync for SessionProjection
impl Unpin for SessionProjection
impl UnsafeUnpin for SessionProjection
impl UnwindSafe for SessionProjection
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