Skip to content
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

fix-positional-argument #40296

Merged
merged 1 commit into from
Mar 31, 2025
Merged

fix-positional-argument #40296

merged 1 commit into from
Mar 31, 2025

Conversation

w-javed
Copy link
Contributor

@w-javed w-javed commented Mar 31, 2025

No description provided.

@Copilot Copilot bot review requested due to automatic review settings March 31, 2025 17:47
@w-javed w-javed requested a review from a team as a code owner March 31, 2025 17:47
Copy link
Contributor

@Copilot Copilot AI left a 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 fixes issues with positional arguments by converting parameters to keyword-only in evaluator constructors.

  • Updated the RelevanceEvaluator init to enforce 'threshold' as a keyword-only argument.
  • Updated the ContentSafety evaluator init to enforce threshold parameters as keyword-only.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_relevance/_relevance.py Updated init signature to use keyword-only 'threshold'
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_content_safety.py Updated init signature to use keyword-only thresholds

@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Mar 31, 2025
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-ai-evaluation

@w-javed w-javed merged commit 09eeca7 into Azure:main Mar 31, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Evaluation Issues related to the client library for Azure AI Evaluation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants