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: LLMClient

Claude through the Anthropic Messages API.

Parameters:
modelstr

Model ID (default claude-sonnet-5-5; claude-haiku-5-5 is the low-cost option, claude-opus-5-5 the strongest general model).

api_keystr, optional

Default ANTHROPIC_API_KEY.

api_versionstr

anthropic-version header. With 2026-10-21 the 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_urlstr

Examples using easyiec.evaluators.AnthropicClient#

Claude as the evaluator of a session

Claude as the evaluator of a session

Validating Claude as a judge

Validating Claude as a judge

You and Claude together in a notebook gallery

You and Claude together in a notebook gallery