yera.providers.anthropic_common
Common infra for accessing Anthropic services.
Symbols
get_anthropic_client
get_anthropic_client(
connection: AnthropicConnection,
secret_store: SecretStore | None = None,
) → AnthropicBuild an Anthropic client from a configured connection.
Parameters
connection
type: AnthropicConnection
Anthropic connection containing an API-key reference.
secret_store
type: SecretStore | None = None
Optional store override for resolving a stored key.
Returns
type: Anthropic
Anthropic client authenticated with the resolved API key.
Raises
ProviderCredentialError
If the referenced API key cannot be resolved.