pub enum ProviderMessageRole {
System,
Developer,
User,
Assistant,
Tool,
Context,
}Expand description
Enumerates the finite provider message role cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
System
Use this variant when the contract needs to represent system; selecting it has no side effect by itself.
Developer
Use this variant when the contract needs to represent developer; selecting it has no side effect by itself.
User
Use this variant when the contract needs to represent user; selecting it has no side effect by itself.
Assistant
Use this variant when the contract needs to represent assistant; selecting it has no side effect by itself.
Tool
Use this variant when the contract needs to represent tool; selecting it has no side effect by itself.
Context
Use this variant when the contract needs to represent context; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for ProviderMessageRole
impl Clone for ProviderMessageRole
Source§fn clone(&self) -> ProviderMessageRole
fn clone(&self) -> ProviderMessageRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderMessageRole
impl Debug for ProviderMessageRole
Source§impl<'de> Deserialize<'de> for ProviderMessageRole
impl<'de> Deserialize<'de> for ProviderMessageRole
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>,
Source§impl PartialEq for ProviderMessageRole
impl PartialEq for ProviderMessageRole
Source§fn eq(&self, other: &ProviderMessageRole) -> bool
fn eq(&self, other: &ProviderMessageRole) -> bool
self and other values to be equal, and is used by ==.