feat(agent): Add configurable system_prompt_filename to AgentConfig (#9265)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang
2025-06-21 18:21:52 -04:00
committed by GitHub
parent 99fd3f7bb2
commit a1479adfd3
5 changed files with 96 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ class CodeActAgent(Agent):
if self._prompt_manager is None:
self._prompt_manager = PromptManager(
prompt_dir=os.path.join(os.path.dirname(__file__), 'prompts'),
system_prompt_filename=self.config.system_prompt_filename,
)
return self._prompt_manager