/// Result of a task execution from an AI agent
////// This struct is part of the public API and all fields may be accessed by consumers.
/// The cost_usd and duration_ms fields provide useful metadata about task execution.
#[derive(Debug, Clone)]pubstructTaskResult{/// Whether the task completed successfully
pubsuccess:bool,
/// Message describing the task result
pubmessage: String,
/// Estimated cost in USD for the task execution
#[allow(dead_code)]// Available for future use
pubcost_usd:Option<f64>,
/// Duration of the task execution in milliseconds
#[allow(dead_code)]// Available for future use
pubduration_ms:Option<u64>,
}