Add program manager #30

Merged
0950726 merged 8 commits from feat/norms-and-goals-program into dev 2025-11-25 11:20:51 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ce058c3808 - Show all commits

View File

@@ -52,7 +52,7 @@ class BDIProgramManager(BaseAgent):
try: try:
program = Program.model_validate_json(body) program = Program.model_validate_json(body)
except ValidationError as e: except ValidationError as e:
self.logger.error("Received an invalid program.", exc_info=e) self.logger.exception("Received an invalid program.")
continue continue
await self._send_to_bdi(program) await self._send_to_bdi(program)

View File

@@ -17,7 +17,7 @@ class LLMInstructions:
"Try to learn the user's name during conversation.", "Try to learn the user's name during conversation.",
] ]
def __init__(self, norms: list[str] = None, goals: list[str] = None): def __init__(self, norms: list[str] | None = None, goals: list[str] | None = None):
self.norms = norms or self.default_norms() self.norms = norms or self.default_norms()
self.goals = goals or self.default_goals() self.goals = goals or self.default_goals()