fix: default norms and goals should be lists
ref: N25B-299
This commit is contained in:
@@ -5,17 +5,17 @@ class LLMInstructions:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_norms() -> str:
|
def default_norms() -> list[str]:
|
||||||
return """
|
return [
|
||||||
Be friendly and respectful.
|
"Be friendly and respectful.",
|
||||||
Make the conversation feel natural and engaging.
|
"Make the conversation feel natural and engaging.",
|
||||||
""".strip()
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_goals() -> str:
|
def default_goals() -> list[str]:
|
||||||
return """
|
return [
|
||||||
Try to learn the user's name during conversation.
|
"Try to learn the user's name during conversation.",
|
||||||
""".strip()
|
]
|
||||||
|
|
||||||
def __init__(self, norms: list[str] = None, goals: list[str] = None):
|
def __init__(self, norms: list[str] = None, goals: list[str] = None):
|
||||||
self.norms = norms or self.default_norms()
|
self.norms = norms or self.default_norms()
|
||||||
|
|||||||
Reference in New Issue
Block a user