Skip to content

MAINT: Add deprecation warnings when Message Piece is constructed with labels#1670

Merged
behnam-o merged 3 commits intomicrosoft:mainfrom
behnam-o:dev/deprecate-mp-label-ctor
Apr 30, 2026
Merged

MAINT: Add deprecation warnings when Message Piece is constructed with labels#1670
behnam-o merged 3 commits intomicrosoft:mainfrom
behnam-o:dev/deprecate-mp-label-ctor

Conversation

@behnam-o
Copy link
Copy Markdown
Contributor

Follow up on #1624

As part of deprecating message_piece labels in favor of attack_result ones, this PR makes changes to emit deprecation warnings when message_piece is constructed with labels, along with all the upstream APIs that accept labels and use it to construct a message_piece with it

A follow-up to this will be made to completely remove references to message_piece labels (for release 0.16.0)

Comment thread pyrit/executor/attack/component/conversation_manager.py
@behnam-o behnam-o marked this pull request as ready for review April 29, 2026 22:50
@behnam-o behnam-o added this pull request to the merge queue Apr 30, 2026
Merged via the queue into microsoft:main with commit 55fd7bc Apr 30, 2026
48 checks passed
@behnam-o behnam-o deleted the dev/deprecate-mp-label-ctor branch April 30, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants