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.

Configuration discovery looks for the conventional Anthropic API-key environment variable. Validation checks that the configured variable contains a plausibly formatted Anthropic API key.

Attributes

provider_type

Configuration key for the Anthropic provider.

dependencies

Python import paths required by the integration.

Methods

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

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,
) → SetupResult[AnthropicConnection]

Validate an Anthropic connection's API-key environment variable.

Parameters

config
type: AnthropicConnection

Anthropic connection containing the environment-variable name.

Returns

type: SetupResult[AnthropicConnection]

The supplied configuration and any blocking validation errors.