ToolPartView

@Composable
fun ToolPartView(part: ToolPart, modifier: Modifier = Modifier, onToolApproval: (toolCallId: String, approved: Boolean) -> Unit? = null, onToolDecision: (toolCallId: String, decision: ToolDecision) -> Unit? = LocalToolDecision.current)(source)

A tool call rendered by the element that fits it: Subagent for delegations, ToolCall otherwise.