AG-001Agent · Understanding the joblayaeval.IntentResolution

Intent Resolution

What does the user want — info, an action, or a fix?

Get infoDo actionFix problem"Book a room for Friday"Wants an action — sure
Simulation state:
When it passes

Sorted quickly and surely.

Threshold satisfied: evaluation score >= 0.70.

When it fails

Unsure, lands in the wrong bucket.

Violation detected: execution flagged for human review or fallback routing.

SDK Specification

ParameterValueDescription
ClassIntentResolutionPython evaluator class in layaeval
Required Fields"query"Arguments expected in the call signature
Default Threshold>= 0.70Passes when quality score is at or above this value
CategoryAgent EvaluationUnderstanding the job (Did the agent get what you wanted, and finish it?)

Python Example

pip install layaeval
intent-resolution.py
1from layaeval import IntentResolution
2
3metric = IntentResolution(threshold=0.70) # passes at or above 0.70
4
5res = metric(
6 query="What is the capital of France?",
7)
8
9print(res.passed, res.value, res.confidence)

Related Agent Checks

Other checks in Understanding the job

View all 42 checks →