AIToolApproval
constructor(title: String, message: String? = null, reason: String? = null, allowTitle: String? = null, declineTitle: String? = null, decision: AIToolApproval.Decision? = null)
Parameters
title
The question, such as "Share your location?".
message
What allowing it shares or does, such as "Only your city is shared."
reason
The agent's own words for why it wants the call, such as "to check the local weather".
allowTitle
The label of the button that allows the call, or null when the agent sent none. The default card then shows "Allow" in the app's language.
declineTitle
The label of the button that declines it, or null when the agent sent none. The card then shows "Don't allow" in the app's language.
decision
How the person answered, once they did.