AgentBackendEventUserApprovalRequest
An event sent from the agent backend to the client during an agent task execution.
Properties
idstring requiredUnique identifier for the approval request.messagestring requiredMessage to show to the user requesting approval.buttonsarray[string] optionalOptional buttons for user interaction.sourceenum requiredSource of the approval request.Values:agent,system,hybridapproval_typeenum requiredType of approval being requested.Values:general,tool_permission,plan_exit- Additional context for the approval request.
- ↳
tool_call_idstring optionalTool call identifier associated with the approval request. - ↳
tool_namestring optionalTool name associated with the approval request. - ↳
git_diffmap[string]string optionalFull Git diff patches indexed by filename for source changes. - ↳
last_approval_diffmap[string]string optionalGit diff patches showing only the changes since the last approval (null for first approval). - ↳
plan_descriptionstring optionalMarkdown description of the plan when exiting plan mode. sensitivityenum optionalDistinguishes between moderate-sensitivity and high-sensitivity operations for auto-approval. Regular indicates moderate-sensitivity operations that will be auto-approved in both Balanced and Auto approval modes. Sensitive indicates very sensitive operations (e.g., pulumi up) that still require manual approval in Balanced mode and will only auto-approve in Auto mode. Defaults to Regular when not specified.Values:sensitive,regulartimestampstring requiredWhen the event occurred.typestring required
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.