pub enum RoleTrue {
Assistant,
System,
}
Expand description
This is optional and defaults to "assistant". When role=assistant, content
is said out loud. When role=system, content
is passed to the model in a system message. Example: system: default one assistant: user: assistant: user: assistant: user: assistant: tool called tool: your server response <— system prompt as hint —> model generates response which is spoken This is useful when you want to provide a hint to the model about what to say next.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoleTrue
impl<'de> Deserialize<'de> for RoleTrue
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
Source§impl Ord for RoleTrue
impl Ord for RoleTrue
Source§impl PartialOrd for RoleTrue
impl PartialOrd for RoleTrue
impl Copy for RoleTrue
impl Eq for RoleTrue
impl StructuralPartialEq for RoleTrue
Auto Trait Implementations§
impl Freeze for RoleTrue
impl RefUnwindSafe for RoleTrue
impl Send for RoleTrue
impl Sync for RoleTrue
impl Unpin for RoleTrue
impl UnwindSafe for RoleTrue
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