|
48 | 48 | } |
49 | 49 | ], |
50 | 50 | "source": [ |
51 | | - "from pyrit.attacks import ConsoleAttackResultPrinter, PromptSendingAttack\n", |
52 | 51 | "from pyrit.common import IN_MEMORY, initialize_pyrit\n", |
| 52 | + "from pyrit.executor.attack import ConsoleAttackResultPrinter, PromptSendingAttack\n", |
53 | 53 | "from pyrit.prompt_target import OpenAIChatTarget\n", |
54 | 54 | "\n", |
55 | 55 | "initialize_pyrit(memory_db_type=IN_MEMORY)\n", |
|
206 | 206 | "source": [ |
207 | 207 | "import pathlib\n", |
208 | 208 | "\n", |
209 | | - "from pyrit.attacks import (\n", |
| 209 | + "from pyrit.common.path import DATASETS_PATH\n", |
| 210 | + "from pyrit.executor.attack import (\n", |
210 | 211 | " AttackConverterConfig,\n", |
211 | 212 | " AttackExecutor,\n", |
212 | 213 | " ConsoleAttackResultPrinter,\n", |
213 | 214 | " PromptSendingAttack,\n", |
214 | 215 | ")\n", |
215 | | - "from pyrit.common.path import DATASETS_PATH\n", |
216 | 216 | "from pyrit.models import SeedPromptDataset\n", |
217 | 217 | "from pyrit.prompt_converter import Base64Converter\n", |
218 | 218 | "from pyrit.prompt_normalizer import PromptConverterConfiguration\n", |
|
329 | 329 | "source": [ |
330 | 330 | "import pathlib\n", |
331 | 331 | "\n", |
332 | | - "from pyrit.attacks import (\n", |
| 332 | + "from pyrit.executor.attack import (\n", |
333 | 333 | " ConsoleAttackResultPrinter,\n", |
334 | 334 | " PromptSendingAttack,\n", |
335 | 335 | " SingleTurnAttackContext,\n", |
|
432 | 432 | "source": [ |
433 | 433 | "from azure.ai.contentsafety.models import TextCategory\n", |
434 | 434 | "\n", |
435 | | - "from pyrit.attacks import AttackScoringConfig, PromptSendingAttack\n", |
| 435 | + "from pyrit.executor.attack import AttackScoringConfig, PromptSendingAttack\n", |
436 | 436 | "from pyrit.prompt_target import OpenAIChatTarget\n", |
437 | 437 | "from pyrit.score import (\n", |
438 | 438 | " AzureContentFilterScorer,\n", |
|
623 | 623 | } |
624 | 624 | ], |
625 | 625 | "source": [ |
626 | | - "from pyrit.attacks import AttackExecutor, PromptSendingAttack\n", |
627 | 626 | "from pyrit.datasets import TextJailBreak\n", |
| 627 | + "from pyrit.executor.attack import AttackExecutor, PromptSendingAttack\n", |
628 | 628 | "from pyrit.models.prompt_request_response import PromptRequestResponse\n", |
629 | 629 | "from pyrit.prompt_target import OpenAIChatTarget\n", |
630 | 630 | "\n", |
|
725 | 725 | "source": [ |
726 | 726 | "import uuid\n", |
727 | 727 | "\n", |
728 | | - "from pyrit.attacks import PromptSendingAttack\n", |
729 | 728 | "from pyrit.common import IN_MEMORY, initialize_pyrit\n", |
| 729 | + "from pyrit.executor.attack import PromptSendingAttack\n", |
730 | 730 | "from pyrit.models import SeedPrompt, SeedPromptGroup\n", |
731 | 731 | "from pyrit.prompt_target import OpenAIChatTarget\n", |
732 | 732 | "\n", |
|
0 commit comments