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
- OpenAI Agents Python SDK v0.22.1 enhances tools, guardrails, and voice features OpenAI Agents SDK (Python) Releases ·
- Pydantic-AI v2.41.0 Adds Image Generation API, Deprecates `fallback_model` Pydantic AI Releases ·
- pydantic-ai v2.40.0 enhances real-time AI session control and agent events Pydantic AI Releases ·
- crewAI 1.15.20 Released with Platform Tool Fixes CrewAI Releases ·
- CrewAI 1.15.19 Introduces Clipper Integrations and Security Updates CrewAI Releases ·
- Pydantic-AI v2.39.0 Adds OpenAI GPT-6 Astra Support and Bug Fixes Pydantic AI Releases ·