Evaluation
Evaluate
Run comprehensive evaluation with 20+ built-in metrics including RAG, agentic, and multi-turn evaluations
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
Playval
Playval
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)
Answer Relevancy
Answer Relevancy
Measures how well the response addresses the user’s question. Penalizes
incomplete or off-topic answers.
Faithfulness
Faithfulness
Ensures all claims in the response are supported by the provided context.
Detects hallucinations and unsupported statements.
Contextual Precision
Contextual Precision
Evaluates whether relevant context chunks are ranked higher than irrelevant
ones. Measures retrieval quality.
Contextual Recall
Contextual Recall
Checks if all necessary information from the ground truth is present in the
retrieved context.
Contextual Relevancy
Contextual Relevancy
Measures the proportion of relevant information in the retrieved context.
Penalizes noisy or irrelevant chunks.
Agentic Workflows
Task Completion
Task Completion
Evaluates whether the agent successfully completed the requested task
end-to-end.
Tool Correctness
Tool Correctness
Verifies that the agent selected and executed the correct tools for the task.
Argument Correctness
Argument Correctness
Checks if tool/function arguments are accurate and properly formatted.
Step Efficiency
Step Efficiency
Measures if the agent completed the task with minimal unnecessary steps.
Plan Adherence
Plan Adherence
Evaluates how well the agent followed its planned sequence of actions.
Plan Quality
Plan Quality
Assesses the quality of the agent’s initial plan before execution.
Safety & Security
Bias
Bias
Detects biased language or unfair treatment based on protected characteristics (race, gender, religion, etc.).
Toxicity
Toxicity
Identifies toxic, offensive, or harmful language in responses.
Non-Advice
Non-Advice
Ensures the agent doesn’t provide advice in domains requiring professional
expertise (legal, medical, financial).
Misuse
Misuse
Detects attempts to misuse the agent for harmful purposes (disinformation,
illegal activities, etc.).
PII Leakage
PII Leakage
Checks if the response inappropriately reveals personally identifiable
information (emails, phone numbers, addresses, SSNs).
Role Violation
Role Violation
Ensures the agent doesn’t break character or violate system-level instructions.
Multi-Turn Conversations
Turn Relevancy
Turn Relevancy
Evaluates if each turn stays relevant to the ongoing conversation.
Role Adherence
Role Adherence
Checks if the agent maintains its assigned persona and role throughout the
conversation.
Knowledge Retention
Knowledge Retention
Measures if the agent remembers and references information from earlier turns.
Conversation Completeness
Conversation Completeness
Evaluates if all aspects of the user’s multi-part query were addressed across
turns.
Goal Accuracy
Goal Accuracy
Assesses whether the conversation achieves the user’s stated goal by the end.
Tool Use
Tool Use
Evaluates appropriate tool usage throughout the multi-turn interaction.
Topic Adherence
Topic Adherence
Checks if the conversation stays on-topic without unnecessary tangents.
Turn Faithfulness
Turn Faithfulness
Per-turn version of faithfulness - ensures each response is grounded in
context.
Turn Contextual Precision
Turn Contextual Precision
Evaluates contextual precision for each individual turn in the conversation.
Turn Contextual Recall
Turn Contextual Recall
Measures contextual recall at each turn of the conversation.
Turn Contextual Relevancy
Turn Contextual Relevancy
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 Scorernumber
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
contextparameter - Multi-turn metrics require
conversation_historyparameter - Agentic metrics require
tool_callsand optionallyagent_plan - Safety metrics work on any input/output pair
- Use
playvalfor custom evaluation criteria viaexpected_behavior - Combine multiple metric types in a single request for comprehensive evaluation

