Skip to content

Commit b023adb

Browse files
committed
fix: add None return for uncaught conditional
1 parent 04d50a8 commit b023adb

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
@@ -240,6 +240,7 @@ def get_tool_calls(self) -> Optional[List[ToolCall]]:
240240
return self.tool_calls
241241
if isinstance(self.tool_calls, ToolCall):
242242
return [self.tool_calls]
243+
return None
243244

244245
def has_tool_calls(self) -> bool:
245246
"""

0 commit comments

Comments
 (0)