strands.types.a2a
Additional A2A types.
A2AStreamEvent
Section titled “A2AStreamEvent”class A2AStreamEvent(TypedEvent)Defined in: src/strands/types/a2a.py:12
Event emitted for every update received from the remote A2A server.
This event wraps all A2A response types during streaming, including:
- Partial task updates (TaskArtifactUpdateEvent)
- Status updates (TaskStatusUpdateEvent)
- Complete messages (Message)
- Final task completions
The event is emitted for EVERY update from the server, regardless of whether it represents a complete or partial response. When streaming completes, an AgentResultEvent containing the final AgentResult is also emitted after all A2AStreamEvents.
__init__
Section titled “__init__”def __init__(a2a_event: A2AResponse) -> NoneDefined in: src/strands/types/a2a.py:27
Initialize with A2A event.
Arguments:
a2a_event- The original A2A event (Task tuple or Message)