pub struct SimplePromptOptions {
pub message: Option<String>,
pub user: Option<String>,
pub system: Option<String>,
pub temperature: Option<f64>,
pub sampling: Option<SamplingConfig>,
pub strict_mode: Option<StrictMode>,
}Expand description
Convenience options for constructing a simple user/system prompt.
Fields§
§message: Option<String>§user: Option<String>§system: Option<String>§temperature: Option<f64>§sampling: Option<SamplingConfig>§strict_mode: Option<StrictMode>Trait Implementations§
Source§impl Clone for SimplePromptOptions
impl Clone for SimplePromptOptions
Source§fn clone(&self) -> SimplePromptOptions
fn clone(&self) -> SimplePromptOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplePromptOptions
impl Debug for SimplePromptOptions
Source§impl Default for SimplePromptOptions
impl Default for SimplePromptOptions
Source§fn default() -> SimplePromptOptions
fn default() -> SimplePromptOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimplePromptOptions
impl<'de> Deserialize<'de> for SimplePromptOptions
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
Auto Trait Implementations§
impl Freeze for SimplePromptOptions
impl RefUnwindSafe for SimplePromptOptions
impl Send for SimplePromptOptions
impl Sync for SimplePromptOptions
impl Unpin for SimplePromptOptions
impl UnwindSafe for SimplePromptOptions
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