pub struct AgentMcpOutput {
pub content: String,
pub success: bool,
pub confidence: f32,
pub metadata: HashMap<String, String>,
pub duration_ms: u64,
pub tools_used: Vec<String>,
}Expand description
Output structure for agent responses
Fields§
§content: StringThe response content
success: boolWhether the agent successfully completed the task
confidence: f32Confidence score (0.0 to 1.0)
metadata: HashMap<String, String>Additional metadata
duration_ms: u64Time taken in milliseconds
tools_used: Vec<String>Tools used by the agent
Trait Implementations§
Source§impl Clone for AgentMcpOutput
impl Clone for AgentMcpOutput
Source§fn clone(&self) -> AgentMcpOutput
fn clone(&self) -> AgentMcpOutput
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 AgentMcpOutput
impl Debug for AgentMcpOutput
Source§impl<'de> Deserialize<'de> for AgentMcpOutput
impl<'de> Deserialize<'de> for AgentMcpOutput
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 AgentMcpOutput
impl RefUnwindSafe for AgentMcpOutput
impl Send for AgentMcpOutput
impl Sync for AgentMcpOutput
impl Unpin for AgentMcpOutput
impl UnsafeUnpin for AgentMcpOutput
impl UnwindSafe for AgentMcpOutput
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