pub struct Speech {
pub turn_number: usize,
pub role: Role,
pub timestamp: Timestamp,
pub model: Option<String>,
pub effort: Option<String>,
pub blocks: Vec<Block>,
pub usage: Option<Usage>,
pub is_sidechain: bool,
}Expand description
One speaker’s contribution as displayed.
Fields§
§turn_number: usizeThe 1-based position of this panel’s leading turn in the raw stream. Gaps between successive panels mark turns that were folded in or dropped, so a panel that spans several turns still has one stable label.
role: Role§timestamp: Timestamp§model: Option<String>§effort: Option<String>How hard the model was asked to think, where the harness records it.
blocks: Vec<Block>§usage: Option<Usage>What the panel’s leading turn cost. The tool-result turns folded in carry none of their own: the assistant turn that called the tool is where the harness records what the exchange cost.
is_sidechain: boolTrue for panels belonging to a subagent running inside this session.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Speech
impl RefUnwindSafe for Speech
impl Send for Speech
impl Sync for Speech
impl Unpin for Speech
impl UnsafeUnpin for Speech
impl UnwindSafe for Speech
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> 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 more