/** * Displays incoming A2A responses (Agent → Orchestrator). * Blue box with sender/receiver badges. Actual data renders separately in main UI. */ import React from "react"; import { getAgentStyle } from "./agent-styles"; type MessageActionRenderProps = { status: string; args: { agentName?: string; }; }; export const MessageFromA2A: React.FC = ({ status, args, }) => { switch (status) { case "complete": break; default: return null; } if (!args.agentName) { return null; } const agentStyle = getAgentStyle(args.agentName); return (
{agentStyle.icon} {args.agentName} {agentStyle.framework && ( {agentStyle.framework} )}
Orchestrator ADK
✓ Response received
); };