Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -182,5 +182,7 @@ if __name__ == "__main__":
|
|
| 182 |
# Test Python REPL Tool
|
| 183 |
print("\n--- Python REPL Tool Test ---")
|
| 184 |
print(f"Python REPL '2 + 2': {python_repl_tool.invoke({'code': '2 + 2'})}")
|
| 185 |
-
print(f"Python REPL 'len(\'hello\')': {python_repl_tool.invoke({'code': 'len(\'hello\')'})}")
|
|
|
|
|
|
|
| 186 |
print(f"Python REPL error: {python_repl_tool.invoke({'code': '10 / 0'})}")
|
|
|
|
| 182 |
# Test Python REPL Tool
|
| 183 |
print("\n--- Python REPL Tool Test ---")
|
| 184 |
print(f"Python REPL '2 + 2': {python_repl_tool.invoke({'code': '2 + 2'})}")
|
| 185 |
+
#print(f"Python REPL 'len(\'hello\')': {python_repl_tool.invoke({'code': 'len(\'hello\')'})}")
|
| 186 |
+
test_code_len = 'len("hello")'
|
| 187 |
+
print(f"Python REPL '{test_code_len}': {python_repl_tool.invoke({'code': test_code_len})}")
|
| 188 |
print(f"Python REPL error: {python_repl_tool.invoke({'code': '10 / 0'})}")
|