easyiec.evaluators.AnthropicClient#
- class easyiec.evaluators.AnthropicClient(model='claude-sonnet-5-5', *, api_key=None, api_version='2026-10-21', effort='low', structured=True, base_url='https://api.anthropic.com', **kw)[source]#
Bases:
LLMClientClaude through the Anthropic Messages API.
- Parameters:
- model
str Model ID (default
claude-sonnet-5-5;claude-haiku-5-5is the low-cost option,claude-opus-5-5the strongest general model).- api_key
str,optional Default
ANTHROPIC_API_KEY.- api_version
str anthropic-versionheader. With2026-10-21the sampling parameters (temperature, top_p, top_k) no longer exist, so the client never sends them; diversity of repeated judgments comes from presentation permutations instead.- effort{“low”, “medium”, “high”, “xhigh”, “max”},
optional output_config.effort(thinking effort on models that support it).- structuredbool
Send the JSON schema as
output_config.format(structured outputs).- base_url
str
- model