Skip to content

Commit

Permalink
Python interpreter: make call async (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
lusmoura authored Jul 10, 2024
1 parent 71ebbae commit 6f83361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/tools/python_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PythonInterpreter(BaseTool):
def is_available(cls) -> bool:
return cls.INTERPRETER_URL is not None

def call(self, parameters: dict, **kwargs: Any):
async def call(self, parameters: dict, **kwargs: Any):
if not self.INTERPRETER_URL:
raise Exception("Python Interpreter tool called while URL not set")

Expand Down

0 comments on commit 6f83361

Please sign in to comment.