pub struct SystemMessageData {
pub content: String,
pub metadata: Option<SystemMessageMetadata>,
pub name: Option<String>,
pub role: SystemMessageRole,
}Expand description
System/developer instruction content with role and optional template metadata
Fields§
§content: StringThe system or developer prompt text sent as model input
metadata: Option<SystemMessageMetadata>Metadata about the prompt template and its construction
name: Option<String>Optional name identifier for the message source
role: SystemMessageRoleMessage role: “system” for system prompts, “developer” for developer-injected instructions
Trait Implementations§
Source§impl Clone for SystemMessageData
impl Clone for SystemMessageData
Source§fn clone(&self) -> SystemMessageData
fn clone(&self) -> SystemMessageData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SystemMessageData
impl Debug for SystemMessageData
Source§impl<'de> Deserialize<'de> for SystemMessageData
impl<'de> Deserialize<'de> for SystemMessageData
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 SystemMessageData
impl RefUnwindSafe for SystemMessageData
impl Send for SystemMessageData
impl Sync for SystemMessageData
impl Unpin for SystemMessageData
impl UnsafeUnpin for SystemMessageData
impl UnwindSafe for SystemMessageData
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