Run commands and return final output. Queries to shell_run must ALWAYS have this structure: {\"commands\": query}.\n", and query should be a command string.
(commands: str)
| 151 | |
| 152 | @tool.get("/shell_run") |
| 153 | def shell_run(commands: str): |
| 154 | '''Run commands and return final output. |
| 155 | Queries to shell_run must ALWAYS have this structure: {\"commands\": query}.\n", |
| 156 | and query should be a command string. |
| 157 | ''' |
| 158 | return process.run(commands) |
| 159 | |
| 160 | return tool |