pub struct AgentIterationTrace {
pub steps: Vec<AgentIterationStep>,
}Expand description
Compact run iteration trace for debuggers, CLIs, and durable service UIs.
Fields§
§steps: Vec<AgentIterationStep>Iteration steps derived from stream records.
Implementations§
Source§impl AgentIterationTrace
impl AgentIterationTrace
Sourcepub fn from_stream_records(records: &[AgentStreamRecord]) -> Self
pub fn from_stream_records(records: &[AgentStreamRecord]) -> Self
Build an iteration trace from recorded stream events.
Sourcepub fn steps(&self) -> &[AgentIterationStep]
pub fn steps(&self) -> &[AgentIterationStep]
Return all iteration steps.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Return whether the trace includes a completed run.
Trait Implementations§
Source§impl Clone for AgentIterationTrace
impl Clone for AgentIterationTrace
Source§fn clone(&self) -> AgentIterationTrace
fn clone(&self) -> AgentIterationTrace
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 AgentIterationTrace
impl Debug for AgentIterationTrace
Source§impl Default for AgentIterationTrace
impl Default for AgentIterationTrace
Source§fn default() -> AgentIterationTrace
fn default() -> AgentIterationTrace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentIterationTrace
impl<'de> Deserialize<'de> for AgentIterationTrace
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
impl Eq for AgentIterationTrace
Source§impl PartialEq for AgentIterationTrace
impl PartialEq for AgentIterationTrace
Source§fn eq(&self, other: &AgentIterationTrace) -> bool
fn eq(&self, other: &AgentIterationTrace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentIterationTrace
impl Serialize for AgentIterationTrace
impl StructuralPartialEq for AgentIterationTrace
Auto Trait Implementations§
impl Freeze for AgentIterationTrace
impl RefUnwindSafe for AgentIterationTrace
impl Send for AgentIterationTrace
impl Sync for AgentIterationTrace
impl Unpin for AgentIterationTrace
impl UnsafeUnpin for AgentIterationTrace
impl UnwindSafe for AgentIterationTrace
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