pub enum ToolResultKind {
Text,
Json,
File,
Image,
Audio,
Table,
Error,
Empty,
Custom,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ToolResultKind
impl Clone for ToolResultKind
Source§fn clone(&self) -> ToolResultKind
fn clone(&self) -> ToolResultKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolResultKind
impl Debug for ToolResultKind
Source§impl Display for ToolResultKind
impl Display for ToolResultKind
Source§impl FromStr for ToolResultKind
impl FromStr for ToolResultKind
Source§type Err = ToolCallError
type Err = ToolCallError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ToolResultKind, <ToolResultKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ToolResultKind, <ToolResultKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ToolResultKind
impl Hash for ToolResultKind
Source§impl Ord for ToolResultKind
impl Ord for ToolResultKind
Source§fn cmp(&self, other: &ToolResultKind) -> Ordering
fn cmp(&self, other: &ToolResultKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ToolResultKind
impl PartialEq for ToolResultKind
Source§fn eq(&self, other: &ToolResultKind) -> bool
fn eq(&self, other: &ToolResultKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ToolResultKind
impl PartialOrd for ToolResultKind
impl Copy for ToolResultKind
impl Eq for ToolResultKind
impl StructuralPartialEq for ToolResultKind
Auto Trait Implementations§
impl Freeze for ToolResultKind
impl RefUnwindSafe for ToolResultKind
impl Send for ToolResultKind
impl Sync for ToolResultKind
impl Unpin for ToolResultKind
impl UnsafeUnpin for ToolResultKind
impl UnwindSafe for ToolResultKind
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