Skip to main content

Available Approval States

The system supports three approval decisions for each tool execution:
  • APPROVED: Tool will execute with provided arguments
  • DENIED: Tool execution will be skipped
  • ABORTED_WITH_FEEDBACK_WITH_FEEDBACK: Tool execution cancelled with user feedback

State Combination Rules

Mixed States (Allowed)

Within a single batch, you can mix APPROVED and DENIED states:

Abort Restrictions (System Limitation)

Critical Constraint: If any tool in a batch has an ABORTED_WITH_FEEDBACK state, ALL tools in that batch must be ABORTED_WITH_FEEDBACK. You cannot mix ABORTED_WITH_FEEDBACK with APPROVED or DENIED states.

When to Use Each State

APPROVED

Use when the tool execution should proceed as planned:
  • Tool arguments look correct
  • User authorizes the action
  • No concerns about the operation
Example: User reviews calendar event creation and confirms the meeting details are accurate.

DENIED

Use when the tool should not execute but the overall workflow can continue:
  • Tool arguments are incorrect but fixable
  • User doesn’t want this specific action
  • Timing isn’t right for this operation
Example: User denies sending an email because the recipient list needs revision, but approves creating a draft.

ABORTED_WITH_FEEDBACK

Use when there are fundamental issues requiring workflow termination:
  • Tool arguments indicate a serious problem
  • User wants to stop the entire process
  • Additional context/feedback is needed
Example: User sees the agent is about to delete important data and wants to abort the entire operation with feedback about what went wrong.

Abort vs Deny Decision Matrix

UX Recommendations for State Handling

Button vs Text Input Patterns

Based on system constraints and UX best practices: For APPROVED/DENIED: Use individual buttons per tool
For ABORTED_WITH_FEEDBACK: Use text input for feedback

State Validation

Implement client-side validation to prevent invalid state combinations:

Progressive State Selection

Guide users away from problematic state combinations:

Error Scenarios

Mixed Abort Error Response

When you attempt to submit invalid mixed states:
Handle this error by enforcing consistent batch states:

Content Field Considerations

Tool approval responses that are not abortions cannot include files or images in the content field - these will be ignored by the system.

Next Steps