Checks whether your chatbot stays within its defined role across the entire conversation.
role_adherence
metric, the following inputs are required in every turn of the conversation:
input
: The current user message.actual_output
: The corresponding chatbot response.role_adherence
score is computed through the following LLM-based steps:
actual_output
deviates from or contradicts the expected behavior of that role.