jafhaponiuk commited on
Commit
ae86d09
·
verified ·
1 Parent(s): 7066448

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +3 -1
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'})}")