We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0bf13b commit fd48288Copy full SHA for fd48288
src/a2a/server/request_handlers/default_request_handler.py
@@ -55,6 +55,7 @@
55
TaskState.rejected,
56
}
57
58
+
59
@trace_class(kind=SpanKind.SERVER)
60
class DefaultRequestHandler(RequestHandler):
61
"""Default request handler for all incoming requests.
@@ -249,6 +250,11 @@ async def on_message_send(
249
250
InternalError(message='Task ID mismatch in agent response')
251
)
252
253
+ if self._push_notifier and task_id:
254
+ latest_task = await result_aggregator.current_result
255
+ if isinstance(latest_task, Task):
256
+ await self._push_notifier.send_notification(latest_task)
257
258
finally:
259
if interrupted:
260
# TODO: Track this disconnected cleanup task.
0 commit comments