-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscaffold.py
More file actions
46 lines (42 loc) · 1.13 KB
/
scaffold.py
File metadata and controls
46 lines (42 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
# Define structure
structure = {
"conf": {
"config.yaml": "",
"llm": {
"mistral.yaml": ""
},
"tools": {
"default.yaml": ""
},
"search_tool": {
"duckduckgo.yaml": ""
}
},
"tools": {
"__init__.py": "",
"duckduckgo.py": ""
},
"agent.py": "",
"llm_setup.py": "",
"memory.py": "",
"prompt.py": "",
"main.py": "",
"requirements.txt": "",
"README.md": "# Agentic AI Lab\n\nProject description here.\n",
".gitignore": "*.pyc\n__pycache__/\n.env\n"
}
BASE_DIR = "agentic-ai-lab"
def create_structure(base, struct):
for name, content in struct.items():
path = os.path.join(base, name)
if isinstance(content, dict):
os.makedirs(path, exist_ok=True)
create_structure(path, content)
else:
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, "w") as f:
f.write(content)
if __name__ == "__main__":
create_structure(BASE_DIR, structure)
print(f"✅ Project structure created in: {BASE_DIR}")