createRagDataSchema method

  1. @override
Future<RagDataSchema> createRagDataSchema(
  1. CreateRagDataSchemaRequest request
)
override

Creates a RagDataSchema.

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<RagDataSchema> createRagDataSchema(
  CreateRagDataSchemaRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_createRagDataSchema case final createRagDataSchema?) {
    return createRagDataSchema(request);
  }
  throw UnsupportedError('createRagDataSchema');
}