Skip to content

MAINT: Add to_dict/from_dict roundtrip serialization to model classes - #1738

Merged
Richard Lundeen (rlundeen2) merged 9 commits into
microsoft:mainfrom
rlundeen2:users/rlundeen/model_dict
May 20, 2026
Merged

MAINT: Add to_dict/from_dict roundtrip serialization to model classes#1738
Richard Lundeen (rlundeen2) merged 9 commits into
microsoft:mainfrom
rlundeen2:users/rlundeen/model_dict

Conversation

@rlundeen2

@rlundeen2 Richard Lundeen (rlundeen2) commented May 15, 2026

Copy link
Copy Markdown
Contributor

The output modules in the thin CLI needs access to REST data from models because it can't access memory. This allows us to deserialize and serialize common modules

Comment thread pyrit/models/attack_result.py
Comment thread tests/unit/models/test_attack_result.py
Comment thread pyrit/models/attack_result.py Outdated
Comment thread pyrit/models/message.py
Comment thread pyrit/models/score.py Outdated
Comment thread pyrit/models/message.py
Comment thread pyrit/models/message_piece.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread pyrit/models/score.py Outdated
Comment thread pyrit/models/scenario_result.py Outdated
Comment thread pyrit/memory/memory_models.py Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…pletion_time)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2
Richard Lundeen (rlundeen2) added this pull request to the merge queue May 20, 2026
Merged via the queue into microsoft:main with commit d00b98c May 20, 2026
48 checks passed
@rlundeen2
Richard Lundeen (rlundeen2) deleted the users/rlundeen/model_dict branch May 20, 2026 00:49
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.

3 participants