Skip to content

ProviderInfo

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970869631952["providers.ProviderInfo"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970869631952
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: Information about a configurable LLM provider.

Source code in src/aclientp/schema/v2/providers.py
class ProviderInfo(AnnotatedObject):
    """**UNSTABLE**: Information about a configurable LLM provider."""

    provider_id: ProviderId
    """Provider identifier, for example "main" or "openai"."""

    supported: Sequence[LlmProtocol]
    """Supported protocol types for this provider."""

    required: bool
    """Whether this provider is mandatory and cannot be disabled via ``providers/disable``. If
    true, clients must not call ``providers/disable`` for this provider ID."""

    current: ProviderCurrentConfig | MISSING | None = MISSING
    """Current effective non-secret routing config. Null or omitted means provider is
    disabled."""

current class-attribute instance-attribute

current: ProviderCurrentConfig | MISSING | None = MISSING

Current effective non-secret routing config. Null or omitted means provider is disabled.

provider_id instance-attribute

provider_id: ProviderId

Provider identifier, for example "main" or "openai".

required instance-attribute

required: bool

Whether this provider is mandatory and cannot be disabled via providers/disable. If true, clients must not call providers/disable for this provider ID.

supported instance-attribute

supported: Sequence[LlmProtocol]

Supported protocol types for this provider.

:fa-brands-github: Show source on GitHub