pub struct InstructionBlock {
pub role: Role,
pub content: Vec<ContentBlock>,
}Expand description
Instruction content separated from normal conversation messages.
Fields§
§role: RoleInstruction authority, normally Role::System or Role::Developer.
content: Vec<ContentBlock>Ordered instruction content.
Trait Implementations§
Source§impl Clone for InstructionBlock
impl Clone for InstructionBlock
Source§fn clone(&self) -> InstructionBlock
fn clone(&self) -> InstructionBlock
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 InstructionBlock
impl Debug for InstructionBlock
Source§impl<'de> Deserialize<'de> for InstructionBlock
impl<'de> Deserialize<'de> for InstructionBlock
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 PartialEq for InstructionBlock
impl PartialEq for InstructionBlock
Source§impl Serialize for InstructionBlock
impl Serialize for InstructionBlock
impl StructuralPartialEq for InstructionBlock
Auto Trait Implementations§
impl Freeze for InstructionBlock
impl RefUnwindSafe for InstructionBlock
impl Send for InstructionBlock
impl Sync for InstructionBlock
impl Unpin for InstructionBlock
impl UnsafeUnpin for InstructionBlock
impl UnwindSafe for InstructionBlock
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