pub enum ToolCallResultMessage {
ToolMessageComplete(ToolMessageComplete),
ToolMessageFailed(ToolMessageFailed),
}
Expand description
ToolCallResultMessage : This is the message that will be spoken to the user. If this is not returned, assistant will speak: 1. a request-complete
or request-failed
message from tool.messages
, if it exists 2. a response generated by the model, if not
This is the message that will be spoken to the user. If this is not returned, assistant will speak: 1. a request-complete
or request-failed
message from tool.messages
, if it exists 2. a response generated by the model, if not
Variants§
ToolMessageComplete(ToolMessageComplete)
ToolMessageFailed(ToolMessageFailed)
Trait Implementations§
Source§impl Clone for ToolCallResultMessage
impl Clone for ToolCallResultMessage
Source§fn clone(&self) -> ToolCallResultMessage
fn clone(&self) -> ToolCallResultMessage
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 Debug for ToolCallResultMessage
impl Debug for ToolCallResultMessage
Source§impl Default for ToolCallResultMessage
impl Default for ToolCallResultMessage
Source§impl<'de> Deserialize<'de> for ToolCallResultMessage
impl<'de> Deserialize<'de> for ToolCallResultMessage
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 ToolCallResultMessage
impl PartialEq for ToolCallResultMessage
Source§impl Serialize for ToolCallResultMessage
impl Serialize for ToolCallResultMessage
impl StructuralPartialEq for ToolCallResultMessage
Auto Trait Implementations§
impl Freeze for ToolCallResultMessage
impl RefUnwindSafe for ToolCallResultMessage
impl Send for ToolCallResultMessage
impl Sync for ToolCallResultMessage
impl Unpin for ToolCallResultMessage
impl UnwindSafe for ToolCallResultMessage
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