streamWorkflow method

CancelFunction streamWorkflow({
  1. required String workflowId,
  2. String? userId,
  3. required Map<String, String> filledVariables,
  4. required List<ChatMessage> messages,
  5. required dynamic onNewResponse(
    1. PortalResponse
    ),
  6. required dynamic onClose(),
  7. required dynamic onError(
    1. dynamic
    ),
})

Implementation

CancelFunction streamWorkflow({
  required String workflowId,
  String? userId,
  required Map<String, String> filledVariables,
  required List<ChatMessage> messages,
  required Function(PortalResponse) onNewResponse,
  required Function() onClose,
  required Function(dynamic) onError,
}) {
  return streamEndpoint(
    endpoint: 'workflow',
    id: workflowId,
    userId: userId,
    filledVariables: filledVariables,
    messages: messages,
    onNewResponse: onNewResponse,
    onClose: onClose,
    onError: onError,
  );
}