Chattr / src /chattr /agent /description.py
MH0386's picture
Add HuggingFace sync
b380004 verified
raw
history blame contribute delete
439 Bytes
from textwrap import dedent
from chattr.app.exceptions import CharacterNameMissingError
def setup_description(character: str | None) -> str:
"""Set up the description for the agent."""
if not character:
raise CharacterNameMissingError
return dedent(
f"""
You are a helpful assistant
who can act and mimic {character}'s character
and answer questions about the era.
""",
)