AIToolAuthorizationContentParams
data class AIToolAuthorizationContentParams(val call: AIToolCallPart, val authorization: AIToolAuthorization, val state: AIToolAuthorizationState, val connect: () -> Unit, val decline: () -> Unit, val textStyle: TextStyle, val colors: AIToolApprovalColors, val modifier: Modifier = Modifier)
Parameters for ChatAiComponentFactory.AIToolAuthorizationContent.
Parameters
call
The tool call that waits for the sign-in.
authorization
The sign-in, such as "Connect Linear".
state
Where the person's answer is.
connect
Hands the sign-in page to the approver's AIToolAuthorizer, which opens it.
decline
Sends the person's "not now".
textStyle
The style of the sign-in's question, the one the tool call's question uses.
colors
The palette of the sign-in, the one the tool call's question uses.
modifier
The modifier to apply.
Constructors
Link copied to clipboard
constructor(call: AIToolCallPart, authorization: AIToolAuthorization, state: AIToolAuthorizationState, connect: () -> Unit, decline: () -> Unit, textStyle: TextStyle, colors: AIToolApprovalColors, modifier: Modifier = Modifier)