streamQueryReasoningEngine method

  1. @override
Stream<HttpBody> streamQueryReasoningEngine(
  1. StreamQueryReasoningEngineRequest request
)
override

Streams queries using a reasoning engine.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Stream<HttpBody> streamQueryReasoningEngine(
  StreamQueryReasoningEngineRequest request,
) {
  if (isClosed) throw StateError('Service is closed');
  if (_streamQueryReasoningEngine case final streamQueryReasoningEngine?) {
    return streamQueryReasoningEngine(request);
  }
  throw UnsupportedError('streamQueryReasoningEngine');
}