pub enum AgentMessageRole {
System,
Developer,
User,
Assistant,
Tool,
}Expand description
Enumerates the finite agent 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.
Trait Implementations§
Source§impl Clone for AgentMessageRole
impl Clone for AgentMessageRole
Source§fn clone(&self) -> AgentMessageRole
fn clone(&self) -> AgentMessageRole
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 AgentMessageRole
impl Debug for AgentMessageRole
Source§impl<'de> Deserialize<'de> for AgentMessageRole
impl<'de> Deserialize<'de> for AgentMessageRole
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
impl Eq for AgentMessageRole
Source§impl PartialEq for AgentMessageRole
impl PartialEq for AgentMessageRole
Source§fn eq(&self, other: &AgentMessageRole) -> bool
fn eq(&self, other: &AgentMessageRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentMessageRole
impl Serialize for AgentMessageRole
impl StructuralPartialEq for AgentMessageRole
Auto Trait Implementations§
impl Freeze for AgentMessageRole
impl RefUnwindSafe for AgentMessageRole
impl Send for AgentMessageRole
impl Sync for AgentMessageRole
impl Unpin for AgentMessageRole
impl UnsafeUnpin for AgentMessageRole
impl UnwindSafe for AgentMessageRole
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