Skip to content

Commit 5ac44f7

Browse files
committed
tool_call handler fix
1 parent 7294995 commit 5ac44f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/astra_assistants/astra_assistants_event_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def on_tool_call_done(self, tool_call):
2626
self.tool_call_results = self.run_tool(tool_call)
2727
if not isinstance(self.tool_call_results, str) and self.tool_call_results is not None:
2828
tool_call_results_string = self.tool_call_results["output"].to_string()
29+
else:
30+
tool_call_results_string = self.tool_call_results
2931
self.tool_output = ToolOutput(
3032
tool_call_id=tool_call.id,
3133
output=tool_call_results_string

0 commit comments

Comments
 (0)