python Pydantic AI Releases · · 2.42.0

Pydantic-AI v2.42.0 Enhances GitHub Copilot Integration and Fixes Bugs

sdkaigaengineerpython-agentic
breaking feature patch

This release for Pydantic-AI introduces a `GitHubCopilotProvider`, enabling integration with GitHub Copilot's OpenAI-compatible API. It also includes several bug fixes, such as honoring `anthropic_disallows_sampling_settings` in `BedrockConverseModel` and resolving non-object `$ref` definitions in function signatures. A compatibility note tightens validation for `DeferredToolResults.approvals` to reject invalid values. These updates improve integration capabilities and stability for developers building AI applications with Pydantic.

  • Add a GitHubCopilotProvider for GitHub Copilot's OpenAI-compatible API by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/8059
  • Honor anthropic_disallows_sampling_settings in BedrockConverseModel by @rscholz98 in https://github.com/pydantic/pydantic-ai/pull/7961
  • Resolve non-object $ref definitions inline in code-mode function signatures by @pydanty in https://github.com/pydantic/pydantic-ai/pull/8056
  • Validate ToolReturnContent without a Python call per JSON node by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7823
  • Preserve Anthropic recovery across normalized history by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/8040
Features (1)
  • Add a GitHubCopilotProvider for GitHub Copilot's OpenAI-compatible API by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/8059
Fixes (4)
  • Honor anthropic_disallows_sampling_settings in BedrockConverseModel by @rscholz98 in https://github.com/pydantic/pydantic-ai/pull/7961
  • Resolve non-object $ref definitions inline in code-mode function signatures by @pydanty in https://github.com/pydantic/pydantic-ai/pull/8056
  • Validate ToolReturnContent without a Python call per JSON node by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/7823
  • Preserve Anthropic recovery across normalized history by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/8040
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.42.0

Related releases