pub struct AgentToolResult {
pub agent_id: String,
pub agent_type: Option<String>,
pub content: String,
pub total_tool_use_count: usize,
pub total_duration_ms: u64,
pub total_tokens: usize,
pub usage: TokenUsage,
}Expand description
Result returned when an agent completes.
Fields§
§agent_id: String§agent_type: Option<String>§content: String§total_tool_use_count: usize§total_duration_ms: u64§total_tokens: usize§usage: TokenUsageTrait Implementations§
Source§impl Clone for AgentToolResult
impl Clone for AgentToolResult
Source§fn clone(&self) -> AgentToolResult
fn clone(&self) -> AgentToolResult
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 moreAuto Trait Implementations§
impl Freeze for AgentToolResult
impl RefUnwindSafe for AgentToolResult
impl Send for AgentToolResult
impl Sync for AgentToolResult
impl Unpin for AgentToolResult
impl UnsafeUnpin for AgentToolResult
impl UnwindSafe for AgentToolResult
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