-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Is your feature request related to a problem? Please describe.
Microsoft and Anthropic have very recently announced a strategic partnership bringing Claude models to Azure AI Foundry (formerly Azure AI Studio).
While Pydantic AI currently offers first-class support for the standard Anthropic API, as well as cloud-specific integrations for AWS Bedrock and Google Vertex AI, there is currently no native support for Azure-hosted Anthropic models. Users wishing to use Claude on Azure must currently build custom providers to handle Azure-specific endpoints and authentication (Entra ID), which creates unnecessary friction for enterprise users within the Microsoft ecosystem.
Describe the solution you'd like
I would like to see a new model integration added for Azure, following the same pattern currently used for Bedrock and Vertex AI.
Specifically:
- Add an implementation (e.g.,
AnthropicAzureModel) that wraps theAnthropicFoundryclient recently added to the officialanthropicPython SDK. - Ensure the implementation supports Azure-specific authentication methods, particularly
Azure AD/Entra ID(viaazure-identity), similar to how other Azure integrations are handled. - Maintain API consistency with the existing
AnthropicBedrockModelandAnthropicVertexModelclasses to ensure a uniform experience across different cloud providers.
Describe alternatives you've considered
The current alternative is manually instantiating the AnthropicFoundry client and wrapping it in a custom generic model adapter, which is verbose and prone to configuration errors compared to a native Pydantic AI implementation.
Additional context
- Announcement: Microsoft and Anthropic announce strategic partnership
- SDK Support: The official
anthropicPython library has added theAnthropicFoundryclient to support this integration directly. More info here. Pydantic AI should leverage this upstream capability.