pub struct Transcript { /* private fields */ }Expand description
Append-only writer for the readable transcript.
Implementations§
Source§impl Transcript
impl Transcript
Sourcepub async fn write_user_message(&self, content: &str)
pub async fn write_user_message(&self, content: &str)
Appends a user turn.
Sourcepub async fn write_assistant_text(&self, content: &str)
pub async fn write_assistant_text(&self, content: &str)
Appends an assistant turn. Empty content is skipped.
Sourcepub async fn write_tool_call(&self, name: &str, command: &str)
pub async fn write_tool_call(&self, name: &str, command: &str)
Appends the command a tool was invoked with.
Sourcepub async fn write_tool_result(&self, name: &str, result: &ToolResult)
pub async fn write_tool_result(&self, name: &str, result: &ToolResult)
Append a tool result block.
Sourcepub async fn write_compact_marker(&self)
pub async fn write_compact_marker(&self)
Marker written on compaction. Deliberately excludes the summary so the model knows context was lost and should recover from files.
Trait Implementations§
Source§impl Clone for Transcript
impl Clone for Transcript
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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