Skip to content

MAINT: typing pyrit.models#2116

Merged
rlundeen2 merged 3 commits into
microsoft:mainfrom
rlundeen2:rlundeen2-maint-typing-pyrit-models
Jul 2, 2026
Merged

MAINT: typing pyrit.models#2116
rlundeen2 merged 3 commits into
microsoft:mainfrom
rlundeen2:rlundeen2-maint-typing-pyrit-models

Conversation

@rlundeen2

Copy link
Copy Markdown
Contributor

Reuses typed component identifiers to tighten typing across pyrit.models and its consumers: narrows the *_specific_params bags to dict[str, JSONValue], reads target identity via TargetIdentifier, and rebuilds the attack converter-merge path with typed identifier constructors (hash-stable). Implements Phase 21 candidates C3, C4, and C6 from the pydantic models plan gist.

Reuse typed component identifiers (Phase 21 candidates C3, C4, C6): narrow param bags to dict[str, JSONValue], read target identity via TargetIdentifier, and rebuild the attack converter-merge path with typed identifier constructors.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@behnam-o behnam-o self-assigned this Jul 2, 2026
rlundeen2 and others added 2 commits July 2, 2026 12:57
…g-pyrit-models

# Conflicts:
#	pyrit/backend/models/converters.py
component_identifier here is a generic ComponentIdentifier (often a converter, not a target), so coercing it via TargetIdentifier.from_component_identifier broke on non-target identifiers and mocks. Restore the generic params.get(...) reads for model_name/endpoint.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 added this pull request to the merge queue Jul 2, 2026
Merged via the queue into microsoft:main with commit 616e291 Jul 2, 2026
53 checks passed
@rlundeen2 rlundeen2 deleted the rlundeen2-maint-typing-pyrit-models branch July 2, 2026 21:00
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