yera.providers.anthropic_common

Common infra for accessing Anthropic services.

Symbols

def get_anthropic_client — Build an anthropic client object from an anthropic connection object.

get_anthropic_client

get_anthropic_client(
    connection: AnthropicConnection,
) → Anthropic

Build an anthropic client object from an anthropic connection object.

This will try to get the api key from the connection's specified location and then use it to build a client.