yera.setup.provider_setup.anthropic

Obtain and validate Anthropic provider configuration.

Symbols

class AnthropicProviderSetup — Provide presentation-independent Anthropic setup operations.

AnthropicProviderSetup

Provide presentation-independent Anthropic setup operations.

Automatic discovery looks for the conventional Anthropic API-key environment variable. Validation resolves the configured API-key reference from either the environment or the protected credential store, then checks its format locally. It does not contact Anthropic.

Attributes

provider_type

Configuration key for the Anthropic provider.

display_name

Human-readable provider name shown during setup.

dependencies

Python import paths required by the integration.

connection_cls

Anthropic connection schema produced by the integration.

Methods

get_config — Obtain Anthropic configuration from the current environment.
validate — Validate an Anthropic connection's API-key reference locally.

AnthropicProviderSetup.get_config

get_config() → SetupResult[tuple[AnthropicConnection, ...]]

Obtain Anthropic configuration from the current environment.

Returns

type: SetupResult[tuple[AnthropicConnection, ...]]

A result containing a connection referencing ANTHROPIC_API_KEY when it is present. Otherwise, the result contains no configuration.

AnthropicProviderSetup.validate

validate(
    config: AnthropicConnection,
    secret_store: SecretStore | None = None,
) → SetupResult[AnthropicConnection]

Validate an Anthropic connection's API-key reference locally.

The reference may point to an environment variable or an entry in the protected credential store. Validation checks the resolved key's format without contacting Anthropic.

Parameters

config
type: AnthropicConnection

Anthropic connection containing the API-key reference.

secret_store
type: SecretStore | None = None

Optional protected store used to resolve the API key.

Returns

type: SetupResult[AnthropicConnection]

The supplied configuration and any blocking validation errors.