mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 10:19:02 +00:00
Minor
This commit is contained in:
1 parent
15bcbad3ff
commit
334b9c9768
2 files changed
+5
-6
No files matched your search
@@ -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())
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user