Demonstrates evaluating multi-turn conversation quality using composable
llm-rubric prompt templates with per-turn score breakdowns.
- Multi-turn input with 4+ user/assistant turns where context retention matters
- Conversation-aware grader prompts that receive the full
{{ input }}message array - Per-turn score breakdown via structured
details - Composability: multiple
llm-rubricgraders combined with deterministic assertions
| Grader | What it evaluates |
|---|---|
context-retention.md |
Does the agent remember information from earlier turns? |
conversation-relevancy.md |
Are responses relevant to the current request and conversation? |
role-adherence.md |
Does the agent maintain its assigned persona? |
bun apps/cli/src/cli.ts eval examples/features/multi-turn-conversation/evals/suite.yaml- Create a markdown file in
graders/ - Use
{{ input }}to receive the full conversation message array with roles - Use
{{ criteria }}for the test-specific evaluation criteria - Instruct the grader to return
detailswith per-turn metrics when useful - Reference it in your YAML with
type: llm-rubricandprompt: file://./graders/your-grader.md