pub enum ProjectionRole {
System,
Developer,
User,
AssistantContext,
ToolResult,
SchemaHint,
}Expand description
Enumerates the finite projection 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.
AssistantContext
Use this variant when the contract needs to represent assistant context; selecting it has no side effect by itself.
ToolResult
Use this variant when the contract needs to represent tool result; selecting it has no side effect by itself.
SchemaHint
Use this variant when the contract needs to represent schema hint; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for ProjectionRole
impl Clone for ProjectionRole
Source§fn clone(&self) -> ProjectionRole
fn clone(&self) -> ProjectionRole
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 ProjectionRole
impl Debug for ProjectionRole
Source§impl<'de> Deserialize<'de> for ProjectionRole
impl<'de> Deserialize<'de> for ProjectionRole
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>,
impl Eq for ProjectionRole
Source§impl PartialEq for ProjectionRole
impl PartialEq for ProjectionRole
Source§fn eq(&self, other: &ProjectionRole) -> bool
fn eq(&self, other: &ProjectionRole) -> bool
self and other values to be equal, and is used by ==.