Skip to content

Commit

Permalink
Update _run_as_tool return type
Browse files Browse the repository at this point in the history
Co-authored-by: Pamella Bezerra <[email protected]>
  • Loading branch information
fjsj and pamella authored Jun 20, 2024
1 parent 3bbefcb commit e68c009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_ai_assistant/helpers/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def run(self, message: str, thread_id: int | None, **kwargs: Any) -> str:
**kwargs,
)["output"]

def _run_as_tool(self, message: str, **kwargs: Any):
def _run_as_tool(self, message: str, **kwargs: Any) -> str:
return self.run(message, thread_id=None, **kwargs)

def as_tool(self, description: str) -> BaseTool:
Expand Down

0 comments on commit e68c009

Please sign in to comment.