pub enum Model {
Fast,
Standard,
Planning,
}Expand description
Model performance types
Defines the performance characteristics and intended use cases for AI models.
Variants§
Fast
Fast model - optimized for speed and low latency Suitable for simple classification, extraction, or quick responses
Standard
Standard model - balanced performance for general use Suitable for most inference tasks including summarization and basic reasoning
Planning
Planning model - optimized for complex reasoning and planning Suitable for multi-step reasoning, complex problem solving, and creative tasks
Implementations§
Source§impl Model
impl Model
Sourcepub fn new(performance: &str) -> Self
pub fn new(performance: &str) -> Self
Create a Model variant from a string identifier
§Arguments
performance- String identifier (“fast”, “planning”, or defaults to “standard”)
§Examples
use aimx::Model;
let fast = Model::new("fast");
let planning = Model::new("planning");
let standard = Model::new("standard");
let default = Model::new("anything"); // defaults to StandardTrait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.