Skip to content

feat(models): add Anthropic provider support#74

Merged
galuszkm merged 1 commit into
mainfrom
feat/mg/anthropic-model
Jul 21, 2026
Merged

feat(models): add Anthropic provider support#74
galuszkm merged 1 commit into
mainfrom
feat/mg/anthropic-model

Conversation

@galuszkm

Copy link
Copy Markdown
Member

Description

Adds anthropic as a built-in model provider, enabling direct access to the Anthropic API (not via Bedrock).
Replaces match/case blocks in models.py and loaders.py with if chains for consistency.
Updates docs, README, and lockfile deps.

Related Issues

N/A

Type of Change

  • New feature

YAML / API Impact

New provider: anthropic value is supported in the models config block. Backwards-compatible — no existing provider keys or config structure changed.

models:
  claude:
    provider: anthropic
    model_id: claude-sonnet-4-6
    params:
      max_tokens: 4096  # required by the Anthropic API

Requires ANTHROPIC_API_KEY env var or params.client_args.api_key.

Testing

How have you tested the change?

  • I ran uv run just check (lint + type check)
  • I ran uv run just test for overall testing
  • I added or updated tests that prove my fix is effective or my feature works
  • I verified existing examples in examples/ still work

Checklist

  • I have read the CONTRIBUTING document
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- add `anthropic` as built-in provider with optional extra and import guard
- replace `match/case` with `if` chains for consistency across all providers
- update docs and README to list Anthropic alongside other providers
- bump lockfile deps (anyio, boto3, botocore, bedrock-agentcore, cffi)
@galuszkm
galuszkm merged commit 6cfc9d6 into main Jul 21, 2026
9 checks passed
@galuszkm
galuszkm deleted the feat/mg/anthropic-model branch July 21, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant