Package com.tnsai.evaluation.evaluators
Class InstructionFollowingEvaluator
java.lang.Object
com.tnsai.evaluation.evaluators.InstructionFollowingEvaluator
- All Implemented Interfaces:
Evaluator
Evaluates whether the agent followed given instructions.
Checks for:
- Format compliance (e.g., "respond in JSON", "use bullet points")
- Constraint adherence (e.g., "max 100 words", "include code example")
- Instruction keyword coverage
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.evaluation.spi.Evaluator
Evaluator.EvaluationInput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Evaluator.EvaluationInput context) Evaluates agent behavior for a single interaction.name()Unique name for this evaluator.