Conversation Helpfulness (conv_help)
Contents
Metric Description
Conversation helpfulness measures how helpful each assistant reply is for the user message it answers in a multi-turn chat.
A single-turn relevancy check can look fine while a later follow-up is ignored, an earlier answer is restated when the user asked something new, or a thread goes unanswered. Use this metric on support, product, or research chats when you want to know whether the assistant kept serving the current ask as the conversation moved on — and to compare prompt or model changes on real chat logs, not isolated Q&A pairs. The eval_metadata points at the turns that slipped, so you can find where a thread went off the rails without reading every message.
The score runs from 0 (replies do not help) to 100 (every scored reply is fully helpful).
Put the full chat, including assistant replies, in input — a last reply placed only in output is treated as missing.
How to interpret the score
- Closer to 100: replies tend to address the current user message and only that message.
- Closer to 0: replies miss the request, restating earlier answers the user did not ask for, or leaving a trailing request unanswered.
This metric does not score tone, formatting, or how the user felt about the replies (that is Conversation User Sentiment).
API usage
Prerequisites
The examples call POST /runs/custom. Set AEGIS_API_KEY to your API key and AEGIS_API_BASE_URL to the API base URL, including the /api/v1 prefix (for example https://api.aegisevals.ai/api/v1). For a field-by-field description of the payload (top-level keys, evaluations, and each row in data), see Custom run request body.
Shortname: conv_help
Default threshold: 80
Inputs (each object in data)
input(list[dict]orstr, required): The full chat log. A non-empty list of message objects each withroleandcontent, or a JSON string encoding that list. The log must contain exactly two distinct roles, one of which is a user role (user,human, orcustomer). The other role is treated as the assistant. Extra roles such assystemortoolcause evaluation to fail with no score.
Evaluation metadata
eval_metadata is omitted if no findings are present, otherwise it names the imperfect turns:
unhelpful_response_turns(list[dict]): One entry per scored turn that is not fully helpful. Each object has:turn_number(int): 1-based turn in the cleaned conversation.criticality(str):criticalfor fully or mostly unhelpful,mediumfor mixed,lowfor mostly helpful.reason(str): Why that reply was not fully helpful.
earliest_failure_position(float): The ratio of the earliest imperfect turn, highlights how fast the assistant reaches issues.
Example
import json
import os
import requests
from dotenv import load_dotenv
load_dotenv(override=True)
_API_KEY = os.getenv("AEGIS_API_KEY")
_BASE_URL = os.getenv("AEGIS_API_BASE_URL")
_CUSTOM_RUN_URL = f"{_BASE_URL}/runs/custom"
def post_custom_run(payload: dict) -> requests.Response:
"""POST JSON payload to Aegis custom runs; returns the raw response."""
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {_API_KEY}",
}
return requests.post(
_CUSTOM_RUN_URL,
headers=headers,
data=json.dumps(payload),
)
if __name__ == "__main__":
conversation = [
{"role": "user", "content": "What is the capital of France?"},
{"role": "assistant", "content": "The capital of France is Paris."},
{"role": "user", "content": "And Germany?"},
{
"role": "assistant",
"content": "Berlin. As I mentioned, France's capital is Paris.",
},
{"role": "user", "content": "What's the best month to visit Berlin?"},
{
"role": "assistant",
"content": "I already told you Berlin and Paris are the capitals.",
},
]
data = [{"input": conversation}]
payload = {
"threshold": 80,
"model_slug": "o4-mini",
"is_blocking": True,
"data_collection_id": None,
"evaluations": [
{
"metrics": ["conv_help"],
"threshold": 80,
"model_slug": "o4-mini",
"data": data,
}
],
}
response = post_custom_run(payload)
response.raise_for_status()
print(json.dumps(response.json(), indent=2))