Interface ApprovalAction.Builder

  • Method Details

    • toolUseId

      ApprovalAction.Builder toolUseId(String toolUseId)

      Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.

      Parameters:
      toolUseId - Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • interruptId

      ApprovalAction.Builder interruptId(String interruptId)

      An opaque resume identifier issued by the service when an agent execution pauses for approval. Provide it when resuming so the service can resume the correct paused execution.

      Parameters:
      interruptId - An opaque resume identifier issued by the service when an agent execution pauses for approval. Provide it when resuming so the service can resume the correct paused execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalId

      ApprovalAction.Builder approvalId(String approvalId)

      Identifier of the approval request being resolved.

      Parameters:
      approvalId - Identifier of the approval request being resolved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buttonText

      ApprovalAction.Builder buttonText(String buttonText)

      Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.

      Parameters:
      buttonText - Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      The action taken on the approval request — APPROVED or REJECTED.

      Parameters:
      action - The action taken on the approval request — APPROVED or REJECTED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • action

      The action taken on the approval request — APPROVED or REJECTED.

      Parameters:
      action - The action taken on the approval request — APPROVED or REJECTED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: