pub struct LlmResponse {
pub text: Option<String>,
pub tool_calls: Vec<ToolCall>,
pub tokens_used: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub reasoning_tokens: u64,
pub reasoning_content: Option<String>,
pub stop_reason: StopReason,
}Fields§
§text: Option<String>Text the model produced (may be empty if only tool calls were made).
tool_calls: Vec<ToolCall>Tool calls the model wants to make.
tokens_used: u64Total tokens used (input + output + reasoning) — kept for compat.
input_tokens: u64Input (prompt) tokens.
output_tokens: u64Output (completion) tokens.
reasoning_tokens: u64Reasoning/thinking tokens (DeepSeek extended thinking).
reasoning_content: Option<String>Raw reasoning content text (DeepSeek thinking mode) — must be echoed back.
stop_reason: StopReasonStop reason.
Trait Implementations§
Source§impl Clone for LlmResponse
impl Clone for LlmResponse
Source§fn clone(&self) -> LlmResponse
fn clone(&self) -> LlmResponse
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 LlmResponse
impl RefUnwindSafe for LlmResponse
impl Send for LlmResponse
impl Sync for LlmResponse
impl Unpin for LlmResponse
impl UnsafeUnpin for LlmResponse
impl UnwindSafe for LlmResponse
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