pub struct LLMResponse {
pub content: Option<String>,
pub tool_calls: Option<Vec<ToolCall>>,
pub usage: Option<Usage>,
pub finish_reason: FinishReason,
pub reasoning: Option<String>,
}
Expand description
Universal LLM response
Fields§
§content: Option<String>
§tool_calls: Option<Vec<ToolCall>>
§usage: Option<Usage>
§finish_reason: FinishReason
§reasoning: Option<String>
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 · 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 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