Implement Input Validation for Agentic Evaluators#44618
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements input validation infrastructure for agentic evaluators in the Azure AI Evaluation SDK. The changes introduce a comprehensive validator system to validate inputs before processing in various evaluator classes.
Changes:
- Added new validator infrastructure with abstract interface and concrete implementations
- Integrated validators into 13 evaluator classes to validate inputs before processing
- Created validation constants for message roles and content types
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
_validator_interface.py |
Abstract base class defining validation interface |
_validation_constants.py |
Enums for message roles and content types |
conversation_validator.py |
Validates conversation-style query/response inputs |
_tool_definitions_validator.py |
Validates tool definitions alongside conversations |
_tool_calls_validator.py |
Validates tool calls alongside tool definitions |
_task_navigation_efficiency_validator.py |
Validates task navigation inputs |
__init__.py |
Exports validator classes |
_tool_selection.py |
Integrated ToolCallsValidator |
_tool_output_utilization.py |
Integrated ToolDefinitionsValidator |
_tool_input_accuracy.py |
Integrated ToolDefinitionsValidator |
_tool_call_success.py |
Integrated ToolDefinitionsValidator |
_tool_call_accuracy.py |
Integrated ToolCallsValidator |
_task_navigation_efficiency.py |
Integrated TaskNavigationEfficiencyValidator |
_task_completion.py |
Integrated ToolDefinitionsValidator |
_task_adherence.py |
Integrated ToolDefinitionsValidator |
_intent_resolution.py |
Integrated ToolDefinitionsValidator |
_groundedness.py |
Integrated ConversationValidator with dual validator setup |
_fluency.py |
Integrated ConversationValidator |
_relevance.py |
Integrated ConversationValidator |
_coherence.py |
Integrated ConversationValidator |
...-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/conversation_validator.py
Outdated
Show resolved
Hide resolved
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_fluency/_fluency.py
Outdated
Show resolved
Hide resolved
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_coherence/_coherence.py
Outdated
Show resolved
Hide resolved
...e-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_tool_calls_validator.py
Show resolved
Hide resolved
...azure-ai-evaluation/azure/ai/evaluation/_evaluators/_intent_resolution/_intent_resolution.py
Outdated
Show resolved
Hide resolved
...ure-ai-evaluation/azure/ai/evaluation/_evaluators/_tool_call_accuracy/_tool_call_accuracy.py
Outdated
Show resolved
Hide resolved
...ion/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_task_completion/_task_completion.py
Outdated
Show resolved
Hide resolved
...ation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_task_adherence/_task_adherence.py
Outdated
Show resolved
Hide resolved
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_relevance/_relevance.py
Outdated
Show resolved
Hide resolved
...valuation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_groundedness/_groundedness.py
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ebdf9d0 to
d524521
Compare
ashaabansoliman
approved these changes
Feb 10, 2026
...e-ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_tool_calls_validator.py
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines