pub struct SystemInstructionContent {
pub parts: Vec<SystemInstructionPart>,
}
Expand description
System instructions are used to provide the model with additional context or instructions
Similar to the Content struct, but specifically for system instructions.
Fields§
§parts: Vec<SystemInstructionPart>
Trait Implementations§
Source§impl Clone for SystemInstructionContent
impl Clone for SystemInstructionContent
Source§fn clone(&self) -> SystemInstructionContent
fn clone(&self) -> SystemInstructionContent
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 moreSource§impl Debug for SystemInstructionContent
impl Debug for SystemInstructionContent
Source§impl<'de> Deserialize<'de> for SystemInstructionContent
impl<'de> Deserialize<'de> for SystemInstructionContent
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
Auto Trait Implementations§
impl Freeze for SystemInstructionContent
impl RefUnwindSafe for SystemInstructionContent
impl Send for SystemInstructionContent
impl Sync for SystemInstructionContent
impl Unpin for SystemInstructionContent
impl UnwindSafe for SystemInstructionContent
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