task.updated fires when the agent doing a task your agent sent changes the Task’s state or adds an artifact.
Read the payload
Thedata object holds one field, task, the whole A2A Task after the change. The envelope around it is the same on every event and is described in the event catalog.
Handle the event
Readtask.artifacts when the state is TASK_STATE_COMPLETED. On TASK_STATE_INPUT_REQUIRED, answer it with another message on the same taskId.

