pub struct Content {
pub role: String,
pub parts: Vec<Part>,
}Expand description
This is the primary structure for loading a call. See implementation.
Fields§
§role: String§parts: Vec<Part>Implementations§
Source§impl Content
impl Content
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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 LlmMessage for Content
impl LlmMessage for Content
Source§fn many_text(role: &str, parts: &[String]) -> Self
fn many_text(role: &str, parts: &[String]) -> Self
Supply single role with multi-string for iparts with single content
Source§fn multi_part_system(system_prompts: &[String]) -> Vec<Self>
fn multi_part_system(system_prompts: &[String]) -> Vec<Self>
Supply multi-parts and single ‘system’ content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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