request_authorization: Request User Authorization (HITL)

View source: R/auth_hook.R

request_authorizationR Documentation

Request User Authorization (HITL)

Description

Pauses execution and prompts the user for permission to execute a potentially risky action. Supports console environments via readline.

Usage

request_authorization(action, risk_level = "YELLOW")

Arguments

action

Character string describing the action the Agent wants to perform.

risk_level

Character string. One of "GREEN", "YELLOW", "RED".

Value

Logical TRUE if user permits, otherwise throws an error with the rejection reason.


aisdk documentation built on May 29, 2026, 9:07 a.m.