Skip to content

Fix RedTeam scan returning null results due to invalid target_type parameter#44960

Closed
slister1001 wants to merge 1 commit intoAzure:mainfrom
slister1001:fix/redteam-target-type-bug
Closed

Fix RedTeam scan returning null results due to invalid target_type parameter#44960
slister1001 wants to merge 1 commit intoAzure:mainfrom
slister1001:fix/redteam-target-type-bug

Conversation

@slister1001
Copy link
Member

Remove the target_type parameter from the get_attack_objectives call in GeneratedRAIClient, as the underlying RAISvcOperations.get_attack_objectives method does not accept this parameter. The parameter was being silently absorbed by **kwargs but not used, causing objectives selection to fail.

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

…rameter

Remove the target_type parameter from the get_attack_objectives call in
GeneratedRAIClient, as the underlying RAISvcOperations.get_attack_objectives
method does not accept this parameter. The parameter was being silently
absorbed by **kwargs but not used, causing objectives selection to fail.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Feb 2, 2026
@slister1001 slister1001 closed this Feb 5, 2026
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.

1 participant