Skip to content

Added Antropic AI Model Support - #188

Merged
Iamsdt merged 4 commits into
mainfrom
feat/anthropic-provider
Sep 7, 2026
Merged

Added Antropic AI Model Support#188
Iamsdt merged 4 commits into
mainfrom
feat/anthropic-provider

Conversation

@Iamsdt

@Iamsdt Iamsdt commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces native Anthropic Claude support to the codebase, making Claude models first-class citizens alongside OpenAI and Google providers. It updates documentation, installation instructions, and the core agent implementation to support Anthropic's APIs, including advanced features like server tools, prompt caching, and token counting. The changes also clarify provider selection, add new extras for Anthropic backends, and correct prior documentation that implied but did not provide native Claude support.

Major Anthropic Claude Integration

  • Added a native Anthropic provider to the agent, supporting direct Claude API, Vertex AI, and Bedrock backends, with automatic parameter handling and support for streaming, tool calling, multimodal input, prompt caching, and server tools. [1] [2] [3] [4]
  • Implemented Anthropic-specific request helpers and mixins in agentflow/core/graph/agent_internal/anthropic.py, including request assembly, parameter mapping, and token counting.

Documentation and Installation Updates

  • Updated documentation (README.md, CLAUDE.md, .github/copilot-instructions.md, CONTRIBUTING.md) to reflect native Anthropic support, new extras (anthropic, anthropic-vertex, anthropic-bedrock, all), and correct prior misleading statements about Claude support. [1] [2] [3] [4] [5] [6] [7]

Provider Detection and Selection Improvements

  • Enhanced provider detection logic to recognize anthropic/ and claude/ model prefixes, and clarified the use of the anthropic_backend selector for different Claude backends. [1] [2]

Bug Fixes and Breaking Changes

  • Fixed issues where use_vertex_ai=True incorrectly routed Claude models to Google GenAI, and where model prefixes were not stripped before sending requests.
  • Introduced breaking changes: anthropic/ and claude/ prefixes now select the native Anthropic provider by default; explicit provider override is required to use OpenAI-compatible endpoints.

Extras and Development Workflow

  • Added new install extras for Anthropic providers and updated development/CI workflows to include Anthropic in editable installs. [1] [2] [3] [4]

These changes make Anthropic Claude models fully supported and configurable, improve the clarity and accuracy of documentation, and ensure provider selection is robust and explicit.

Iamsdt added 4 commits August 24, 2026 02:41
- Introduced tests for prompt caching, token counting, server tools, and batch processing in `test_anthropic_features.py`.
- Implemented provider detection, client construction, and request assembly tests in `test_anthropic_provider.py`.
- Created tests for pure Anthropic request translation in `test_anthropic_request.py`.
- Enhanced LLM call tests to include Anthropic model dispatching and parameter handling in `test_call_llm.py`.
@Iamsdt
Iamsdt merged commit b96124b into main Sep 7, 2026
6 of 7 checks passed
@Iamsdt
Iamsdt deleted the feat/anthropic-provider branch September 7, 2026 07:05
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