Interface SendMessageContext.Builder

  • Method Details

    • currentPage

      SendMessageContext.Builder currentPage(String currentPage)

      The current page or view the user is on

      Parameters:
      currentPage - The current page or view the user is on
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastMessage

      SendMessageContext.Builder lastMessage(String lastMessage)

      The ID of the last message in the conversation

      Parameters:
      lastMessage - The ID of the last message in the conversation
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userActionResponse

      SendMessageContext.Builder userActionResponse(String userActionResponse)

      Response to a UI prompt (not a text conversation message). Operator App SDK clients set this to the control-string sentinel `"APPROVAL_ACTION"` when the request is resuming a paused tool call after an operator approval decision; in that case the structured decision context lives on the sibling `approvalAction` member and the chat agent reads from there. Preserved as a String for back-compat: pre-typed-approval clients still encode arbitrary UI-prompt responses as JSON in this field, and the chat agent parses them out during the transition.

      Parameters:
      userActionResponse - Response to a UI prompt (not a text conversation message). Operator App SDK clients set this to the control-string sentinel `"APPROVAL_ACTION"` when the request is resuming a paused tool call after an operator approval decision; in that case the structured decision context lives on the sibling `approvalAction` member and the chat agent reads from there. Preserved as a String for back-compat: pre-typed-approval clients still encode arbitrary UI-prompt responses as JSON in this field, and the chat agent parses them out during the transition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.