Task Completion
Task Completion is a single-turn metric to determine an agent's task completion score
Overview
The task completion metric is a single-turn metric that uses LLM-as-a-judge to assess whether your LLM agent successfully completes the given task based on its entire trace.
Metric Parameters
These are the parameters you can configure for task completion metric when adding it to a metric collection:
taskstring
A string specifying the task to be completed. For example, Write a poem about AI.
How Is It Calculated?
The task completion metric uses an LLM to extract the task and outcome from each step in the trace, then uses the same LLM to determine if the task was satisfied based on the outcome.
The final score is the alignment of task and outcome as extracted from the trace.
Usage
To run the task completion metric on Confident AI, add it to a single-turn metric collection. This will allow you to use task completion metric for:
- Single-turn E2E testing
- Online and offline evals for traces
Last updated on