in roast/roast.py [0:0]
def make_agent(llm, name: str, opponent: str, roastee: str) -> Agent:
"""Create a no holds barred, quick quip roast agent.
Args:
llm (LLM): The language model instance to use for generating responses.
name (str): The name of the roast agent.
opponent (str): The opponent in the roast battle.
roastee (str): The main subject of the roast.
Returns:
Agent: Configured roast agent for sharp, uncensored exchanges with focus
on the roastee.
"""
role = f"Uncensored Quip Master ({name})"
goal = f"Deliver sharp, focused roasts about {roastee}, using {opponent} as a" " foil for contrast and engagement."
backstory = (
f"Known as '{name}', your comedic aim is to craft biting quips about"
f" {roastee}, skillfully responding to {opponent}'s retorts. Your primary"
f" focus is to scrutinize {roastee}'s eccentricities and controversies,"
f" while subtly reminding {opponent} of their own follies and"
" shortcomings related to their efforts. Maintain a comedic edge with"
f" quips that keep {roastee} as the central theme."
)
return Agent(llm=llm, role=role, goal=goal, backstory=backstory, verbose=True)