AgentMessage
Show a message that one agent sent to another in a multi-agent run, for example in TaskDetail or in a team activity feed. The header shows the sender and the recipient as colored dot badges (use the same color for an agent everywhere) or everyone when to is omitted, and the time from timestamp (formatTime changes the format). The summary is always visible; content that differs from the summary is revealed with a Show message button, or from the start with defaultExpanded. Labels come from the background task labels (labels).
Getting Started
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-reactExamples
Wide
Narrow
API reference
Prop
Type
Required
message
AgentMessageData
Yes
Message between agents
defaultExpanded
boolean
No
Shows the full content from the start
formatTime
(date: Date) => string
No
Formats the timestamp, `HH:MM` in the user locale by default
labels
Partial<BackgroundTaskLabels>
No
Overrides of the default English labels
className
string
No
Class name added to the root element
style
React.CSSProperties
No
Inline styles added to the root element