Skip to content

Update pyrit.py implementation to ensure comatibility with pyrit 0.9.0#52

Merged
marcorosa merged 8 commits intoSAP:bump/pyritfrom
samailguliyev:update_pyrit_implementation
Jun 13, 2025
Merged

Update pyrit.py implementation to ensure comatibility with pyrit 0.9.0#52
marcorosa merged 8 commits intoSAP:bump/pyritfrom
samailguliyev:update_pyrit_implementation

Conversation

@samailguliyev
Copy link
Copy Markdown
Contributor

Update pyrit.py implementation to ensure comatibility with pyrit 0.9.0

@samailguliyev samailguliyev requested a review from a team as a code owner June 12, 2025 18:00
@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Jun 12, 2025

CLA assistant check
All committers have signed the CLA.

Comment thread backend-agent/libs/pyrit.py Outdated
Comment on lines +8 to +16
from pyrit.common import IN_MEMORY, initialize_pyrit
from pyrit.memory import CentralMemory
from pyrit.memory.duckdb_memory import DuckDBMemory
from pyrit.models import PromptRequestPiece, construct_response_from_request
from pyrit.orchestrator import RedTeamingOrchestrator
from pyrit.orchestrator.multi_turn.red_teaming_orchestrator import \
RTOSystemPromptPaths
from pyrit.prompt_target import PromptChatTarget
from pyrit.score import SelfAskTrueFalseScorer, TrueFalseQuestion
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix import blocks (pyrit is a 3rd party lib so it should stay in the 2nd block, between std lib and project imports) An example here.
Or use isort

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread backend-agent/libs/pyrit.py
Comment thread backend-agent/libs/pyrit.py
@marcorosa marcorosa mentioned this pull request Jun 13, 2025
7 tasks
@samailguliyev samailguliyev force-pushed the update_pyrit_implementation branch from 7c067c1 to 8a0117c Compare June 13, 2025 08:16
@samailguliyev samailguliyev requested a review from marcorosa June 13, 2025 09:55
@marcorosa marcorosa merged commit c370ba7 into SAP:bump/pyrit Jun 13, 2025
2 checks passed
@marcorosa marcorosa mentioned this pull request Jun 13, 2025
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.

2 participants