pub struct ModelResponse {
pub text: String,
pub tool_calls: Vec<ToolCall>,
pub usage: Usage,
pub reasoning: Option<String>,
pub note: Option<String>,
pub cut_off: bool,
}Expand description
A complete (non-streamed) model reply.
Fields§
§text: String§tool_calls: Vec<ToolCall>§usage: Usage§reasoning: Option<String>The model’s visible reasoning, when the provider returns it apart from the answer.
note: Option<String>Why the reply may be incomplete (cut off at the token limit, held back by a safety filter), in the provider’s words.
cut_off: boolThe reply stopped at the output-token limit, not where the model ended it: its text is cut short.
Trait Implementations§
Source§impl Clone for ModelResponse
impl Clone for ModelResponse
Source§impl Debug for ModelResponse
impl Debug for ModelResponse
Source§impl Default for ModelResponse
impl Default for ModelResponse
Source§impl PartialEq for ModelResponse
impl PartialEq for ModelResponse
impl StructuralPartialEq for ModelResponse
Auto Trait Implementations§
impl Forget for ModelResponse
impl Freeze for ModelResponse
impl Move for ModelResponse
impl RefUnwindSafe for ModelResponse
impl Send for ModelResponse
impl Sync for ModelResponse
impl Unpin for ModelResponse
impl UnsafeUnpin for ModelResponse
impl UnwindSafe for ModelResponse
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