pub struct AgentStep {
pub id: Uuid,
pub timestamp: DateTime<Utc>,
pub reasoning: Option<ReasoningBlock>,
pub message: Option<MessageBlock>,
pub tools: Vec<ToolExecution>,
pub usage: Option<TokenUsagePayload>,
pub is_failed: bool,
pub status: StepStatus,
}Fields§
§id: Uuid§timestamp: DateTime<Utc>§reasoning: Option<ReasoningBlock>Reasoning (CoT)
message: Option<MessageBlock>Text message (answer to user, or declaration of tool execution)
tools: Vec<ToolExecution>Tool execution pairs (Call + Result) Calls are generated in Phase 1, but managed here as pairs with Results
usage: Option<TokenUsagePayload>§is_failed: bool§status: StepStatusTrait Implementations§
Source§impl<'de> Deserialize<'de> for AgentStep
impl<'de> Deserialize<'de> for AgentStep
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 AgentStep
impl RefUnwindSafe for AgentStep
impl Send for AgentStep
impl Sync for AgentStep
impl Unpin for AgentStep
impl UnwindSafe for AgentStep
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