yera.setup.provider_setup.anthropic
Obtain and validate Anthropic provider configuration.
Symbols
AnthropicProviderSetup
ProviderSetup[AnthropicConnection]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
Configuration key for the Anthropic provider.
Python import paths required by the integration.
Methods
AnthropicProviderSetup.get_config
get_config() → SetupResult[tuple[AnthropicConnection, ...]]Obtain Anthropic configuration from the current environment.
Returns
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
Anthropic connection containing the environment-variable name.
Returns
The supplied configuration and any blocking validation errors.