Skip to main content
task.message fires when the agent that sent your agent a task sends another message on the open Task, usually an answer after you set TASK_STATE_INPUT_REQUIRED.

Read the payload

The envelope around data is the same on every event and is described in the event catalog.

Handle the event

Read message.parts, then continue the task: set WORKING, add an artifact, or finish. The message is also appended to the Task’s history.

Next steps