#[non_exhaustive]pub struct SupportedParameters {
pub max_tokens: bool,
pub temperature: bool,
pub top_p: bool,
pub reasoning: bool,
pub include_reasoning: bool,
pub structured_outputs: bool,
pub response_format: bool,
pub stop: bool,
pub frequency_penalty: bool,
pub presence_penalty: bool,
pub seed: bool,
}Expand description
Indicates which parameters are supported by a model.
This struct is used to communicate which configuration parameters a specific model supports, allowing applications to adjust their requests accordingly.
§Examples
ⓘ
use aither::llm::model::SupportedParameters;
let mut support = SupportedParameters::default();
support.temperature = true;
support.max_tokens = true;
support.top_p = true;
support.stop = true;
support.seed = true;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_tokens: boolWhether max_tokens is supported.
temperature: boolWhether temperature is supported.
top_p: boolWhether top_p is supported.
reasoning: boolWhether reasoning is supported.
include_reasoning: boolWhether including reasoning is supported.
structured_outputs: boolWhether structured outputs are supported.
response_format: boolWhether response format is supported.
stop: boolWhether stop sequences are supported.
frequency_penalty: boolWhether frequency penalty is supported.
presence_penalty: boolWhether presence penalty is supported.
seed: boolWhether seed is supported.
Trait Implementations§
Source§impl Clone for SupportedParameters
impl Clone for SupportedParameters
Source§fn clone(&self) -> SupportedParameters
fn clone(&self) -> SupportedParameters
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 moreimpl Copy for SupportedParameters
Source§impl Debug for SupportedParameters
impl Debug for SupportedParameters
Source§impl Default for SupportedParameters
impl Default for SupportedParameters
Source§fn default() -> SupportedParameters
fn default() -> SupportedParameters
Returns the “default value” for a type. Read more
impl Eq for SupportedParameters
Source§impl Hash for SupportedParameters
impl Hash for SupportedParameters
Source§impl Ord for SupportedParameters
impl Ord for SupportedParameters
Source§fn cmp(&self, other: &SupportedParameters) -> Ordering
fn cmp(&self, other: &SupportedParameters) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SupportedParameters
impl PartialEq for SupportedParameters
Source§impl PartialOrd for SupportedParameters
impl PartialOrd for SupportedParameters
impl StructuralPartialEq for SupportedParameters
Auto Trait Implementations§
impl Freeze for SupportedParameters
impl RefUnwindSafe for SupportedParameters
impl Send for SupportedParameters
impl Sync for SupportedParameters
impl Unpin for SupportedParameters
impl UnsafeUnpin for SupportedParameters
impl UnwindSafe for SupportedParameters
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