Skip to content

Commit 4e88db4

Browse files
committed
fix: return False for uncaught conditional with has_tool_calls
1 parent b023adb commit 4e88db4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dapr_agents/types/message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def has_tool_calls(self) -> bool:
252252
return True
253253
if isinstance(self.tool_calls, ToolCall):
254254
return True
255+
return False
255256

256257

257258
class ToolMessage(BaseMessage):

0 commit comments

Comments
 (0)