#[non_exhaustive]pub struct ApprovalChoice {
pub choice_id: String,
pub label: String,
pub decision: ApprovalDecision,
pub scope: ApprovalChoiceScope,
pub rule_preview: Option<String>,
pub accepts_feedback: bool,
}Expand description
One option the server offers for deciding an approval. Clients pick one and
send its choiceId in approval/decide; they never build their own.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.choice_id: StringThe id to send as choiceId in approval/decide. The set of ids is
open, so show label and do not base behavior on specific ids.
label: StringThe human-readable label to show for this choice.
decision: ApprovalDecisionThe decision this choice applies, so a client can act on approve or reject without knowing choice ids.
scope: ApprovalChoiceScopeThe grant duration this choice declares: once (this request only),
session (the rest of the session) or localPersistent (saved in the
local policy store).
rule_preview: Option<String>A human-readable preview of what this choice grants, such as the policy rule it would create; show it exactly as given.
accepts_feedback: booltrue when this choice takes optional feedback text in
approval/decide, which reaches the model as guidance. Omitted when
false.