Spaces:
Running
Running
|
Download agents/tiny-local/prompts/agent.system.tool.code_exe.md from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/agents/tiny-local/prompts/agent.system.tool.code_exe.md
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/agents/tiny-local/prompts/agent.system.tool.code_exe.md
-
curl -L -o agent.system.tool.code_exe.md https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/agents/tiny-local/prompts/agent.system.tool.code_exe.md
1.04 kB
code_execution_tool
Run terminal, Python, or Node.js commands.
Arguments in tool_args:
runtime:terminal,python,nodejs, oroutputcode: command or script codesession: terminal session id; default0reset: kill a session before running;trueorfalse
Rules:
- Put the command or script in
code. - Use
runtime=outputto poll running work. - Use
inputfor interactive terminal prompts. - If a session is stuck, call this tool again with the same
sessionandreset=true. - Do not claim success from timeout output or a still-running command.
- When counting files, prefer
findoverlsso hidden files and type filters are handled.
Examples:
{"tool_name":"code_execution_tool","tool_args":{"runtime":"terminal","session":0,"reset":false,"code":"ls -1 /tmp | wc -l"}}
{"tool_name":"code_execution_tool","tool_args":{"runtime":"python","session":0,"reset":false,"code":"import os\nprint(os.getcwd())"}}
{"tool_name":"code_execution_tool","tool_args":{"runtime":"output","session":0}}