Enum AiContextItemKind
pub enum AiContextItemKind {
Show 13 variants
Message,
Document,
File,
WebPage,
Code,
Table,
Image,
Audio,
ToolResult,
Memory,
RetrievedChunk,
Metadata,
Custom,
}Variants§
Message
Document
File
WebPage
Code
Table
Image
Audio
ToolResult
Memory
RetrievedChunk
Metadata
Custom
Implementations§
§impl AiContextItemKind
impl AiContextItemKind
pub const ALL: &'static [AiContextItemKind]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for AiContextItemKind
impl Clone for AiContextItemKind
§fn clone(&self) -> AiContextItemKind
fn clone(&self) -> AiContextItemKind
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 more§impl Debug for AiContextItemKind
impl Debug for AiContextItemKind
§impl Display for AiContextItemKind
impl Display for AiContextItemKind
§impl FromStr for AiContextItemKind
impl FromStr for AiContextItemKind
§type Err = AiContextError
type Err = AiContextError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AiContextItemKind, <AiContextItemKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiContextItemKind, <AiContextItemKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiContextItemKind
impl Hash for AiContextItemKind
§impl Ord for AiContextItemKind
impl Ord for AiContextItemKind
§fn cmp(&self, other: &AiContextItemKind) -> Ordering
fn cmp(&self, other: &AiContextItemKind) -> Ordering
1.21.0 · 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
§impl PartialEq for AiContextItemKind
impl PartialEq for AiContextItemKind
§impl PartialOrd for AiContextItemKind
impl PartialOrd for AiContextItemKind
impl Copy for AiContextItemKind
impl Eq for AiContextItemKind
impl StructuralPartialEq for AiContextItemKind
Auto Trait Implementations§
impl Freeze for AiContextItemKind
impl RefUnwindSafe for AiContextItemKind
impl Send for AiContextItemKind
impl Sync for AiContextItemKind
impl Unpin for AiContextItemKind
impl UnsafeUnpin for AiContextItemKind
impl UnwindSafe for AiContextItemKind
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