{/* Model + duration summary */}
{(model || durationSuffix) && (
{model && (
{t("agentModelLabel")}:{" "}
{model}
)}
{durationSuffix && {durationSuffix}}
)}
{/* Collapsible prompt */}
{prompt && (
{t("agentPromptLabel")}
{prompt}
)}
{/* Subagent tool calls — rendered with the same ToolCallPart
as the outer conversation for consistent appearance */}
{adaptedToolCalls.length > 0 && (
{adaptedToolCalls.map((tc, i) =>
renderToolCall(
tc as Extract
,
`subagent-tc-${i}`
)
)}
)}
{/* Running indicator */}
{isRunning && !part.output && (
Running...
)}
{/* Error output */}
{isError && part.errorText && (
)}
{/* Final output */}
{part.output && !isError && (
{part.output}
)}