pub struct ModelHints {
pub preferred: Option<Vec<String>>,
pub temperature: Option<f64>,
pub max_tokens: Option<u32>,
pub top_p: Option<f64>,
pub stop: Option<Vec<String>>,
pub extra: HashMap<String, Value>,
}Expand description
Model preferences for executing this prompt.
Fields§
§preferred: Option<Vec<String>>Ordered list of preferred model IDs. First supported model is used.
Example: ["claude-sonnet-4-6", "gpt-4o"]
temperature: Option<f64>Sampling temperature (0.0–2.0).
max_tokens: Option<u32>Maximum tokens to generate.
top_p: Option<f64>Top-p nucleus sampling parameter.
stop: Option<Vec<String>>Stop sequences.
extra: HashMap<String, Value>Any model-specific parameters not covered above are passed through.
Trait Implementations§
Source§impl Clone for ModelHints
impl Clone for ModelHints
Source§fn clone(&self) -> ModelHints
fn clone(&self) -> ModelHints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelHints
impl Debug for ModelHints
Source§impl<'de> Deserialize<'de> for ModelHints
impl<'de> Deserialize<'de> for ModelHints
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 PartialEq for ModelHints
impl PartialEq for ModelHints
Source§fn eq(&self, other: &ModelHints) -> bool
fn eq(&self, other: &ModelHints) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelHints
impl Serialize for ModelHints
impl StructuralPartialEq for ModelHints
Auto Trait Implementations§
impl Freeze for ModelHints
impl RefUnwindSafe for ModelHints
impl Send for ModelHints
impl Sync for ModelHints
impl Unpin for ModelHints
impl UnsafeUnpin for ModelHints
impl UnwindSafe for ModelHints
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