File size: 427 Bytes
d26280a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from pathlib import Path
from typing import Dict
from gpt_engineer.core.default.disk_memory import DiskMemory
class PrepromptsHolder:
def __init__(self, preprompts_path: Path):
self.preprompts_path = preprompts_path
def get_preprompts(self) -> Dict[str, str]:
preprompts_repo = DiskMemory(self.preprompts_path)
return {file_name: preprompts_repo[file_name] for file_name in preprompts_repo}
|