fix: default norms and goals should be lists

ref: N25B-299
This commit is contained in:
Twirre Meulenbelt
2025-11-24 20:28:34 +01:00
parent 8ea8d4a8d4
commit 3f22b854a7

View File

@@ -5,17 +5,17 @@ class LLMInstructions:
"""
@staticmethod
def default_norms() -> str:
return """
Be friendly and respectful.
Make the conversation feel natural and engaging.
""".strip()
def default_norms() -> list[str]:
return [
"Be friendly and respectful.",
"Make the conversation feel natural and engaging.",
]
@staticmethod
def default_goals() -> str:
return """
Try to learn the user's name during conversation.
""".strip()
def default_goals() -> list[str]:
return [
"Try to learn the user's name during conversation.",
]
def __init__(self, norms: list[str] = None, goals: list[str] = None):
self.norms = norms or self.default_norms()