Skip to main content

CanDescribeProvider

Trait CanDescribeProvider 

Source
pub trait CanDescribeProvider {
    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

Ergonomic blanket consumer over the metadata component.

Required Associated Constants§

Source

const PROVIDER_KEY: &'static str

Registry key used to identify this provider in the factory.

Source

const DISPLAY_NAME: &'static str

Human-readable display name.

Source

const DEFAULT_MODEL: &'static str

Default model identifier when none is specified.

Source

const API_BASE_URL: &'static str

Base URL for the provider’s API endpoint.

Source

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".

Implementors§