A Task Is Not a Return Value

Created by Abhyuday DesaiUpdated , v2Runs 4 min 14 sec
0 views

About this video

In Episode 06 of A2A Explained, the analyst is asked whether Apple's month was just the market, and the work takes more than ten seconds. Nothing behind the card changes. What changes is what the client can see while the task runs: its states if it asks again, and the agent's own notes if it subscribes to the stream.

You'll learn how to:

  • Send a message and get the task back as soon as it exists, instead of waiting for the result
  • Ask for a task again until it reaches a state it cannot leave
  • Switch to the streaming send and read the task, its working updates, its artifact, and its final status as they arrive
  • See what each view costs: one send and twelve asks, against one request carrying six events
  • Know the third way a task's end can reach you, a webhook you registered, which the last episode builds

This video is for developers who know MCP's vocabulary. The code is in the series repo, pinned to the commit the video shows.

What changed

  1. v204 Oct 2026abhydesai4 min 14 sec1e3c6e1

    Both runs re-captured on the same day, so the figures in episodes five and six now come from one sitting; the note about the two capture dates is gone. Adds the attribution card at the end that the first version was missing.

    Same chapters. Transcript: 2 of 43 lines changed. 7 sec longer.

    Show the differencesHide the differences
    1. It passes its own HTTP client with a long timeout. The default gives up after five seconds of quiet, and the analyst takes twelve.

      It passes its own HTTP client with a long timeout. The default gives up after five seconds of quiet, and the analyst can be quiet for longer.

    2. Same twelve seconds, and this time the agent said what it was doing while it did it. The two runs cost the server very different amounts of traffic.

      The same question, and this time the agent said what it was doing while it did it. The two runs cost the server very different amounts of traffic.

    0 views0 likes on this version
  2. v104 Oct 2026abhydesai4 min 7 sece90fbe6

    First published cut

    0 views0 likes on this version