/** * Displays outgoing A2A messages (Orchestrator → Agent). * Green box with sender/receiver badges and task description. */ import React from "react"; import { getAgentStyle, truncateTask } from "./agent-styles"; type MessageActionRenderProps = { status: string; args: { agentName?: string; task?: string; }; }; export const MessageToA2A: React.FC = ({ status, args, }) => { switch (status) { case "executing": case "complete": break; default: return null; } if (!args.agentName || !args.task) { return null; } const agentStyle = getAgentStyle(args.agentName); return (
Orchestrator ADK
{agentStyle.icon} {args.agentName} {agentStyle.framework && ( {agentStyle.framework} )}
{truncateTask(args.task)}
); };