Skip to content

Conversation

@diondrapeck
Copy link
Contributor

Description

AdversarialSimulator emits a logging warning when called. This is due to opencensus telemetry not allowing NoneType values to be set as logging attributes and _jailbreak_type can be None. To fix this, this PR removes _jailbreak_type as an attribute and instead uses the activity name to distinguish the simulators in logs.

image

This PR also renames xpia_simulator.py to indirect_attack_simulator.py to match direct_attack_simulator.py.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been 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.

@diondrapeck diondrapeck requested a review from a team as a code owner September 12, 2024 20:05
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Sep 12, 2024
@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

@diondrapeck diondrapeck merged commit 2e9481e into Azure:main Sep 13, 2024
l0lawrence pushed a commit to l0lawrence/azure-sdk-for-python that referenced this pull request Feb 19, 2025
* Remove Optional type annotation from get() methods

* Remove duplicate overloads

* Include xpia in handled_metrics for evaluation aggregation

* Remove jailbreak_type param from logging attributes

* Rename xpia_simulator.py to indirect_attack_simulator.py'

* Remove old commits
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.

4 participants