pub enum Role {
System,
User,
Assistant,
}Expand description
Role of a message participant in a conversation.
Follows the late-binding principle: internal format until provider converts at boundary.
Variants§
System
System-level instructions (typically the agent’s SOUL.md).
User
A message from the human user or the discussion orchestrator.
Assistant
A response generated by the LLM.
Trait Implementations§
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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