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 48ca22a commit f541bfbCopy full SHA for f541bfb
pydantic_ai_slim/pydantic_ai/ui/ag_ui/app.py
@@ -125,7 +125,7 @@ async def run_agent(request: Request) -> Response:
125
# `dispatch_request` will store the frontend state from the request on `deps.state` (if it implements the `StateHandler` protocol),
126
# so we need to copy the deps to avoid different requests mutating the same deps object.
127
nonlocal deps
128
- if isinstance(deps, StateHandler):
+ if isinstance(deps, StateHandler): # pragma: no branch
129
deps = replace(deps)
130
131
return await AGUIAdapter[AgentDepsT, OutputDataT].dispatch_request(
0 commit comments