/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). Set this to the sentinel value
"APPROVAL_ACTION"when the request is resuming a paused execution after an approval decision; in that case the structured decision is provided on the siblingapprovalActionmember. Preserved as a String for backward compatibility: clients that predate the typed approval field may still encode UI-prompt responses as JSON in this field.
io_approvalaction TYPE REF TO /AWS1/CL_DOAAPPROVALACTION /AWS1/CL_DOAAPPROVALACTION¶
An approval decision supplied when resuming a paused agent execution. When an agent execution pauses to request approval for an elevated action, SendMessage streams an approval request carrying interrupt identifiers. To resume the paused execution, call SendMessage again with
userActionResponseset to"APPROVAL_ACTION"and this member populated with those identifiers and the decision (APPROVED or REJECTED). Optional; omit it for messages that are not resuming an approval.
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). Set this to the sentinel value
"APPROVAL_ACTION"when the request is resuming a paused execution after an approval decision; in that case the structured decision is provided on the siblingapprovalActionmember. Preserved as a String for backward compatibility: clients that predate the typed approval field may still encode UI-prompt responses as JSON in this field.
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 |
approvalAction¶
An approval decision supplied when resuming a paused agent execution. When an agent execution pauses to request approval for an elevated action, SendMessage streams an approval request carrying interrupt identifiers. To resume the paused execution, call SendMessage again with
userActionResponseset to"APPROVAL_ACTION"and this member populated with those identifiers and the decision (APPROVED or REJECTED). Optional; omit it for messages that are not resuming an approval.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_APPROVALACTION() |
Getter for APPROVALACTION |