pub struct MaterializedSessionMutation {
pub last_activity_at_ms: Option<i64>,
pub execution: Option<MaterializedExecutionState>,
pub session_title: Option<Option<String>>,
pub configuration: Option<BTreeMap<String, Value>>,
pub transcript: Vec<TranscriptMutation>,
pub queued_prompts: Option<Vec<MaterializedQueuedPrompt>>,
pub pending_elicitations: Option<Vec<ElicitationRequest>>,
pub active_turn: Option<Option<MaterializedTurn>>,
pub last_turn_outcome: Option<MaterializedTurnOutcome>,
pub config_results: Vec<(String, Option<String>)>,
pub provider_cost: Option<ProviderCost>,
pub api_events: Vec<ApiEventData>,
}Expand description
Changes derived from one relay event. None leaves a scalar untouched;
the nested option on session_title permits explicitly clearing it.
Fields§
§last_activity_at_ms: Option<i64>Relay receipt time for this event. Persistence and the actor cache both take a monotonic maximum so removing detail rows cannot move activity backwards.
execution: Option<MaterializedExecutionState>§session_title: Option<Option<String>>§configuration: Option<BTreeMap<String, Value>>§transcript: Vec<TranscriptMutation>§queued_prompts: Option<Vec<MaterializedQueuedPrompt>>§pending_elicitations: Option<Vec<ElicitationRequest>>§active_turn: Option<Option<MaterializedTurn>>The nested option distinguishes “unchanged” from “cleared”, which is how a completed turn removes the running turn.
last_turn_outcome: Option<MaterializedTurnOutcome>A finished turn is only ever replaced, never cleared.
config_results: Vec<(String, Option<String>)>§provider_cost: Option<ProviderCost>§api_events: Vec<ApiEventData>Trait Implementations§
Source§impl Clone for MaterializedSessionMutation
impl Clone for MaterializedSessionMutation
Source§fn clone(&self) -> MaterializedSessionMutation
fn clone(&self) -> MaterializedSessionMutation
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 MaterializedSessionMutation
impl Debug for MaterializedSessionMutation
Source§impl Default for MaterializedSessionMutation
impl Default for MaterializedSessionMutation
Source§fn default() -> MaterializedSessionMutation
fn default() -> MaterializedSessionMutation
Returns the “default value” for a type. Read more
impl StructuralPartialEq for MaterializedSessionMutation
Auto Trait Implementations§
impl Freeze for MaterializedSessionMutation
impl RefUnwindSafe for MaterializedSessionMutation
impl Send for MaterializedSessionMutation
impl Sync for MaterializedSessionMutation
impl Unpin for MaterializedSessionMutation
impl UnsafeUnpin for MaterializedSessionMutation
impl UnwindSafe for MaterializedSessionMutation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.