Skip to main content
POST
Evaluate agent responses using Playgent’s comprehensive suite of evaluation metrics. No setup required - access industry-standard RAG metrics (RAGAS), agentic workflow evaluations, multi-turn conversation analysis, and custom LLM-as-judge evaluations out of the box.

🎯 Built-in Evaluation Metrics

Playgent offers 29 evaluation metrics across five categories:

Custom Evaluations

General-purpose LLM-as-judge evaluation Evaluates response quality using a customizable rubric with GPT-4. Perfect for domain-specific quality assessment when standard metrics don’t apply. - Configurable evaluation criteria - Detailed reasoning output - Score from 0-1

RAG (Retrieval-Augmented Generation)

Measures how well the response addresses the user’s question. Penalizes incomplete or off-topic answers.
Ensures all claims in the response are supported by the provided context. Detects hallucinations and unsupported statements.
Evaluates whether relevant context chunks are ranked higher than irrelevant ones. Measures retrieval quality.
Checks if all necessary information from the ground truth is present in the retrieved context.
Measures the proportion of relevant information in the retrieved context. Penalizes noisy or irrelevant chunks.

Agentic Workflows

Evaluates whether the agent successfully completed the requested task end-to-end.
Verifies that the agent selected and executed the correct tools for the task.
Checks if tool/function arguments are accurate and properly formatted.
Measures if the agent completed the task with minimal unnecessary steps.
Evaluates how well the agent followed its planned sequence of actions.
Assesses the quality of the agent’s initial plan before execution.

Safety & Security

Detects biased language or unfair treatment based on protected characteristics (race, gender, religion, etc.).
Identifies toxic, offensive, or harmful language in responses.
Ensures the agent doesn’t provide advice in domains requiring professional expertise (legal, medical, financial).
Detects attempts to misuse the agent for harmful purposes (disinformation, illegal activities, etc.).
Checks if the response inappropriately reveals personally identifiable information (emails, phone numbers, addresses, SSNs).
Ensures the agent doesn’t break character or violate system-level instructions.

Multi-Turn Conversations

Evaluates if each turn stays relevant to the ongoing conversation.
Checks if the agent maintains its assigned persona and role throughout the conversation.
Measures if the agent remembers and references information from earlier turns.
Evaluates if all aspects of the user’s multi-part query were addressed across turns.
Assesses whether the conversation achieves the user’s stated goal by the end.
Evaluates appropriate tool usage throughout the multi-turn interaction.
Checks if the conversation stays on-topic without unnecessary tangents.
Per-turn version of faithfulness - ensures each response is grounded in context.
Evaluates contextual precision for each individual turn in the conversation.
Measures contextual recall at each turn of the conversation.
Evaluates contextual relevancy for each individual turn in the conversation.

Parameters

string
Evaluate an existing turn by ID
string
User input (for ad-hoc evaluation)
string
Agent output to evaluate
string
Description of expected behavior (used by Playval and other custom metrics)
array
Context documents for RAG evaluation metrics
string
Ground truth answer for correctness evaluation
array
Previous turns for multi-turn evaluation metrics
string
Agent’s planned steps (for agentic metrics like plan_adherence)
array
Tool calls made by the agent (for agentic metrics)
array
required
Array of metric names to evaluate. Choose from: Custom: playval RAG: answer_relevancy, faithfulness, contextual_precision, contextual_recall, contextual_relevancy Safety: bias, toxicity, non_advice, misuse, pii_leakage, role_violation Agentic: task_completion, tool_correctness, argument_correctness, step_efficiency, plan_adherence, plan_quality Multi-Turn: turn_relevancy, role_adherence, knowledge_retention, conversation_completeness, goal_accuracy, tool_use, topic_adherence, turn_faithfulness, turn_contextual_precision, turn_contextual_recall, turn_contextual_relevancy Or use custom scorer IDs created via Create Custom Scorer
number
Minimum passing score (default: 0.7)

Response

string
required
Unique evaluation identifier
boolean
required
Whether all scorers passed the threshold
object
required
Per-scorer results

Multi-Turn Example

For evaluating multi-turn conversations, include conversation history:

Agentic Evaluation Example

For evaluating agentic workflows with tool use:

Safety Evaluation Example

For evaluating safety and compliance:

Notes

  • RAG metrics require context parameter
  • Multi-turn metrics require conversation_history parameter
  • Agentic metrics require tool_calls and optionally agent_plan
  • Safety metrics work on any input/output pair
  • Use playval for custom evaluation criteria via expected_behavior
  • Combine multiple metric types in a single request for comprehensive evaluation