Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/code/targets/0_prompt_targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Here are some examples:
| **OpenAIChatTarget** (e.g., GPT-4) | **Yes** (multi-turn + editable history) | Designed for conversational prompts (system messages, conversation history, etc.). |
| **OpenAIImageTarget** | **No** | Used for image generation; does not manage conversation history. |
| **HTTPTarget** | **No** | Generic HTTP target. Some apps might allow conversation history, but this target doesn't handle it. |
| **A2ATarget** | **Yes** (per-conversation A2A context) | Target for Agent-to-Agent (A2A) protocol endpoints using the official a2a-sdk (v0.3 / v1.0). |
| **AzureBlobStorageTarget** | **No** | Used primarily for storage; not for conversation-based AI. |

## Target Capabilities
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ litellm = [
"litellm>=1.84.0",
]

a2a = [
"a2a-sdk>=1.1.0",
]

# all includes all functional dependencies excluding the ones from the "dev" dependency group
all = [
"a2a-sdk>=1.1.0",
"accelerate>=1.7.0",
"azure-ai-ml>=1.32.0",
"azure-cognitiveservices-speech>=1.44.0",
Expand Down
2 changes: 2 additions & 0 deletions pyrit/prompt_target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from pyrit.common.lazy_imports import get_lazy_dir, resolve_lazy_export

if TYPE_CHECKING:
from pyrit.prompt_target.a2a_target import A2ATarget
from pyrit.prompt_target.azure_blob_storage_target import AzureBlobStorageTarget
from pyrit.prompt_target.azure_ml_chat_target import AzureMLChatTarget
from pyrit.prompt_target.common.conversation_normalization_pipeline import ConversationNormalizationPipeline
Expand Down Expand Up @@ -73,6 +74,7 @@
from pyrit.prompt_target.websocket_target import WebsocketTarget

_LAZY_EXPORTS: dict[str, str | tuple[str, str | None]] = {
"A2ATarget": "pyrit.prompt_target.a2a_target",
"TargetTraceConfig": "pyrit.prompt_target.common.target_trace_config",
"AzureBlobStorageTarget": "pyrit.prompt_target.azure_blob_storage_target",
"AzureMLChatTarget": "pyrit.prompt_target.azure_ml_chat_target",
Expand Down
Loading