getRagFile method

  1. @override
Future<RagFile> getRagFile(
  1. GetRagFileRequest request
)
override

Gets a RagFile.

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
Future<RagFile> getRagFile(GetRagFileRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getRagFile case final getRagFile?) {
    return getRagFile(request);
  }
  throw UnsupportedError('getRagFile');
}