45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
import os
|
|
|
|
project_structure = {
|
|
"README.md": "",
|
|
"requirements.txt": "",
|
|
"pyproject.toml": "",
|
|
".env.example": "",
|
|
".gitignore": "",
|
|
"Dockerfile": "",
|
|
"src/__init__.py": "",
|
|
"src/config/__init__.py": "",
|
|
"src/config/llm_config.py": "",
|
|
"src/prompts/__init__.py": "",
|
|
"src/prompts/manager.py": "",
|
|
"src/prompts/templates/__init__.py": "",
|
|
"src/prompts/templates/chat_templates.py": "",
|
|
"src/prompts/validation/__init__.py": "",
|
|
"src/prompts/validation/prompt_validator.py": "",
|
|
"src/llm/__init__.py": "",
|
|
"src/llm/clients/__init__.py": "",
|
|
"src/llm/clients/openai_client.py": "",
|
|
"src/llm/orchestrator.py": "",
|
|
"src/chains/__init__.py": "",
|
|
"src/chains/base_chain.py": "",
|
|
"src/agents/__init__.py": "",
|
|
"src/agents/base_agent.py": "",
|
|
"src/evaluation/__init__.py": "",
|
|
"src/evaluation/prompt_evaluator.py": "",
|
|
"scripts/evaluate_prompts.py": "",
|
|
"tests/__init__.py": "",
|
|
"tests/unit/test_prompt_manager.py": "",
|
|
}
|
|
|
|
def create_structure(base_path="."):
|
|
for path, content in project_structure.items():
|
|
full_path = os.path.join(base_path, path)
|
|
dir_path = os.path.dirname(full_path)
|
|
os.makedirs(dir_path, exist_ok=True)
|
|
with open(full_path, "w") as f:
|
|
f.write(content)
|
|
print("✅ Project structure generated successfully.")
|
|
|
|
if __name__ == "__main__":
|
|
create_structure()
|