Repository navigation
Commit edfc201
fix(pydantic-ai): pass the agent iter span to trace capture
> 🤖 **This text was AI-generated.**
After #1192 added an Agent.iter() root span and #1194 made trace
capture require the active agent span, direct iteration failed before
it entered the underlying agent. Pass the existing iter span so
Harness step persistence records lineage on it, as it does for run().
This mirrors the tracing fix in #1198 to unblock the rebase onto main.
Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>1 parent dd21742 commit edfc201
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments