read and write tools, moved schemas to tool/__init__
This commit is contained in:
@@ -25,3 +25,19 @@ async def bash(command: str, sandbox=None) -> str:
|
||||
|
||||
except Exception as e:
|
||||
return f"Error: Unexpected failure: {e}"
|
||||
|
||||
|
||||
BASH_SCHEMA = {
|
||||
"name": "bash",
|
||||
"description": "Execute a bash command in the isolated sandbox environment. Use this to run shell commands, install packages, run scripts, etc.",
|
||||
"input_schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string",
|
||||
"description": "The bash command to execute (e.g., 'ls -la', 'python script.py', 'pip install requests')",
|
||||
}
|
||||
},
|
||||
"required": ["command"],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user