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 d3158f5 commit 61ab573Copy full SHA for 61ab573
pydantic_ai_slim/pydantic_ai/_agent_graph.py
@@ -175,7 +175,7 @@ async def _prepare_messages(
175
else:
176
parts.extend(await self._sys_parts(run_context))
177
178
- if user_prompt:
+ if user_prompt is not None:
179
parts.append(_messages.UserPromptPart(user_prompt))
180
return messages, _messages.ModelRequest(parts)
181
0 commit comments