pub enum ProviderConfigType {
Openai,
Azure,
Anthropic,
Unknown,
}Expand description
Provider type. Defaults to “openai” for generic OpenAI-compatible APIs.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Openai
Generic OpenAI-compatible API.
Azure
Azure OpenAI Service endpoint.
Anthropic
Anthropic API endpoint.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for ProviderConfigType
impl Clone for ProviderConfigType
Source§fn clone(&self) -> ProviderConfigType
fn clone(&self) -> ProviderConfigType
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 ProviderConfigType
impl Debug for ProviderConfigType
Source§impl Default for ProviderConfigType
impl Default for ProviderConfigType
Source§fn default() -> ProviderConfigType
fn default() -> ProviderConfigType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderConfigType
impl<'de> Deserialize<'de> for ProviderConfigType
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 Eq for ProviderConfigType
Source§impl PartialEq for ProviderConfigType
impl PartialEq for ProviderConfigType
Source§fn eq(&self, other: &ProviderConfigType) -> bool
fn eq(&self, other: &ProviderConfigType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderConfigType
impl Serialize for ProviderConfigType
impl StructuralPartialEq for ProviderConfigType
Auto Trait Implementations§
impl Freeze for ProviderConfigType
impl RefUnwindSafe for ProviderConfigType
impl Send for ProviderConfigType
impl Sync for ProviderConfigType
impl Unpin for ProviderConfigType
impl UnsafeUnpin for ProviderConfigType
impl UnwindSafe for ProviderConfigType
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