Skip to content

Activity message

Note: The activity message component is currently experimental and may undergo changes in future releases.

Activity message is a single, self-contained unit that represents one meaningful step or phase in an AI activity. It exposes progress, intermediate actions, and the path that leads to an outcome.

Usage

Activity messages are used when the system performs multi-step or non-instant operations and the intermediate work has to stay visible for transparency, progress, or auditability.

When several activity messages are stacked in execution order, they form an activity trace: one collapsible group that tells how a result was produced.

Activity message

When to use

  • For AI generation where progress stays visible while the answer is produced.
  • For agent-based execution such as file edits, commands, or other system actions.
  • For tool-calling flows where the input and the output of each call matter.
  • When intermediate steps increase trust in the outcome or have to be auditable afterwards.

Best practices

  • Emit one activity message per meaningful step, and avoid mapping every internal call to its own message.
  • Derive headings from the step itself, such as the tool being called, rather than from free-form model output.
  • Keep supporting detail collapsed by default, and expand it only when the detail is the point of the step.
  • Surface the reason of a failure in the content of the failed activity, not only in its heading.
  • Avoid nesting activity messages, unless a step contains meaningful intermediate activities.

Except where otherwise noted, content on this site is licensed under MIT License.