pub struct DriverResponse {
pub content: Option<String>,
pub finish_reason: Option<String>,
pub usage: Option<UsageInfo>,
pub tool_calls: Vec<Value>,
pub raw: Value,
}Expand description
Unified chat response from provider.
Fields§
§content: Option<String>Extracted text content.
finish_reason: Option<String>Finish reason normalized to AI-Protocol standard.
usage: Option<UsageInfo>Token usage statistics.
tool_calls: Vec<Value>Tool calls if any.
raw: ValueRaw provider response for debugging.
Trait Implementations§
Source§impl Clone for DriverResponse
impl Clone for DriverResponse
Source§fn clone(&self) -> DriverResponse
fn clone(&self) -> DriverResponse
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 DriverResponse
impl RefUnwindSafe for DriverResponse
impl Send for DriverResponse
impl Sync for DriverResponse
impl Unpin for DriverResponse
impl UnsafeUnpin for DriverResponse
impl UnwindSafe for DriverResponse
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