ToolRenderer

fun interface ToolRenderer(source)

Renders one tool call in place of the built-in ToolCall / Subagent. The decision callback carries approval, denial reason, edited arguments and remember choice. A null callback means read-only rendering: do not show approval actions. Respect ToolPart.approvalAnswers when offering edits or a reason.

Functions

Link copied to clipboard
@Composable
abstract fun Render(part: ToolPart, onToolDecision: (toolCallId: String, decision: ToolDecision) -> Unit?)