[FEAT]: Implement PyRIT converter_bridge for PayloadConverter protocol (#69) - #190
Open
syouiti (sy0u1ti) wants to merge 1 commit into
Open
syouiti (sy0u1ti) wants to merge 1 commit into
syouiti (sy0u1ti) wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Author
|
@microsoft-github-policy-service agree |
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.
[FEAT]: Implement PyRIT converter_bridge for PayloadConverter protocol (#69)
Summary
Fixes #69. As documented in
rampart/core/converter.py:This PR implements
PyRITConverterBridgeandadapt_converterinrampart/pyrit_bridge/converter_bridge.py, enabling RAMPART to leverage PyRIT's library of prompt converters (Base64, ROT13, Atbash, Caesar, Leetspeak, Unicode, etc.) seamlessly under RAMPART'sPayloadConverterprotocol.Changes
rampart/pyrit_bridge/converter_bridge.pyimplementingPyRITConverterBridgeand theadapt_converterhelper.PyRITConverterBridgeandadapt_converterinrampart/pyrit_bridge/__init__.py.payload.format.is_textcheck, preserving original payloadid, setting format toPayloadFormat.TEXT, and appending converter attribution tometadata.tests/unit/pyrit_bridge/test_converter_bridge.pyvalidating protocol compliance, text transformations with Base64/ROT13, empty payload handling, and non-text payload validation errors.