pub struct TurnRecord {
pub turn_index: usize,
pub assistant_message: AssistantMessage,
pub tool_calls: Vec<RecordedToolCall>,
pub tool_results: Vec<ToolResultMessage>,
pub duration: Duration,
}Expand description
A single recorded turn from an agent run.
Fields§
§turn_index: usizeZero-based index of this turn within the run.
assistant_message: AssistantMessageThe assistant message produced during this turn.
tool_calls: Vec<RecordedToolCall>Tool calls made during this turn (in execution order).
tool_results: Vec<ToolResultMessage>Tool results returned during this turn.
duration: DurationWall-clock duration of this turn.
Trait Implementations§
Source§impl Clone for TurnRecord
impl Clone for TurnRecord
Source§fn clone(&self) -> TurnRecord
fn clone(&self) -> TurnRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 TurnRecord
impl Debug for TurnRecord
Source§impl<'de> Deserialize<'de> for TurnRecord
impl<'de> Deserialize<'de> for TurnRecord
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
Auto Trait Implementations§
impl Freeze for TurnRecord
impl RefUnwindSafe for TurnRecord
impl Send for TurnRecord
impl Sync for TurnRecord
impl Unpin for TurnRecord
impl UnsafeUnpin for TurnRecord
impl UnwindSafe for TurnRecord
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