pub struct Prompt {
pub prompt: String,
pub assistant: Option<String>,
pub system: Option<String>,
pub format: Format,
}Expand description
Prompt
Fields§
§prompt: StringUser prompt
assistant: Option<String>Assistant message
system: Option<String>System message
format: FormatRequested output format
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnwindSafe for Prompt
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