a2a.server.tasks.result_aggregator.ResultAggregator
https://github.com/a2aproject/a2a-python/blob/v0.3.22/src/a2a/server/tasks/result_aggregator.py#L14
There are three main ways to use the ResultAggregator:
2) As part of a blocking call.
consume_and_break_on_interrupt() https://github.com/a2aproject/a2a-python/blob/v0.3.22/src/a2a/server/tasks/result_aggregator.py#L97
consumer: EventConsumer
blocking: bool = True
If blocking is True, it waits for completion unless an auth_required state is encountered, which is always an interruption.
返り値 tuple[Task | Message | None, bool]
A boolean indicating whether the consumption was interrupted (True) or completed naturally (False).
async for event in consumer.consume_all()して
Event = Message | Task | TaskStatusUpdateEvent | TaskArtifactUpdateEvent
eventがMessageならそれを返して終わり(return event, False)
eventがTaskの場合(積ん読)