pub enum Model {
Claude(ClaudeModel),
Gemini(GeminiModel),
OpenAI(OpenAIModel),
}Expand description
Provider-agnostic model identifier.
Use this when you need to work with models from any provider.
Variants§
Implementations§
Trait Implementations§
Source§impl From<ClaudeModel> for Model
impl From<ClaudeModel> for Model
Source§fn from(m: ClaudeModel) -> Self
fn from(m: ClaudeModel) -> Self
Converts to this type from the input type.
Source§impl From<GeminiModel> for Model
impl From<GeminiModel> for Model
Source§fn from(m: GeminiModel) -> Self
fn from(m: GeminiModel) -> Self
Converts to this type from the input type.
Source§impl From<OpenAIModel> for Model
impl From<OpenAIModel> for Model
Source§fn from(m: OpenAIModel) -> Self
fn from(m: OpenAIModel) -> Self
Converts to this type from the input type.
impl Eq for Model
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