pub enum TurnRole {
User,
Assistant,
System,
Tool,
}Expand description
The role of a session turn’s author.
Variants§
User
The user / operator.
Assistant
The agent / assistant.
System
A system message.
Tool
A tool-call result.
Trait Implementations§
impl Copy for TurnRole
impl Eq for TurnRole
impl StructuralPartialEq for TurnRole
Auto Trait Implementations§
impl Freeze for TurnRole
impl RefUnwindSafe for TurnRole
impl Send for TurnRole
impl Sync for TurnRole
impl Unpin for TurnRole
impl UnsafeUnpin for TurnRole
impl UnwindSafe for TurnRole
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