PythonExecutorToolWithInputs / tool_config.json
Noodle-bg's picture
Upload tool
531f682 verified
raw
history blame
No virus
630 Bytes
{
"description": "This tool executes Python code with given inputs. It takes a single input containing:1. Python code to execute.2. A line containing only '#inputs' (without quotes).3. Input values, one per line, to be used when the code calls input().For example if there are 2 input funtion calls in the code with first taking 2 arguments and second taking 1:12 43\n94The tool returns the outputs(if multiple or else single) of the executed code as a string.",
"inputs": "['text']",
"name": "python_executor_with_test_inputs",
"output_type": "<class 'str'>",
"tool_class": "python_tool.PythonExecutorToolWithInputs"
}