Skip to content

providers

Class info

Classes

Name Children Inherits
DisableProviderRequest
aclientp.schema.providers
Disable a non-required provider.
    DisableProviderResponse
    aclientp.schema.providers
    Response to ``providers/disable``.
      ListProvidersRequest
      aclientp.schema.providers
      Request the configurable providers.
        ListProvidersResponse
        aclientp.schema.providers
        Response to ``providers/list``.
          ProviderCurrentConfig
          aclientp.schema.providers
          Current effective non-secret routing config of a provider.
            ProviderInfo
            aclientp.schema.providers
            A configurable provider with its current routing info, suitable for UI display.
              SetProviderRequest
              aclientp.schema.providers
              Configure a provider's routing.
                SetProviderResponse
                aclientp.schema.providers
                Response to ``providers/set``.

                  🛈 DocStrings

                  UNSTABLE: LLM provider configuration (providers/list, providers/set, ...).

                  Lets a client route an agent's model traffic through its own endpoints. Only available if the Agent advertises the providers capability.

                  LlmProtocol module-attribute

                  LlmProtocol = Literal['anthropic', 'openai', 'azure', 'vertex', 'bedrock'] | str
                  

                  API protocol spoken by a provider endpoint.

                  ProviderId module-attribute

                  ProviderId = str
                  

                  Provider identifier, for example main or openai.

                  DisableProviderRequest

                  Bases: Request

                  Disable a non-required provider.

                  Source code in src/aclientp/schema/providers.py
                  class DisableProviderRequest(Request):
                      """Disable a non-required provider."""
                  
                      provider_id: ProviderId
                      """Provider ID to disable."""
                  

                  provider_id instance-attribute

                  provider_id: ProviderId
                  

                  Provider ID to disable.

                  DisableProviderResponse

                  Bases: Response

                  Response to providers/disable.

                  Source code in src/aclientp/schema/providers.py
                  class DisableProviderResponse(Response):
                      """Response to ``providers/disable``."""
                  

                  ListProvidersRequest

                  Bases: Request

                  Request the configurable providers.

                  Source code in src/aclientp/schema/providers.py
                  class ListProvidersRequest(Request):
                      """Request the configurable providers."""
                  

                  ListProvidersResponse

                  Bases: Response

                  Response to providers/list.

                  Source code in src/aclientp/schema/providers.py
                  class ListProvidersResponse(Response):
                      """Response to ``providers/list``."""
                  
                      providers: Sequence[ProviderInfo]
                      """Configurable providers with current routing info."""
                  

                  providers instance-attribute

                  providers: Sequence[ProviderInfo]
                  

                  Configurable providers with current routing info.

                  ProviderCurrentConfig

                  Bases: AnnotatedObject

                  Current effective non-secret routing config of a provider.

                  Source code in src/aclientp/schema/providers.py
                  class ProviderCurrentConfig(AnnotatedObject):
                      """Current effective non-secret routing config of a provider."""
                  
                      api_type: LlmProtocol
                      """Protocol currently used by this provider."""
                  
                      base_url: str
                      """Base URL currently used by this provider."""
                  

                  api_type instance-attribute

                  api_type: LlmProtocol
                  

                  Protocol currently used by this provider.

                  base_url instance-attribute

                  base_url: str
                  

                  Base URL currently used by this provider.

                  ProviderInfo

                  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.

                  SetProviderRequest

                  Bases: Request

                  Configure a provider's routing.

                  Source code in src/aclientp/schema/providers.py
                  class SetProviderRequest(Request):
                      """Configure a provider's routing."""
                  
                      provider_id: ProviderId
                      """Provider ID to configure."""
                  
                      api_type: LlmProtocol
                      """Protocol type for this provider."""
                  
                      base_url: str
                      """Base URL for requests sent through this provider."""
                  
                      headers: dict[str, str] = Field(default_factory=dict)
                      """Full headers map for this provider (may include authorization headers)."""
                  

                  api_type instance-attribute

                  api_type: LlmProtocol
                  

                  Protocol type for this provider.

                  base_url instance-attribute

                  base_url: str
                  

                  Base URL for requests sent through this provider.

                  headers class-attribute instance-attribute

                  headers: dict[str, str] = Field(default_factory=dict)
                  

                  Full headers map for this provider (may include authorization headers).

                  provider_id instance-attribute

                  provider_id: ProviderId
                  

                  Provider ID to configure.

                  SetProviderResponse

                  Bases: Response

                  Response to providers/set.

                  Source code in src/aclientp/schema/providers.py
                  class SetProviderResponse(Response):
                      """Response to ``providers/set``."""