helloparthshah commited on
Commit
b69c3f6
·
1 Parent(s): 8b2fc7e

Removing test file

Browse files
Files changed (1) hide show
  1. tools/test.py +0 -51
tools/test.py DELETED
@@ -1,51 +0,0 @@
1
-
2
- import importlib
3
-
4
- __all__ = ['ToolCreator']
5
-
6
-
7
- class ToolCreator():
8
- dependencies = ["os"]
9
-
10
- inputSchema = {
11
- "name": "ToolCreator",
12
- "description": "Creates a tool for the given function",
13
- "parameters": {
14
- "type": "object",
15
- "properties": {
16
- "name": {
17
- "type": "string",
18
- "description": "The name of the tool to create",
19
- },
20
- "content": {
21
- "type": "string",
22
- "description": "The content of the tool to create",
23
- },
24
- "required": ["name", "content"],
25
- },
26
- }
27
- }
28
-
29
- def __init__(self):
30
- pass
31
-
32
- def run(self, **kwargs):
33
- print("Running Tool Creator")
34
- name = kwargs.get("name")
35
- content = kwargs.get("content")
36
- print(f"Tool Name: {name}")
37
- print(f"Tool Content: {content}")
38
- # Create the tool file
39
- tool_file_path = f"tools/{name}.py"
40
- with open(tool_file_path, "w") as tool_file:
41
- tool_file.write(content)
42
- print(f"Tool file created at {tool_file_path}")
43
- return {
44
- "status": "success",
45
- "message": "Tool created successfully",
46
- "error": None,
47
- "output": {
48
- "tool_file_path": tool_file_path,
49
- "tool_name": name,
50
- }
51
- }