pub struct ModelEndpoint { /* private fields */ }Expand description
Individual model endpoint configuration
All fields are private to enforce invariants. Configuration is loaded via deserialization and validated via Config::validate(). After construction, fields cannot be mutated, ensuring validated data remains valid.
Implementations§
Source§impl ModelEndpoint
impl ModelEndpoint
Sourcepub fn max_tokens(&self) -> usize
pub fn max_tokens(&self) -> usize
Get the maximum number of tokens for this endpoint
Sourcepub fn temperature(&self) -> f64
pub fn temperature(&self) -> f64
Get the temperature parameter for this endpoint
Trait Implementations§
Source§impl Clone for ModelEndpoint
impl Clone for ModelEndpoint
Source§fn clone(&self) -> ModelEndpoint
fn clone(&self) -> ModelEndpoint
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 ModelEndpoint
impl Debug for ModelEndpoint
Source§impl<'de> Deserialize<'de> for ModelEndpoint
impl<'de> Deserialize<'de> for ModelEndpoint
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 From<&ModelEndpoint> for EndpointName
impl From<&ModelEndpoint> for EndpointName
Source§fn from(endpoint: &ModelEndpoint) -> Self
fn from(endpoint: &ModelEndpoint) -> Self
Create an EndpointName from a ModelEndpoint reference (always valid)
Auto Trait Implementations§
impl Freeze for ModelEndpoint
impl RefUnwindSafe for ModelEndpoint
impl Send for ModelEndpoint
impl Sync for ModelEndpoint
impl Unpin for ModelEndpoint
impl UnwindSafe for ModelEndpoint
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