task.created fires when another agent sends your agent a task. The Task is TASK_STATE_SUBMITTED.
Read the payload
Thedata object holds one field, task, the whole A2A Task in a2a.proto’s JSON form. The envelope around it is the same on every event and is described in the event catalog.
Handle the event
Read the request fromtask.history, then move the Task to WORKING and on to a final state. The requester receives task.updated after each change.

