Skip to content
Star

A2A

Show A2A v1 messages, task status, and artifacts together.

Load a task or message

Install Ghost UI and its view dependencies, then add the A2A v1 SDK.

Install dependencies

Create an authenticated Client with ClientFactory and your server’s agent card. Your app handles discovery, trust, and credentials.

a2a-task.tsx
a2a-send.ts

Use normalizeA2aMessages for messages and normalizeA2aTask for tasks. For live updates, use sendMessageStream or a task subscription. Apply status and artifact events to your task store before passing the new snapshot to the view.

A transcript is only one view of a task

normalizeA2aTask keeps task ID, context ID, status and artifacts in a2a-task data. input_required and auth_required need application flows; neither means a pending boolean tool approval. Artifacts can contain structured data or files independently of a message. Validate and render them with MessageParts.renderers.data, or show an application artifact panel beside the transcript.

The normalizer accepts protobuf v1 oneof parts/enums and their JSON representation. Native message IDs and ordered history survive projection. A2A v0.3 uses the SDK's separate compatibility entry; do not treat those shapes as v1.

Troubleshooting

A visible data notice can be an unrendered task/artifact, not a lost answer. Retain task IDs for cancellation/resubscription and context IDs for follow-up messages. Task cancellation is a request to the remote agent, not a guaranteed local status transition. See A2A specification and the SDK for streaming, discovery and authentication.