Skip to content

Commit

Permalink
fix handler to support old tools
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Aug 21, 2024
1 parent 59ece47 commit e2be7f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/astra_assistants/astra_assistants_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def run_tool(self, tool_call):
model: BaseModel = tool.get_model()
if issubclass(model, BaseModel):
self.arguments = model(**arguments)
else:
self.arguments = arguments
results = tool.call(self.arguments)
return results
except Exception as e:
Expand Down

0 comments on commit e2be7f9

Please sign in to comment.