Messages and events
A model request, a saved run and a chat screen need different data. Do not use one as a substitute for the others.
Provider history
Section titled “Provider history”Core ChatMessage values are the conversation sent to a provider. They include roles, content, tool
calls and tool results. Some providers also need reasoning metadata or signatures returned on a
later turn. Keep the complete message when saving provider history.
History repair makes that sequence valid to send. It does not tell you whether an interrupted tool action happened.
Saved execution and progress
Section titled “Saved execution and progress”Agents records execution in kind-specific journals: model/tool operations for agents, steps for workflows and remote receipts for A2A nodes. Its host can save checkpoints to continue trusted work later. Progress events follow a live run; they do not replace the saved state.
A completed output is only one possible result. A run can be waiting for approval, stopped by a limit, cancelled or failed. The Agents quickstart shows the status check.
What a person sees
Section titled “What a person sees”A conversation screen needs the answer, useful activity and actions the person can take. It does not need raw snapshots, private reasoning or every tool argument. Your server decides which data may leave it.
React’s display protocol separates visible messages from execution state. The server validates and projects the allowed fields, then the browser folds those display events into its view. Data that describes a request does not authorize its answer.