pub struct LLMResponse {
pub content: Option<String>,
pub tool_calls: Vec<ToolCall>,
}Expand description
Response from an LLM
Fields§
§content: Option<String>The response content (optional if tool calls are present)
tool_calls: Vec<ToolCall>Tool calls requested by the LLM
Implementations§
Source§impl LLMResponse
impl LLMResponse
Sourcepub fn with_tool_calls(tool_calls: Vec<ToolCall>) -> Self
pub fn with_tool_calls(tool_calls: Vec<ToolCall>) -> Self
Create a response with tool calls
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 moreSource§impl Debug for LLMResponse
impl Debug for LLMResponse
Source§impl PartialEq for LLMResponse
impl PartialEq for LLMResponse
impl StructuralPartialEq for LLMResponse
Auto 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