pub enum AgentRole {
User,
Assistant,
}Expand description
Message role used in emitted stream events.
Variants§
Trait Implementations§
impl Copy for AgentRole
impl Eq for AgentRole
impl StructuralPartialEq for AgentRole
Auto Trait Implementations§
impl Freeze for AgentRole
impl RefUnwindSafe for AgentRole
impl Send for AgentRole
impl Sync for AgentRole
impl Unpin for AgentRole
impl UnsafeUnpin for AgentRole
impl UnwindSafe for AgentRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.