pub enum ProviderOptions {
Anthropic {
api_version: Option<String>,
beta: Vec<String>,
},
OpenAiChat {
organization: Option<String>,
project: Option<String>,
},
OpenAiResponses {
organization: Option<String>,
project: Option<String>,
store: Option<bool>,
},
OpenAiCompatible {
api_path: Option<String>,
},
GoogleGemini {
api_version: Option<String>,
},
GoogleVertexGemini {
project: String,
location: String,
},
AwsBedrockConverse {
region: String,
},
AzureOpenAiChat {
deployment: String,
api_version: String,
},
AzureOpenAiResponses {
deployment: String,
api_version: String,
},
CohereV2Chat {
api_version: Option<String>,
},
}Variants§
Anthropic
OpenAiChat
OpenAiResponses
OpenAiCompatible
GoogleGemini
GoogleVertexGemini
AwsBedrockConverse
AzureOpenAiChat
AzureOpenAiResponses
CohereV2Chat
Implementations§
Source§impl ProviderOptions
impl ProviderOptions
pub const fn adapter_id(&self) -> AdaptorId
Trait Implementations§
Source§impl Clone for ProviderOptions
impl Clone for ProviderOptions
Source§fn clone(&self) -> ProviderOptions
fn clone(&self) -> ProviderOptions
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 ProviderOptions
impl Debug for ProviderOptions
Source§impl<'de> Deserialize<'de> for ProviderOptions
impl<'de> Deserialize<'de> for ProviderOptions
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 JsonSchema for ProviderOptions
impl JsonSchema for ProviderOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProviderOptions
impl PartialEq for ProviderOptions
Source§fn eq(&self, other: &ProviderOptions) -> bool
fn eq(&self, other: &ProviderOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderOptions
impl Serialize for ProviderOptions
impl StructuralPartialEq for ProviderOptions
Auto Trait Implementations§
impl Freeze for ProviderOptions
impl RefUnwindSafe for ProviderOptions
impl Send for ProviderOptions
impl Sync for ProviderOptions
impl Unpin for ProviderOptions
impl UnsafeUnpin for ProviderOptions
impl UnwindSafe for ProviderOptions
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