Skip to content

A2A Messages, Parts and Artifacts

The data that flows between agents in A2A: messages with text, file and data parts, and artifacts as outputs.

Editorial team 1 min read

A2A defines how agents exchange content during a task.

Messages

A message is one turn of communication, with a role — from the user or client side, or from the agent — and one or more parts.

Parts

Parts carry content of different types:

  • Text parts: plain or formatted text.
  • File parts: files, either inline as encoded bytes or referenced by URI.
  • Data parts: structured JSON, useful for forms and machine-readable results.

This lets agents negotiate formats: a client might accept text only, or prefer structured data.

Artifacts

Artifacts are the outputs a task produces — a report, an image, a dataset, a booking confirmation. They're made of parts too, and can be streamed in chunks for large outputs.

Messages Versus Artifacts

Messages carry the conversation: instructions, questions, status explanations. Artifacts carry deliverables.

Good Practice

  • Use data parts for results other programs will consume.
  • Reference large files by URI rather than inlining them.
  • Describe what artifacts contain so the client agent can use them correctly.

More in A2A

All A2A guides →
A2A Guide · 1 min

What Is the Agent2Agent (A2A) Protocol?

An introduction to A2A, the open protocol that lets AI agents built by different teams and vendors work together.

A2A 1 min read 8 Aug 2025

A2A Guide · 1 min

A2A Versus MCP

How the Agent2Agent protocol and the Model Context Protocol differ, and why many systems use both.

A2A 1 min read 7 Aug 2025

A2A Guide · 1 min

A2A Agent Cards and Discovery

How agents advertise their skills with Agent Cards, and how clients find and choose agents to work with.

A2A 1 min read 6 Aug 2025

A2A Guide · 1 min

A2A Tasks and Their Lifecycle

How work is tracked in A2A: task states, long-running work, requests for input and cancellation.

A2A 1 min read 5 Aug 2025