pub struct ModelOutput {
pub text: Option<String>,
pub tool_calls: Vec<ToolCall>,
pub usage: Usage,
pub stop_reason: StopReason,
pub reasoning: Option<String>,
}Fields§
§text: Option<String>§tool_calls: Vec<ToolCall>§usage: Usage§stop_reason: StopReason§reasoning: Option<String>Provider-specific reasoning trace (DeepSeek reasoning_content,
Anthropic thinking blocks). Pushed back to the API verbatim on
subsequent calls; required by providers that gate on it.
Trait Implementations§
Source§impl Clone for ModelOutput
impl Clone for ModelOutput
Source§fn clone(&self) -> ModelOutput
fn clone(&self) -> ModelOutput
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 moreSource§impl Debug for ModelOutput
impl Debug for ModelOutput
Source§impl<'de> Deserialize<'de> for ModelOutput
impl<'de> Deserialize<'de> for ModelOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ModelOutput
impl Serialize for ModelOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ModelOutput
impl RefUnwindSafe for ModelOutput
impl Send for ModelOutput
impl Sync for ModelOutput
impl Unpin for ModelOutput
impl UnsafeUnpin for ModelOutput
impl UnwindSafe for ModelOutput
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