Add unsupported tools validation and new content types to evaluators validators#45175
Open
Add unsupported tools validation and new content types to evaluators validators#45175
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request enhances the Azure AI Evaluation SDK's validator infrastructure to support new content types and adds validation for unsupported tools in agentic evaluators. The changes enable the SDK to handle emerging tool call patterns (function calls, MCP approval workflows, OpenAPI calls) while preventing usage of known unsupported tools.
Changes:
- Added six new content types to support function calls, MCP approval requests/responses, and OpenAPI calls with their outputs
- Implemented unsupported tools validation via
check_for_unsupported_toolsflag in conversation validators - Fixed typo in task navigation efficiency evaluator docstring
- Relaxed validation for tool result fields from requiring dictionary type to only requiring field existence
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| _validation_constants.py | Added six new ContentType enum values for function_call, function_call_output, mcp_approval_request, mcp_approval_response, openapi_call, and openapi_call_output |
| _conversation_validator.py | Added UNSUPPORTED_TOOLS list, check_for_unsupported_tools parameter, _validate_field_exists method, and validation logic for new content types |
| _tool_definitions_validator.py | Added check_for_unsupported_tools parameter and propagated it to parent class |
| _tool_calls_validator.py | Added check_for_unsupported_tools parameter and propagated it to parent class |
| _tool_output_utilization.py | Enabled unsupported tools validation by setting check_for_unsupported_tools=True |
| _tool_input_accuracy.py | Enabled unsupported tools validation by setting check_for_unsupported_tools=True |
| _tool_call_success.py | Enabled unsupported tools validation by setting check_for_unsupported_tools=True |
| _tool_call_accuracy.py | Enabled unsupported tools validation by setting check_for_unsupported_tools=True |
| _groundedness.py | Enabled unsupported tools validation by setting check_for_unsupported_tools=True |
| _task_navigation_efficiency.py | Fixed typo in docstring (removed extra quote before "call_tool_A") |
...ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_conversation_validator.py
Show resolved
Hide resolved
...ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_conversation_validator.py
Show resolved
Hide resolved
...ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_conversation_validator.py
Show resolved
Hide resolved
...ai-evaluation/azure/ai/evaluation/_evaluators/_common/_validators/_conversation_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
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines