pub struct ResponseAndToolCallsResult {
pub response: String,
pub tool_calls: Vec<ToolCall>,
}Expand description
Represents a generated text response and tool calls from the model.
Fields§
§response: StringThe generated text response.
tool_calls: Vec<ToolCall>Array of tool call requests made during the response generation.
Trait Implementations§
Source§impl Clone for ResponseAndToolCallsResult
impl Clone for ResponseAndToolCallsResult
Source§fn clone(&self) -> ResponseAndToolCallsResult
fn clone(&self) -> ResponseAndToolCallsResult
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 ResponseAndToolCallsResult
impl Debug for ResponseAndToolCallsResult
Source§impl<'de> Deserialize<'de> for ResponseAndToolCallsResult
impl<'de> Deserialize<'de> for ResponseAndToolCallsResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ResponseAndToolCallsResult
impl Hash for ResponseAndToolCallsResult
impl Eq for ResponseAndToolCallsResult
impl StructuralPartialEq for ResponseAndToolCallsResult
Auto Trait Implementations§
impl Freeze for ResponseAndToolCallsResult
impl RefUnwindSafe for ResponseAndToolCallsResult
impl Send for ResponseAndToolCallsResult
impl Sync for ResponseAndToolCallsResult
impl Unpin for ResponseAndToolCallsResult
impl UnwindSafe for ResponseAndToolCallsResult
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