pub enum ItemType {
Bytes,
Tensor,
Text,
Message,
Image,
Audio,
SpeechSegment,
SpeechResult,
ToolCall,
ToolResult,
}Expand description
The kind of payload carried by an Item.
Mirrors the native flItemType discriminant and is returned by
Item::item_type.
Variants§
Bytes
Opaque byte buffer (Item::Bytes).
Tensor
Numeric tensor (Item::Tensor).
Text
UTF-8 text (Item::Text).
Message
Chat message with nested content parts (Item::Message).
Image
Image, inline or by URI (Item::Image).
Audio
Audio, inline or by URI (Item::Audio).
SpeechSegment
A single speech-recognition segment (Item::SpeechSegment).
SpeechResult
A complete speech-recognition result (Item::SpeechResult).
ToolCall
A model-issued tool/function call (Item::ToolCall).
ToolResult
The result of executing a tool/function call (Item::ToolResult).
Trait Implementations§
impl Copy for ItemType
impl Eq for ItemType
impl StructuralPartialEq for ItemType
Auto Trait Implementations§
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Send for ItemType
impl Sync for ItemType
impl Unpin for ItemType
impl UnsafeUnpin for ItemType
impl UnwindSafe for ItemType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.