Commit fa70cc9
fix: handle PartEndEvent from pydantic-ai 1.9.0+ (#1240)
PartEndEvent was added in pydantic-ai v1.9.0 (PR #2923) as part of the
Vercel AI Data Stream Protocol support. This event signals when a part
is complete during streaming.
Changes:
- Import PartEndEvent from pydantic_ai.messages
- Add handler in _process_pydantic_event to acknowledge PartEndEvent
without emitting a Marvin event (completion is handled via other
events like FunctionToolCallEvent and FinalResultEvent)
- Update pydantic-ai dependency from >=0.7.2 to >=1.9.0 to ensure
PartEndEvent is available
This fixes the "Unknown event type: PartEndEvent" warnings that started
appearing after pydantic-ai was updated.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent f3b7c13 commit fa70cc9
3 files changed
+29
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
239 | 247 | | |
240 | 248 | | |
241 | 249 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments