Abstract Class: RequestResponseWorkflowContext<T>
Base class for workflow contexts that send a WORKFLOW_CONTEXT message to the agent and await a matching CUSTOM_EVENT reply. Encapsulates the single-flight guard, per-call requestId matching, timeout, listener registration, and cleanup.
Extends
Type Parameters
Type Parameter
Constructors
Constructor
new RequestResponseWorkflowContext<T>(context): RequestResponseWorkflowContext<T>;
Parameters
Parameter
Type
contextTReturns
RequestResponseWorkflowContext<T>
Inherited from
Properties
Property
Modifier
Type
Inherited from
Methods
sendCustomMessage()
sendCustomMessage(data): void;
Sends a message to the SDK Agent to update the state of current running workflow.
Parameters
Parameter
Type
Description
dataunknownincoming data coming from client to update the workflow. Note - Type of data is limited to what postMessage supports.
Returns
void