pub struct ChatEntry {Show 23 fields
pub start_seq: u64,
pub seq: u64,
pub role: ChatRole,
pub text: String,
pub recorded_at_ms: Option<i64>,
pub tool_ended_at_ms: Option<i64>,
pub revision: u64,
pub message_id: Option<String>,
pub incoming_message: Option<Box<MailboxEvent>>,
pub tool_call_id: Option<String>,
pub tool_status: Option<ToolStatus>,
pub tool_summary: Option<String>,
pub tool_presentation: Option<ToolCallPresentation>,
pub tool_input: Option<Value>,
pub tool_error: Option<String>,
pub tool_content: Vec<String>,
pub tool_diffstats: Vec<String>,
pub tool_locations: Vec<String>,
pub plan: Vec<PlanLine>,
pub leading_omitted: bool,
pub raw_only: bool,
pub ended_after_interrupt: bool,
pub source: TranscriptSource,
}Fields§
§start_seq: u64§seq: u64§role: ChatRole§text: String§recorded_at_ms: Option<i64>§tool_ended_at_ms: Option<i64>When a finished tool call last changed, which is when it ended.
None for a call still running and for every other role.
revision: u64§message_id: Option<String>§incoming_message: Option<Box<MailboxEvent>>§tool_call_id: Option<String>§tool_status: Option<ToolStatus>§tool_summary: Option<String>Compact label used by Rich and browser projections. text remains the
original provider title for Raw mode.
tool_presentation: Option<ToolCallPresentation>Selected bounded source retained so partial ACP updates can preserve a raw-command-derived summary without retaining arbitrary raw JSON.
tool_input: Option<Value>ACP arguments, kept separately so result updates cannot erase them.
tool_error: Option<String>A diagnostic reported in ACP rawOutput.error, kept separate from
textual tool content so partial result updates can replace it.
tool_content: Vec<String>§tool_diffstats: Vec<String>§tool_locations: Vec<String>§plan: Vec<PlanLine>§leading_omitted: bool§raw_only: boolDetail the decluttered feed leaves out: the entry renders only in the raw transcript mode. Set once, when the entry is built, because Alt-T switches render mode without rebuilding entries.
ended_after_interrupt: boolA completed tool call whose turn was interrupted while it ran. The harness kept the command going and it ended later on its own, so its completion is not the agent’s finished work.
source: TranscriptSourceThe materialized transcript item this entry was derived from, when it came from the controller’s projection. Provenance only, so it is neither serialized nor part of the entry’s value.
Implementations§
Source§impl ChatEntry
impl ChatEntry
pub fn received_message(seq: u64, event: &MailboxEvent) -> ChatEntry
Sourcepub fn is_session_restart(&self) -> bool
pub fn is_session_restart(&self) -> bool
Whether this entry is the durable marker emitted when a session’s control plane restarts. The source identity is authoritative for materialized entries; the role/text check also covers entries built from older worker snapshots that have no materialized source handle.
Whether this entry is a message the user wrote, including an answer
to an agent’s question. Prompts that Mjolnir submits on the user’s
behalf are excluded: every crate::continuation::GeneratedPrompt
and text marked as generated. Authorization evidence asks the same
two predicates, so the two cannot disagree.
pub fn plan(seq: u64, plan: Vec<PlanLine>) -> ChatEntry
pub fn touch(&mut self, seq: u64)
pub fn with_recorded_at(self, recorded_at_ms: Option<i64>) -> ChatEntry
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatEntry
impl<'de> Deserialize<'de> for ChatEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ChatEntry
Source§impl Serialize for ChatEntry
impl Serialize for ChatEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ChatEntry
Auto Trait Implementations§
impl Forget for ChatEntry
impl Freeze for ChatEntry
impl Move for ChatEntry
impl RefUnwindSafe for ChatEntry
impl Send for ChatEntry
impl Sync for ChatEntry
impl Unpin for ChatEntry
impl UnsafeUnpin for ChatEntry
impl UnwindSafe for ChatEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.