Agent-to-Agent Protocols › Delegation message shape
Language AI HandbookAll chapters The v1 Send Message operation accepts a message with an ID, role, and typed parts. A message can include a taskId for an existing task or a contextId for related interactions. The receiving agent may give back a direct Message or create and return a Task. Omitting taskId does not force task creation. When a known task asks for more input, the client sends a new message referring to the same task and context, then follows its status again.
Match the operation names to the advertised binding. The normative v1.0.1 schema maps HTTP+JSON submission to /message:send and streaming submission to /message:stream. A SendStreamingMessage call can yield a single direct Message, or a task snapshot followed by task events. For that second form, the caller keeps the task ID so it can reconcile after interruption. Prefer a bounded wait to holding the connection open indefinitely.
The status event can report that work paused or finished, while the artifact update carries content. If the application expects a structured summary, it should validate the structure regardless of whether it sees that summary in a direct message or in a task artifact.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!