Interface SendMessageContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SendMessageContext.Builder,,SendMessageContext> SdkBuilder<SendMessageContext.Builder,,SendMessageContext> SdkPojo
- Enclosing class:
SendMessageContext
@Mutable
@NotThreadSafe
public static interface SendMessageContext.Builder
extends SdkPojo, CopyableBuilder<SendMessageContext.Builder,SendMessageContext>
-
Method Summary
Modifier and TypeMethodDescriptioncurrentPage(String currentPage) The current page or view the user is onlastMessage(String lastMessage) The ID of the last message in the conversationuserActionResponse(String userActionResponse) Response to a UI prompt (not a text conversation message).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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.
-