Skip to content

Commit 61ab573

Browse files
committed
Fix tests
1 parent d3158f5 commit 61ab573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/_agent_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def _prepare_messages(
175175
else:
176176
parts.extend(await self._sys_parts(run_context))
177177

178-
if user_prompt:
178+
if user_prompt is not None:
179179
parts.append(_messages.UserPromptPart(user_prompt))
180180
return messages, _messages.ModelRequest(parts)
181181

0 commit comments

Comments
 (0)