AIToolApprovalCard

fun AIToolApprovalCard(approval: AIToolApproval, state: AIToolApprovalState, decide: (allowed: Boolean) -> Unit, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, colors: AIToolApprovalColors = AIToolApprovalDefaults.colors())

A tool call's question: what it asks, the agent's reason and what allowing it shares, and buttons to allow or decline it.

Parameters

approval

The question.

state

Where the person's answer is. Buttons are disabled while it is sent.

decide

Answers: true allows the call, false declines it.

modifier

The modifier to apply to the card.

textStyle

The style of the question. Its lines use a smaller style.

colors

The palette of the card.