fix: default norms and goals should be lists
ref: N25B-299
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user