Skip to content

Commit

Permalink
execute_code: update description to avoid trying to run all example c…
Browse files Browse the repository at this point in the history
…ode.
  • Loading branch information
smathot committed Apr 25, 2024
1 parent 2c52358 commit f52aecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigmund/tools/_execute_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class execute_code(BaseTool):
"""Execute Python and R code. Only use for code that should be executed. Don't use for example code."""
"""Execute Python and R code. Do not use this tool unless code should actually be executed. When executing Python, you can only use modules from the Python standard library."""

arguments = {
'language': {
Expand Down Expand Up @@ -58,4 +58,4 @@ def __call__(self, language, code):
'''
return 'Executing code ...', result, True
logger.error(f"Error: {response.status_code} with message: {response.content}")
return 'Failed to execute code', '', True
return 'Failed to execute code', '', True

0 comments on commit f52aecf

Please sign in to comment.