pub struct BaseMedia {
pub id: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Base struct for content used in retrieval and data processing workflows.
Provides common fields for content that needs to be stored, indexed, or searched.
For multimodal content in chat messages (images, audio sent to/from LLMs),
use the messages module content blocks instead.
Fields§
§id: Option<String>An optional identifier for the document.
Ideally this should be unique across the document collection and formatted as a UUID, but this will not be enforced.
metadata: HashMap<String, Value>Arbitrary metadata associated with the content.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaseMedia
impl<'de> Deserialize<'de> for BaseMedia
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
impl StructuralPartialEq for BaseMedia
Auto Trait Implementations§
impl Freeze for BaseMedia
impl RefUnwindSafe for BaseMedia
impl Send for BaseMedia
impl Sync for BaseMedia
impl Unpin for BaseMedia
impl UnwindSafe for BaseMedia
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