Skip to content

Commit 2efc727

Browse files
committed
typing
1 parent 9a4c0a3 commit 2efc727

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/components/engines/python/agent/tools/interpreter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ def interpret(
142142
retry_count: int = 0,
143143
) -> E2BToolOutput:
144144
"""
145-
Execute python code in a Jupyter notebook cell, the toll will return result, stdout, stderr, display_data, and error.
146-
If the code need to use a file, ALWAYS pass the file path in the sandbox_files argument.
145+
Execute Python code in a Jupyter notebook cell. The tool will return the result, stdout, stderr, display_data, and error.
146+
If the code needs to use a file, ALWAYS pass the file path in the sandbox_files argument.
147147
You have a maximum of 3 retries to get the code to run successfully.
148148
149149
Parameters:
150-
code (str): The python code to be executed in a single cell.
151-
sandbox_files (List[str]): List of local file paths be used the the code, the tool will throw error if a file is not found.
150+
code (str): The Python code to be executed in a single cell.
151+
sandbox_files (List[str]): List of local file paths to be used by the code. The tool will throw an error if a file is not found.
152152
retry_count (int): Number of times the tool has been retried.
153153
"""
154154
if retry_count > 2:
@@ -160,7 +160,7 @@ def interpret(
160160
display_data="",
161161
error="",
162162
),
163-
error_message="Tool failed to execute code successfully after 3 retries. Explain the error to the user and suggest a fix.",
163+
error_message="Failed to execute the code after 3 retries. Explain the error to the user and suggest a fix.",
164164
retry_count=retry_count,
165165
)
166166

0 commit comments

Comments
 (0)