Skip to content

/AWS1/CL_DOASENDMESSAGECONTEXT

Context object for additional message metadata

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_currentpage TYPE /AWS1/DOASTRING /AWS1/DOASTRING

The current page or view the user is on

iv_lastmessage TYPE /AWS1/DOASTRING /AWS1/DOASTRING

The ID of the last message in the conversation

iv_useractionresponse TYPE /AWS1/DOASTRING /AWS1/DOASTRING

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.


Queryable Attributes

currentPage

The current page or view the user is on

Accessible with the following methods

Method Description
GET_CURRENTPAGE() Getter for CURRENTPAGE, with configurable default
ASK_CURRENTPAGE() Getter for CURRENTPAGE w/ exceptions if field has no value
HAS_CURRENTPAGE() Determine if CURRENTPAGE has a value

lastMessage

The ID of the last message in the conversation

Accessible with the following methods

Method Description
GET_LASTMESSAGE() Getter for LASTMESSAGE, with configurable default
ASK_LASTMESSAGE() Getter for LASTMESSAGE w/ exceptions if field has no value
HAS_LASTMESSAGE() Determine if LASTMESSAGE has a value

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.

Accessible with the following methods

Method Description
GET_USERACTIONRESPONSE() Getter for USERACTIONRESPONSE, with configurable default
ASK_USERACTIONRESPONSE() Getter for USERACTIONRESPONSE w/ exceptions if field has no
HAS_USERACTIONRESPONSE() Determine if USERACTIONRESPONSE has a value