streamWorkflow method
CancelFunction
streamWorkflow({})
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,
);
}