fix: correct typing, simplify logs

ref: N25B-299
This commit is contained in:
Twirre
2025-11-25 10:52:18 +00:00
parent 11b5345ae7
commit ce058c3808
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -17,7 +17,7 @@ class LLMInstructions:
"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.goals = goals or self.default_goals()