AIToolAuthorizationCard
fun AIToolAuthorizationCard(authorization: AIToolAuthorization, state: AIToolAuthorizationState, connect: () -> Unit, decline: () -> Unit, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, colors: AIToolApprovalColors = AIToolApprovalDefaults.colors())
A tool call's sign-in: which provider it needs and what signing in means, with buttons to connect or to say not now.
Parameters
authorization
The sign-in.
state
Where the person's answer is. Connect waits while the sign-in is open or a "not now" is sent, and goes once the sign-in expires; Not now stays, so a sign-in that never comes back leaves the person a way out.
connect
Opens the sign-in.
decline
Sends the person's "not now".
modifier
The modifier to apply to the card.
textStyle
The style of the question. Its message uses a smaller style.
colors
The palette of the card, shared with AIToolApprovalCard.