pub struct TranscriptEntry {
pub role: TranscriptRole,
pub text: String,
pub tool_calls: Vec<TranscriptToolCall>,
}Expand description
One turn-or-message in a flattened, user-visible transcript.
Produced by Agent::transcript — includes tool-call activity
so restored sessions show what the agent did, not just what it said.
Fields§
§role: TranscriptRoleWho sent this message.
text: StringThe textual content of the message.
tool_calls: Vec<TranscriptToolCall>Tool calls made during this turn (assistant only).
Trait Implementations§
Source§impl Clone for TranscriptEntry
impl Clone for TranscriptEntry
Source§fn clone(&self) -> TranscriptEntry
fn clone(&self) -> TranscriptEntry
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 TranscriptEntry
impl Debug for TranscriptEntry
Source§impl<'de> Deserialize<'de> for TranscriptEntry
impl<'de> Deserialize<'de> for TranscriptEntry
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 PartialEq for TranscriptEntry
impl PartialEq for TranscriptEntry
Source§fn eq(&self, other: &TranscriptEntry) -> bool
fn eq(&self, other: &TranscriptEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TranscriptEntry
impl Serialize for TranscriptEntry
impl StructuralPartialEq for TranscriptEntry
Auto Trait Implementations§
impl Freeze for TranscriptEntry
impl RefUnwindSafe for TranscriptEntry
impl Send for TranscriptEntry
impl Sync for TranscriptEntry
impl Unpin for TranscriptEntry
impl UnsafeUnpin for TranscriptEntry
impl UnwindSafe for TranscriptEntry
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