FIX: Fixing 4 broken notebooks#2182
Merged
rlundeen2 merged 1 commit intoJul 13, 2026
Merged
Conversation
Update three doc notebooks to match current PyRIT APIs so the integration notebook-execution tests pass: - 0_scenarios: pass typed RegisteredScenario items to print_scenario_list instead of .model_dump() dicts (print_scenario_list expects attribute access). - 2_custom_scenario_parameters: drop .model_dump() and filter typed items directly. - 6_custom_targets: AttackAdversarialConfig uses first_message (seed_prompt removed). The fourth failing notebook (3_adaptive_scenarios) is a separate, deterministic CI-only failure tied to adversarial structured-output enforcement and is still under investigation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: f10902e3-c95a-4c2a-b17c-0a4f3fd46b5e
jsong468
approved these changes
Jul 13, 2026
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.
Fixes broken doc notebooks that fail the integration notebook-execution tests because they lag current PyRIT APIs.
Fixed (deterministic API mismatches, validated by running each notebook end-to-end)
RegisteredScenarioitems toprint_scenario_listinstead of.model_dump()dicts (it expects attribute access)..model_dump()and filter the typed items directly.AttackAdversarialConfignow takesfirst_message(the removedseed_prompt).Not included
Missing required keys {'last_response_summary'}from the adversarial chat). Root cause is adversarial structured-output enforcement / deployment config, not stale notebook code — still under investigation and tracked separately.