Skip to content

fix(pydantic-ai): Remove agent stack context variable#5958

Draft
alexander-alderman-webb wants to merge 6 commits intowebb/pydantic-ai/streaming-attributefrom
webb/pydantic-ai/remove-contextvar-stack
Draft

fix(pydantic-ai): Remove agent stack context variable#5958
alexander-alderman-webb wants to merge 6 commits intowebb/pydantic-ai/streaming-attributefrom
webb/pydantic-ai/remove-contextvar-stack

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

Description

Issues

Reminders

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (integrations) Instrument pyreqwest tracing by servusdei2018 in #5682

Bug Fixes 🐛

Pydantic Ai

  • Remove agent stack context variable by alexander-alderman-webb in #5958
  • Determine if response is streamed based on the method by alexander-alderman-webb in #5957

Internal Changes 🔧

Pydantic Ai

  • Remove dead Model.request patch by alexander-alderman-webb in #5956
  • Consolidate binary blob redaction tests to stop relying on SDK internals by alexander-alderman-webb in #5946

Other

  • (openai) Split token counting by API for easier deprecation by ericapisani in #5930
  • (opentelemetry) Ignore mypy error by alexander-alderman-webb in #5927
  • Fix license metadata in setup.py by sl0thentr0py in #5934
  • Update validate-pr workflow by stephanie-anderson in #5931

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Codecov Results 📊

14 passed | Total: 14 | Pass Rate: 100% | Execution Time: 3.12s

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 15908 uncovered lines.

Files with missing lines (5)
File Patch % Lines
ai_client.py 0.00% ⚠️ 145 Missing
tools.py 0.00% ⚠️ 88 Missing
agent_run.py 0.00% ⚠️ 86 Missing
invoke_agent.py 0.00% ⚠️ 81 Missing
utils.py 0.00% ⚠️ 78 Missing

Generated by Codecov Action

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