pub struct ContextCommit {Show 14 fields
pub tenant_id: TenantId,
pub trajectory_id: TrajectoryId,
pub scope_id: ScopeId,
pub agent_id: Option<AgentId>,
pub content: String,
pub mode: String,
pub query: Option<String>,
pub reasoning_trace: Option<Value>,
pub artifacts_referenced: Vec<ArtifactId>,
pub notes_referenced: Vec<NoteId>,
pub tools_invoked: Vec<String>,
pub tokens_input: i64,
pub tokens_output: i64,
pub metadata: Option<Value>,
}Expand description
Full context commit for PCP recall.
Unlike MemoryCommitCreated (lightweight audit stub), this payload carries
the full content needed for SQL-based recall via pcp_recall().
Fields§
§tenant_id: TenantId§trajectory_id: TrajectoryId§scope_id: ScopeId§agent_id: Option<AgentId>§content: StringThe response/context being committed.
mode: StringInteraction mode (e.g., “standard”, “deep_work”, “super_think”).
query: Option<String>The input query that produced this context.
reasoning_trace: Option<Value>§artifacts_referenced: Vec<ArtifactId>§notes_referenced: Vec<NoteId>§tools_invoked: Vec<String>§tokens_input: i64§tokens_output: i64§metadata: Option<Value>Trait Implementations§
Source§impl Clone for ContextCommit
impl Clone for ContextCommit
Source§fn clone(&self) -> ContextCommit
fn clone(&self) -> ContextCommit
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextCommit
impl Debug for ContextCommit
Source§impl<'de> Deserialize<'de> for ContextCommit
impl<'de> Deserialize<'de> for ContextCommit
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
Source§impl EventPayload for ContextCommit
impl EventPayload for ContextCommit
Auto Trait Implementations§
impl Freeze for ContextCommit
impl RefUnwindSafe for ContextCommit
impl Send for ContextCommit
impl Sync for ContextCommit
impl Unpin for ContextCommit
impl UnwindSafe for ContextCommit
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