0

I am building an agent that can write and execute code with the PythonREPLTool to provide answers to questions. But I found that the agent often writes Python code that has "input()" to request input from the user.

I do not want the agent to execute code with "input()". Is there a way to forbid the execution of code with "input()" or simply add a timeout to the code execution process if the agent-generated code waits for input for a long time?

(I have tried the max_execution_time when initializing the agent but that does not seem to work.)

Troyanovsky
  • 53
  • 1
  • 3

0 Answers0