You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
457 B
13 lines
457 B
from swarms.agents.agent_judge import AgentJudge
|
|
|
|
# Initialize the agent judge
|
|
judge = AgentJudge(
|
|
agent_name="quality-judge", model_name="gpt-4", max_loops=2
|
|
)
|
|
|
|
# Example agent output to evaluate
|
|
agent_output = "The capital of France is Paris. The city is known for its famous Eiffel Tower and delicious croissants. The population is approximately 2.1 million people."
|
|
|
|
# Run evaluation with context building
|
|
evaluations = judge.run(task=agent_output)
|