pub enum ExternalRole {
System,
Developer,
User,
Assistant,
Tool,
}Expand description
Roles that are safe to send to a provider adapter.
Variants§
System
Developer
Instruction message kept at its position in the history.
Produced only under SystemPlacement::FirstToTopRestInPlace on the
OpenAI protocols. Strict OpenAI-compatible endpoints that reject a
developer role should keep SystemPlacement::MergeIntoTop.
User
Assistant
Tool
Trait Implementations§
Source§impl Clone for ExternalRole
impl Clone for ExternalRole
Source§impl Debug for ExternalRole
impl Debug for ExternalRole
impl Eq for ExternalRole
Source§impl PartialEq for ExternalRole
impl PartialEq for ExternalRole
impl StructuralPartialEq for ExternalRole
Auto Trait Implementations§
impl Freeze for ExternalRole
impl RefUnwindSafe for ExternalRole
impl Send for ExternalRole
impl Sync for ExternalRole
impl Unpin for ExternalRole
impl UnsafeUnpin for ExternalRole
impl UnwindSafe for ExternalRole
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.