How Human Interrupts and Responses work
mainThe Agent Inbox uses a specific schema to facilitate human-in-the-loop interactions.
Interrupt Fields (HumanInterrupt)
action_request: Contains theaction(header text) andargs(e.g., tool call arguments).config: Controls which actions are available to the user viaallow_ignore,allow_respond,allow_edit, andallow_accept.description: A detailed string (supports Markdown) providing context or instructions.
Response Types (HumanResponse)
When a user interacts with the inbox, the interrupt() function returns a list containing a HumanResponse object. The type determines the payload in args:
accept: Sends anActionRequestwhere allargskeys are converted to strings. Matches the originalaction_requeststructure.edit: Sends anActionRequestwhereargsvalues are strings containing the user's edits.response: Sends a single string in theargsfield.ignore: Returnsnullfor theargsfield.