pyrit.executor.workflow.XPIAResult#
- class XPIAResult(processing_conversation_id: str, processing_response: str, score: Score | None = None, attack_setup_response: str | None = None)[source]#
Bases:
WorkflowResultResult of XPIA workflow execution.
Contains the outcome of the cross-domain prompt injection attack, including the processing response, optional score, and attack setup response.
- __init__(processing_conversation_id: str, processing_response: str, score: Score | None = None, attack_setup_response: str | None = None) None#
Methods
__init__(processing_conversation_id, ...[, ...])duplicate()Create a deep copy of the result.
Attributes
Get the status of the attack result.
Determine if the attack was successful based on the score.
- property status: XPIAStatus#
Get the status of the attack result.
- Returns:
The status of the attack result.
- Return type: