pub enum ToolCallType {
Function,
Web,
XSearch,
CodeExecution,
}Expand description
ToolCallType
JSON schema
{
"type": "string",
"enum": [
"function",
"web",
"x_search",
"code_execution"
]
}Variants§
Trait Implementations§
Source§impl Clone for ToolCallType
impl Clone for ToolCallType
Source§fn clone(&self) -> ToolCallType
fn clone(&self) -> ToolCallType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolCallType
impl Debug for ToolCallType
Source§impl<'de> Deserialize<'de> for ToolCallType
impl<'de> Deserialize<'de> for ToolCallType
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 Display for ToolCallType
impl Display for ToolCallType
Source§impl From<&ToolCallType> for ToolCallType
impl From<&ToolCallType> for ToolCallType
Source§fn from(value: &ToolCallType) -> Self
fn from(value: &ToolCallType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ToolCallType
impl FromStr for ToolCallType
Source§impl Hash for ToolCallType
impl Hash for ToolCallType
Source§impl Ord for ToolCallType
impl Ord for ToolCallType
Source§impl PartialEq for ToolCallType
impl PartialEq for ToolCallType
Source§impl PartialOrd for ToolCallType
impl PartialOrd for ToolCallType
Source§impl Serialize for ToolCallType
impl Serialize for ToolCallType
Source§impl TryFrom<&String> for ToolCallType
impl TryFrom<&String> for ToolCallType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ToolCallType
impl TryFrom<&str> for ToolCallType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ToolCallType
impl TryFrom<String> for ToolCallType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for ToolCallType
impl Eq for ToolCallType
impl StructuralPartialEq for ToolCallType
Auto Trait Implementations§
impl Freeze for ToolCallType
impl RefUnwindSafe for ToolCallType
impl Send for ToolCallType
impl Sync for ToolCallType
impl Unpin for ToolCallType
impl UnwindSafe for ToolCallType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.