yera.setup.provider_setup.anthropic
Obtain and validate Anthropic provider configuration.
Symbols
AnthropicProviderSetup
ProviderSetup[AnthropicConnection]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
Configuration key for the Anthropic provider.
Human-readable provider name shown during setup.
Python import paths required by the integration.
Anthropic connection schema produced 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,
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
Anthropic connection containing the API-key reference.
Optional protected store used to resolve the API key.
Returns
The supplied configuration and any blocking validation errors.