pub struct RuntimeCommit {
pub session_id: String,
pub expected_head_revision: Option<u64>,
pub config: PersistedSessionConfig,
pub agent_frames: Vec<AgentFrameRecord>,
pub current_agent_frame_id: AgentFrameId,
pub graph: GraphCommitDelta,
pub checkpoint: HydratedSessionCheckpoint,
pub usage_deltas: Vec<TokenLedgerEntry>,
pub turn_commit: Option<RuntimeTurnCommitStamp>,
pub completed_queue_claims: Vec<QueuedWorkCompletion>,
pub committed_attachment_ids: Vec<AttachmentId>,
}Fields§
§session_id: String§expected_head_revision: Option<u64>§config: PersistedSessionConfig§agent_frames: Vec<AgentFrameRecord>§current_agent_frame_id: AgentFrameId§graph: GraphCommitDelta§checkpoint: HydratedSessionCheckpoint§usage_deltas: Vec<TokenLedgerEntry>§turn_commit: Option<RuntimeTurnCommitStamp>§completed_queue_claims: Vec<QueuedWorkCompletion>§committed_attachment_ids: Vec<AttachmentId>Attachment ids whose bytes are referenced by this commit and
should be stamped committed in the write-ahead manifest as
part of the same SQL transaction. The backend marks each id
committed via AttachmentManifest::commit_refs before the
commit returns success. Hosts populate this from the
attachments emitted by tool calls and inline LLM-request
attachments produced during the turn.
Implementations§
Source§impl RuntimeCommit
impl RuntimeCommit
pub fn turn_commit_hash(&self) -> Result<String, StoreError>
pub fn persisted_state( state: &RuntimeSessionState, usage_deltas: &[TokenLedgerEntry], ) -> Self
pub fn with_turn_commit(self, turn_commit: RuntimeTurnCommitStamp) -> Self
pub fn completing_queue_claim( self, completed_queue_claim: QueuedWorkCompletion, ) -> Self
pub fn completing_queue_claims( self, completed_queue_claims: impl IntoIterator<Item = QueuedWorkCompletion>, ) -> Self
pub fn with_committed_attachments( self, attachment_ids: impl IntoIterator<Item = AttachmentId>, ) -> Self
Trait Implementations§
Source§impl Clone for RuntimeCommit
impl Clone for RuntimeCommit
Source§fn clone(&self) -> RuntimeCommit
fn clone(&self) -> RuntimeCommit
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 RuntimeCommit
impl Debug for RuntimeCommit
Source§impl<'de> Deserialize<'de> for RuntimeCommit
impl<'de> Deserialize<'de> for RuntimeCommit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeCommit
impl RefUnwindSafe for RuntimeCommit
impl Send for RuntimeCommit
impl Sync for RuntimeCommit
impl Unpin for RuntimeCommit
impl UnsafeUnpin for RuntimeCommit
impl UnwindSafe for RuntimeCommit
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