pub struct ServerMessageResponseToolCalls {
pub results: Option<Vec<ToolCallResult>>,
pub error: Option<String>,
}
Fields§
§results: Option<Vec<ToolCallResult>>
These are the results of the "tool-calls" message.
error: Option<String>
This is the error message if the tool call was not successful.
Implementations§
Trait Implementations§
Source§impl Clone for ServerMessageResponseToolCalls
impl Clone for ServerMessageResponseToolCalls
Source§fn clone(&self) -> ServerMessageResponseToolCalls
fn clone(&self) -> ServerMessageResponseToolCalls
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ServerMessageResponseToolCalls
impl Default for ServerMessageResponseToolCalls
Source§fn default() -> ServerMessageResponseToolCalls
fn default() -> ServerMessageResponseToolCalls
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerMessageResponseToolCalls
impl<'de> Deserialize<'de> for ServerMessageResponseToolCalls
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 PartialEq for ServerMessageResponseToolCalls
impl PartialEq for ServerMessageResponseToolCalls
Source§fn eq(&self, other: &ServerMessageResponseToolCalls) -> bool
fn eq(&self, other: &ServerMessageResponseToolCalls) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ServerMessageResponseToolCalls
Auto Trait Implementations§
impl Freeze for ServerMessageResponseToolCalls
impl RefUnwindSafe for ServerMessageResponseToolCalls
impl Send for ServerMessageResponseToolCalls
impl Sync for ServerMessageResponseToolCalls
impl Unpin for ServerMessageResponseToolCalls
impl UnwindSafe for ServerMessageResponseToolCalls
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