Skip to content

ProviderInfo

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970861130544["providers.ProviderInfo"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970861130544
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

A configurable provider with its current routing info, suitable for UI display.

Source code in src/aclientp/schema/providers.py
class ProviderInfo(AnnotatedObject):
    """A configurable provider with its current routing info, suitable for UI display."""

    provider_id: ProviderId
    """Provider identifier."""

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

    required: bool
    """Whether this provider is mandatory. Clients must not call ``providers/disable`` for it."""

    current: ProviderCurrentConfig | None = None
    """Current effective config. ``None`` means the provider is disabled."""

current class-attribute instance-attribute

current: ProviderCurrentConfig | None = None

Current effective config. None means the provider is disabled.

provider_id instance-attribute

provider_id: ProviderId

Provider identifier.

required instance-attribute

required: bool

Whether this provider is mandatory. Clients must not call providers/disable for it.

supported instance-attribute

supported: Sequence[LlmProtocol]

Supported protocol types for this provider.

:fa-brands-github: Show source on GitHub