This commit is contained in:
Michael Panchenko committed 2025-03-29 16:42:38 +01:00
1 parent 15bcbad3ff
commit 334b9c9768
2 files changed
+5 -6

No files matched your search

+4 -6
View File
@@ -23,15 +23,13 @@ class PromptFactory:
return mpl.get_item(self.lang_shortcode, self.fallback_mode)
def create_onboarding_prompt(self, *, system) -> str:
return self._format_prompt('onboarding_prompt', locals())
return self._format_prompt("onboarding_prompt", locals())
def create_think_about_collected_information(self) -> str:
return self._format_prompt('think_about_collected_information', locals())
return self._format_prompt("think_about_collected_information", locals())
def create_think_about_task_adherence(self) -> str:
return self._format_prompt('think_about_task_adherence', locals())
return self._format_prompt("think_about_task_adherence", locals())
def create_think_about_whether_you_are_done(self) -> str:
return self._format_prompt('think_about_whether_you_are_done', locals())
return self._format_prompt("think_about_whether_you_are_done", locals())
+1
View File
@@ -92,6 +92,7 @@ async def server_lifespan(mcp_server: FastMCP) -> AsyncIterator[SerenaMCPRequest
class MemoriesManager:
def __init__(self, memory_dir: str):
self._memory_dir = Path(memory_dir)
self._memory_dir.mkdir(parents=True, exist_ok=True)
def _get_memory_file_path(self, memory_file_name: str) -> Path:
return self._memory_dir / memory_file_name