Dave Aitel
08/25/2024, 5:10 PMclass CommandRunnerTool(BaseTool):
name = "CommandRunnerTool"
description = "Tool to execute a shell command. Returns the STDOUT and STDERR from the executed command."
args_schema = CommandRunnerInput
def __init__(self):
super().__init__()
self.args_schema = CommandRunnerInput
def _run(self, command: str) -> str:
"""