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 efcac44 commit 62d975aCopy full SHA for 62d975a
pydantic_ai_slim/pydantic_ai/ag_ui.py
@@ -358,13 +358,7 @@ async def run(
358
for tool in run_input.tools
359
]
360
)
361
- # Maintain the current user toolsets if they exist, otherwise use the provided toolset.
362
- user_toolsets: list[AbstractToolset[AgentDepsT]] = (
363
- list(self.agent._user_toolsets) if toolsets is None else list(toolsets) # type: ignore[reportPrivateUsage]
364
- )
365
- # Add the AG-UI toolset to the user toolsets.
366
- user_toolsets.append(toolset)
367
- toolsets = user_toolsets
+ toolsets = list(toolsets or []) + [toolset]
368
369
try:
370
yield encoder.encode(
0 commit comments