pub struct MicroagentResponse {
pub text: String,
pub input_tokens: u32,
pub output_tokens: u32,
pub finish_reason: Option<String>,
pub response_time_ms: u64,
}Expand description
Response from a microagent provider
Fields§
§text: StringThe response text
input_tokens: u32Number of input tokens
output_tokens: u32Number of output tokens
finish_reason: Option<String>Finish reason (if available)
response_time_ms: u64Response time in milliseconds
Trait Implementations§
Source§impl Clone for MicroagentResponse
impl Clone for MicroagentResponse
Source§fn clone(&self) -> MicroagentResponse
fn clone(&self) -> MicroagentResponse
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 moreAuto Trait Implementations§
impl Freeze for MicroagentResponse
impl RefUnwindSafe for MicroagentResponse
impl Send for MicroagentResponse
impl Sync for MicroagentResponse
impl Unpin for MicroagentResponse
impl UnsafeUnpin for MicroagentResponse
impl UnwindSafe for MicroagentResponse
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