Skip to main content

dispatch_permission_action

Function dispatch_permission_action 

Source
pub(crate) fn dispatch_permission_action(
    action: PermissionAction,
    notes_text: &str,
    edited_input: Option<Value>,
) -> PermissionDecision
Expand description

Build the PermissionDecision for a submitted option’s action. notes_text is the user’s “tell the agent” feedback string (or empty); consumed only when the action is Deny. edited_input is the user’s modified tool args; consumed only when the action is AllowWithInput.