pub trait ProviderMetadataProvider<Ctx> {
const PROVIDER_KEY: &'static str;
const DISPLAY_NAME: &'static str;
const DEFAULT_MODEL: &'static str;
const API_BASE_URL: &'static str;
const BASE_URL_ENV_VAR: Option<&'static str>;
}Expand description
Provider trait for provider metadata.
Required Associated Constants§
Sourceconst PROVIDER_KEY: &'static str
const PROVIDER_KEY: &'static str
Registry key used to identify this provider in the factory.
Sourceconst DISPLAY_NAME: &'static str
const DISPLAY_NAME: &'static str
Human-readable display name.
Sourceconst DEFAULT_MODEL: &'static str
const DEFAULT_MODEL: &'static str
Default model identifier when none is specified.
Sourceconst API_BASE_URL: &'static str
const API_BASE_URL: &'static str
Base URL for the provider’s API endpoint.
Sourceconst BASE_URL_ENV_VAR: Option<&'static str>
const BASE_URL_ENV_VAR: Option<&'static str>
Optional environment variable that overrides the base URL.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".