ReadonlyapprovalWhat a person would be shown.
ReadonlyeffectsReadonlyfunctionThe AI function that asked for it.
ReadonlyidIts input, as the changes before this handler left it.
ReadonlyinvocationReadonlynameReadonlypathsupport/answer/refund.
ReadonlysettingsThe asking call's settings (its approve among them).
Ask a person whether the tool may run: in a conversation the turn waits,
saved, and goes on when someone answers; on a stream the call waits for
s.approve(); a plain call refuses (approval-required). decide
answers in place of a person. Resolves true, or false (the person's
refusal is then the result the model sees).
Optionalreason: string | nullThis plugin's entries of a kind on the branch of the turn the call runs in ([] outside a conversation).
Keep an entry of this plugin at the turn the call runs in (outside a conversation, a TypeError).
A tool about to run.
ask(reason)asks a person whether it may run.