Skip to content

Conversation

@bashirpartovi
Copy link
Contributor

Description

  • Refactored XPIAOrchestrator as XPIAWorkflow
  • Added the capability to use both request and response converters

Old Implementation

xpia_orchestrator = XPIATestOrchestrator(
    attack_content=jailbreak_prompt,
    processing_prompt=processing_prompt_template,
    processing_target=processing_target,
    attack_setup_target=abs_target,
    scorer=scorer,
)
score = await xpia_orchestrator.execute_async()

New Implementation

workflow = XPIATestWorkflow(
    attack_setup_target=abs_target,
    processing_target=processing_target,
    scorer=scorer,
)
result = await workflow.execute_async(
    attack_content=jailbreak_prompt,
    processing_prompt=processing_prompt_template,
)
# Access score via: result.score

@bashirpartovi bashirpartovi merged commit da1143a into Azure:main Aug 12, 2025
20 checks passed
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