-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Implement Input Validation for Agentic Evaluators #44618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
ebdf9d0 to
d524521
Compare
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