We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3edda9 commit 250927bCopy full SHA for 250927b
pydantic_ai_slim/pydantic_ai/agent/abstract.py
@@ -521,7 +521,7 @@ async def on_complete() -> None:
521
messages.append(_messages.ModelRequest(parts))
522
523
yield StreamedRunResult(
524
- list(messages),
+ messages,
525
graph_ctx.deps.new_message_index,
526
stream,
527
on_complete,
@@ -537,7 +537,7 @@ async def on_complete() -> None:
537
# if a tool function raised CallDeferred or ApprovalRequired.
538
# In this case there's no response to stream, but we still let the user access the output etc as normal.
539
540
- graph_ctx.state.message_history,
+ list(graph_ctx.state.message_history),
541
542
run_result=agent_run.result,
543
)
0 commit comments