pub struct TranscriptItem {
pub stable_id: String,
pub position: u64,
pub latest_content_event_ordinal: Option<u64>,
pub created_at_ms: i64,
pub last_changed_at_ms: i64,
pub body: TranscriptBody,
}Fields§
§stable_id: String§position: u64Ordinal of the relay event that first created this logical item.
latest_content_event_ordinal: Option<u64>Ordinal of the most recent content chunk for an agent message. This is
None for every other logical item.
created_at_ms: i64§last_changed_at_ms: i64§body: TranscriptBodyImplementations§
Source§impl TranscriptItem
impl TranscriptItem
pub fn is_session_restart(&self) -> bool
Sourcepub fn seq(&self) -> u64
pub fn seq(&self) -> u64
The relay ordinal a reader pages by.
An agent message is rewritten as its content streams in, and its
latest_content_event_ordinal is where that stopped, so paging by it
hands a caller the finished message once instead of the partial one it
was created with. Every other body is created once, so its position is
its sequence.
Sourcepub fn is_turn_start(&self) -> bool
pub fn is_turn_start(&self) -> bool
Whether this item begins a turn: a user message, or the marker for a turn the harness started on its own. The recovery boundary and the scope of a plan update both key on the newest of these.
pub fn is_nonempty_agent_message(&self) -> bool
pub fn validate(&self, through: u64) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for TranscriptItem
impl Clone for TranscriptItem
Source§fn clone(&self) -> TranscriptItem
fn clone(&self) -> TranscriptItem
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 TranscriptItem
impl Debug for TranscriptItem
Source§impl<'de> Deserialize<'de> for TranscriptItem
impl<'de> Deserialize<'de> for TranscriptItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TranscriptItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TranscriptItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TranscriptItem
impl PartialEq for TranscriptItem
Source§impl Serialize for TranscriptItem
impl Serialize for TranscriptItem
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TranscriptItem
Auto Trait Implementations§
impl Freeze for TranscriptItem
impl RefUnwindSafe for TranscriptItem
impl Send for TranscriptItem
impl Sync for TranscriptItem
impl Unpin for TranscriptItem
impl UnsafeUnpin for TranscriptItem
impl UnwindSafe for TranscriptItem
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
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<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> 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.