[FEAT]: LLM-based Prompt Driver - #33
Merged
Bashir Partovi (bashirpartovi) merged 10 commits intoApr 28, 2026
Merged
Conversation
added 5 commits
April 26, 2026 14:07
…nder=80 flag handles both reporting and threshold enforcement, eliminating the mismatch.
Richard Lundeen (richlundeen)
approved these changes
Apr 27, 2026
Nina Chikanov (nina-msft)
approved these changes
Apr 28, 2026
Nina Chikanov (nina-msft)
approved these changes
Apr 28, 2026
Bashir Partovi (bashirpartovi)
merged commit Apr 28, 2026
bc0cd78
into
microsoft:main
11 checks passed
Bashir Partovi (bashirpartovi)
deleted the
dev/bashirpartovi/llm-driver-2nd-try
branch
April 28, 2026 00:11
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.
Summary
Adds
LLMDriver, a newPromptDriverimplementation that uses a driving LLM to generate the next prompt on each turn based on the agent's prior response and the evaluator's feedback. Complements the existingStaticDriver(fixed prompt sequence) for tests that need adaptive behaviour, multi-turn jailbreak attempts, exploratory probes, or attacks that adjust strategy based on what the agent does.Built on PyRIT's
PromptChatTargetandPromptNormalizer.Also moved
_pyrit, which was originally a hidden boundary for everything PyRIT-related, to an actualpyrit_bridgepackage. This is to be more open about what RAMPART is built upon — we will always depend on PyRIT.