Skip to content

fix(pydantic-ai): Remove Agent.run_stream_events() patch#6281

Merged
alexander-alderman-webb merged 1 commit into
masterfrom
webb/pydantic-ai/remove-patch
May 18, 2026
Merged

fix(pydantic-ai): Remove Agent.run_stream_events() patch#6281
alexander-alderman-webb merged 1 commit into
masterfrom
webb/pydantic-ai/remove-patch

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

Description

The method calls Agent.run() behind a memory stream, and we already patch Agent.run().

Issues

Closes #6254

Reminders

@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner May 18, 2026 06:01
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Codecov Results 📊

282 passed | Total: 282 | Pass Rate: 100% | Execution Time: 43.25s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14761 uncovered lines.

Files with missing lines (1)
File Patch % Lines
agent_run.py 0.00% ⚠️ 86 Missing

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb changed the title fix(pydantic-ai): Remove Agent.run_stream_events patch fix(pydantic-ai): Remove Agent.run_stream_events() patch May 18, 2026
@alexander-alderman-webb alexander-alderman-webb merged commit eed1a3a into master May 18, 2026
156 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/pydantic-ai/remove-patch branch May 18, 2026 09:43
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.

PydanticAIIntegration breaks Agent.run_stream_events for pydantic-ai >= 1.93 (returns async_generator instead of AgentEventStream context manager)

2 participants