in roast/roast.py [0:0]
def make_judging_agent(llm, name: str, judgees: list) -> Agent:
"""Create a judging agent for evaluating roast battles.
Args:
llm (LLM): The language model instance to use for judging.
name (str): The name of the judging agent.
judgees (list): Names of the participants being judged.
Returns:
Agent: Configured judging agent with relevant roles and goals.
"""
role = f"Impartial Roast Judge ({name})"
goal = (
f"Fairly evaluate and decide the winner between {judgees[0]} and" f" {judgees[1]} based on their wit and humor."
)
backstory = (
f"You are '{name}', an impartial and seasoned connoisseur of humor tasked"
f" with evaluating a roast battle between {judgees[0]} and {judgees[1]}."
" Your mission is to judge their exchanges with a keen eye for wit,"
" humor, and overall impact, declaring a winner each round."
)
return Agent(llm=llm, role=role, goal=goal, backstory=backstory, verbose=True)