AnthropicServiceLLMClient

AnthropicServiceLLMClient targets the official Anthropic API via the anthropic SDK.

Default behavior

  • Default model: claude-3-5-haiku-latest

  • Remote execution through Anthropic service endpoints

Constructor-first usage

from design_research_agents import AnthropicServiceLLMClient
from design_research_agents.llm import LLMMessage, LLMRequest

client = AnthropicServiceLLMClient()
response = client.generate(
    LLMRequest(
        messages=(LLMMessage(role="user", content="Give one concise architecture risk."),),
        model=client.default_model(),
    )
)

Dependencies and environment

  • Install provider SDK extra: pip install -e ".[anthropic]"

  • ANTHROPIC_API_KEY (or pass api_key directly)

  • Network access to Anthropic API

Examples

  • examples/clients/anthropic_service_client.py

Attribution