pub struct OllamaCloudProviderConfig;Expand description
Provider configuration for Ollama Cloud.
Trait Implementations§
Source§impl HasComponent<ProviderBuildComponent> for OllamaCloudProviderConfig
impl HasComponent<ProviderBuildComponent> for OllamaCloudProviderConfig
Source§type Provider = StandardProviderBuild<OllamaProvider>
type Provider = StandardProviderBuild<OllamaProvider>
The concrete provider type wired to
Name for this context.Source§impl HasComponent<ProviderMetadataComponent> for OllamaCloudProviderConfig
impl HasComponent<ProviderMetadataComponent> for OllamaCloudProviderConfig
Source§type Provider = OllamaCloudProviderConfig
type Provider = OllamaCloudProviderConfig
The concrete provider type wired to
Name for this context.Source§impl ProviderMetadataProvider<OllamaCloudProviderConfig> for OllamaCloudProviderConfig
impl ProviderMetadataProvider<OllamaCloudProviderConfig> for OllamaCloudProviderConfig
Source§const PROVIDER_KEY: &'static str = "ollama-cloud"
const PROVIDER_KEY: &'static str = "ollama-cloud"
Registry key used to identify this provider in the factory.
Source§const DISPLAY_NAME: &'static str = "Ollama Cloud"
const DISPLAY_NAME: &'static str = "Ollama Cloud"
Human-readable display name.
Source§const DEFAULT_MODEL: &'static str = crate::config::constants::models::ollama::DEFAULT_CLOUD_MODEL
const DEFAULT_MODEL: &'static str = crate::config::constants::models::ollama::DEFAULT_CLOUD_MODEL
Default model identifier when none is specified.
Source§const API_BASE_URL: &'static str = crate::config::constants::urls::OLLAMA_CLOUD_API_BASE
const API_BASE_URL: &'static str = crate::config::constants::urls::OLLAMA_CLOUD_API_BASE
Base URL for the provider’s API endpoint.
Source§const BASE_URL_ENV_VAR: Option<&'static str>
const BASE_URL_ENV_VAR: Option<&'static str>
Optional environment variable that overrides the base URL.
Source§impl ProviderSpec for OllamaCloudProviderConfig
impl ProviderSpec for OllamaCloudProviderConfig
Source§const PROVIDER_KEY: &'static str = <Self as CanDescribeProvider>::PROVIDER_KEY
const PROVIDER_KEY: &'static str = <Self as CanDescribeProvider>::PROVIDER_KEY
Registry key used to look up this provider in the factory.
Source§const DISPLAY_NAME: &'static str = <Self as CanDescribeProvider>::DISPLAY_NAME
const DISPLAY_NAME: &'static str = <Self as CanDescribeProvider>::DISPLAY_NAME
Human-readable display name for this provider.
Source§const DEFAULT_MODEL: &'static str = <Self as CanDescribeProvider>::DEFAULT_MODEL
const DEFAULT_MODEL: &'static str = <Self as CanDescribeProvider>::DEFAULT_MODEL
Default model identifier when none is specified.
Source§const API_BASE_URL: &'static str = <Self as CanDescribeProvider>::API_BASE_URL
const API_BASE_URL: &'static str = <Self as CanDescribeProvider>::API_BASE_URL
Base URL for the provider’s API endpoint.
Source§const BASE_URL_ENV_VAR: Option<&'static str> = <Self as CanDescribeProvider>::BASE_URL_ENV_VAR
const BASE_URL_ENV_VAR: Option<&'static str> = <Self as CanDescribeProvider>::BASE_URL_ENV_VAR
Optional environment variable that overrides the base URL.
Source§type PromptCacheSettings = ()
type PromptCacheSettings = ()
Provider-specific prompt cache configuration type.
Source§fn create_provider(
api_key: String,
model: String,
base_url: String,
prompt_cache_enabled: bool,
prompt_cache_settings: Self::PromptCacheSettings,
timeouts: TimeoutsConfig,
) -> Box<dyn LLMProvider>
fn create_provider( api_key: String, model: String, base_url: String, prompt_cache_enabled: bool, prompt_cache_settings: Self::PromptCacheSettings, timeouts: TimeoutsConfig, ) -> Box<dyn LLMProvider>
Construct a boxed
LLMProvider from the given configuration.Auto Trait Implementations§
impl Forget for OllamaCloudProviderConfig
impl Freeze for OllamaCloudProviderConfig
impl Move for OllamaCloudProviderConfig
impl RefUnwindSafe for OllamaCloudProviderConfig
impl Send for OllamaCloudProviderConfig
impl Sync for OllamaCloudProviderConfig
impl Unpin for OllamaCloudProviderConfig
impl UnsafeUnpin for OllamaCloudProviderConfig
impl UnwindSafe for OllamaCloudProviderConfig
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<Ctx> CanBuildProvider for Ctxwhere
Ctx: HasComponent<ProviderBuildComponent>,
<Ctx as HasComponent<ProviderBuildComponent>>::Provider: ProviderBuildProvider<Ctx>,
impl<Ctx> CanBuildProvider for Ctxwhere
Ctx: HasComponent<ProviderBuildComponent>,
<Ctx as HasComponent<ProviderBuildComponent>>::Provider: ProviderBuildProvider<Ctx>,
Source§fn build_provider(config: ProviderConfig) -> Box<dyn LLMProvider>
fn build_provider(config: ProviderConfig) -> Box<dyn LLMProvider>
Construct a boxed
LLMProvider from the given factory configuration.Source§impl<Ctx> CanDescribeProvider for Ctxwhere
Ctx: HasComponent<ProviderMetadataComponent>,
<Ctx as HasComponent<ProviderMetadataComponent>>::Provider: ProviderMetadataProvider<Ctx>,
impl<Ctx> CanDescribeProvider for Ctxwhere
Ctx: HasComponent<ProviderMetadataComponent>,
<Ctx as HasComponent<ProviderMetadataComponent>>::Provider: ProviderMetadataProvider<Ctx>,
Source§const PROVIDER_KEY: &'static str = const PROVIDER_KEY: &'static str =
<ComponentProvider<Ctx, ProviderMetadataComponent> as
ProviderMetadataProvider::<Ctx>>::PROVIDER_KEY;
const PROVIDER_KEY: &'static str = const PROVIDER_KEY: &'static str = <ComponentProvider<Ctx, ProviderMetadataComponent> as ProviderMetadataProvider::<Ctx>>::PROVIDER_KEY;
Registry key used to identify this provider in the factory.
Source§const DISPLAY_NAME: &'static str = const DISPLAY_NAME: &'static str =
<ComponentProvider<Ctx, ProviderMetadataComponent> as
ProviderMetadataProvider::<Ctx>>::DISPLAY_NAME;
const DISPLAY_NAME: &'static str = const DISPLAY_NAME: &'static str = <ComponentProvider<Ctx, ProviderMetadataComponent> as ProviderMetadataProvider::<Ctx>>::DISPLAY_NAME;
Human-readable display name.
Source§const DEFAULT_MODEL: &'static str = const DEFAULT_MODEL: &'static str =
<ComponentProvider<Ctx, ProviderMetadataComponent> as
ProviderMetadataProvider::<Ctx>>::DEFAULT_MODEL;
const DEFAULT_MODEL: &'static str = const DEFAULT_MODEL: &'static str = <ComponentProvider<Ctx, ProviderMetadataComponent> as ProviderMetadataProvider::<Ctx>>::DEFAULT_MODEL;
Default model identifier when none is specified.
Source§const API_BASE_URL: &'static str = const API_BASE_URL: &'static str =
<ComponentProvider<Ctx, ProviderMetadataComponent> as
ProviderMetadataProvider::<Ctx>>::API_BASE_URL;
const API_BASE_URL: &'static str = const API_BASE_URL: &'static str = <ComponentProvider<Ctx, ProviderMetadataComponent> as ProviderMetadataProvider::<Ctx>>::API_BASE_URL;
Base URL for the provider’s API endpoint.
Source§const BASE_URL_ENV_VAR: Option<&'static str> = const BASE_URL_ENV_VAR: Option<&'static str> =
<ComponentProvider<Ctx, ProviderMetadataComponent> as
ProviderMetadataProvider::<Ctx>>::BASE_URL_ENV_VAR;
const BASE_URL_ENV_VAR: Option<&'static str> = const BASE_URL_ENV_VAR: Option<&'static str> = <ComponentProvider<Ctx, ProviderMetadataComponent> as ProviderMetadataProvider::<Ctx>>::BASE_URL_ENV_VAR;
Optional environment variable that overrides the base URL.
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more