Skip to content

Function: ToolSessionPill()

ToolSessionPill(__namedParameters): Element | null

Consolidated pill for every tool call on one assistant message. The collapsed header tracks the MOST RECENT tool call (its verb and tool name) so the bubble always advertises “what the agent is doing now”; expanding reveals one ToolCallRow per call in dispatch order so users can see every step the agent took and read the question text the central agent passed to each ask_genie call.

Overall tone (border / ring / icon) follows the worst-case state across all rows: any running event dominates (primary border + ping pip), then any error (destructive border), then done. The header verb itself follows the LATEST row’s status so users see fresh progress as new tool calls land mid-turn (rather than the pill stalling on whichever row was busiest).

ToolEvent[]

Element | null