@ondewo/nlu-client-typescript 6.4.0 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,8 +20,6 @@ const grpc = {};
20
20
  grpc.web = require('grpc-web');
21
21
 
22
22
 
23
- var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
24
-
25
23
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
26
24
 
27
25
  var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
@@ -638,382 +636,16 @@ proto.ondewo.nlu.RagsPromiseClient.prototype.ragRetrieval =
638
636
  /**
639
637
  * @const
640
638
  * @type {!grpc.web.MethodDescriptor<
641
- * !proto.ondewo.nlu.RagDatasetIdRequest,
642
- * !proto.ondewo.nlu.RagGetKnowledgeGraphResponse>}
643
- */
644
- const methodDescriptor_Rags_RagGetKnowledgeGraph = new grpc.web.MethodDescriptor(
645
- '/ondewo.nlu.Rags/RagGetKnowledgeGraph',
646
- grpc.web.MethodType.UNARY,
647
- proto.ondewo.nlu.RagDatasetIdRequest,
648
- proto.ondewo.nlu.RagGetKnowledgeGraphResponse,
649
- /**
650
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
651
- * @return {!Uint8Array}
652
- */
653
- function(request) {
654
- return request.serializeBinary();
655
- },
656
- proto.ondewo.nlu.RagGetKnowledgeGraphResponse.deserializeBinary
657
- );
658
-
659
-
660
- /**
661
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
662
- * request proto
663
- * @param {?Object<string, string>} metadata User defined
664
- * call metadata
665
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagGetKnowledgeGraphResponse)}
666
- * callback The callback function(error, response)
667
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagGetKnowledgeGraphResponse>|undefined}
668
- * The XHR Node Readable Stream
669
- */
670
- proto.ondewo.nlu.RagsClient.prototype.ragGetKnowledgeGraph =
671
- function(request, metadata, callback) {
672
- return this.client_.rpcCall(this.hostname_ +
673
- '/ondewo.nlu.Rags/RagGetKnowledgeGraph',
674
- request,
675
- metadata || {},
676
- methodDescriptor_Rags_RagGetKnowledgeGraph,
677
- callback);
678
- };
679
-
680
-
681
- /**
682
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
683
- * request proto
684
- * @param {?Object<string, string>=} metadata User defined
685
- * call metadata
686
- * @return {!Promise<!proto.ondewo.nlu.RagGetKnowledgeGraphResponse>}
687
- * Promise that resolves to the response
688
- */
689
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragGetKnowledgeGraph =
690
- function(request, metadata) {
691
- return this.client_.unaryCall(this.hostname_ +
692
- '/ondewo.nlu.Rags/RagGetKnowledgeGraph',
693
- request,
694
- metadata || {},
695
- methodDescriptor_Rags_RagGetKnowledgeGraph);
696
- };
697
-
698
-
699
- /**
700
- * @const
701
- * @type {!grpc.web.MethodDescriptor<
702
- * !proto.ondewo.nlu.RagDatasetIdRequest,
703
- * !proto.google.protobuf.Empty>}
704
- */
705
- const methodDescriptor_Rags_RagDeleteKnowledgeGraph = new grpc.web.MethodDescriptor(
706
- '/ondewo.nlu.Rags/RagDeleteKnowledgeGraph',
707
- grpc.web.MethodType.UNARY,
708
- proto.ondewo.nlu.RagDatasetIdRequest,
709
- google_protobuf_empty_pb.Empty,
710
- /**
711
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
712
- * @return {!Uint8Array}
713
- */
714
- function(request) {
715
- return request.serializeBinary();
716
- },
717
- google_protobuf_empty_pb.Empty.deserializeBinary
718
- );
719
-
720
-
721
- /**
722
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
723
- * request proto
724
- * @param {?Object<string, string>} metadata User defined
725
- * call metadata
726
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
727
- * callback The callback function(error, response)
728
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
729
- * The XHR Node Readable Stream
730
- */
731
- proto.ondewo.nlu.RagsClient.prototype.ragDeleteKnowledgeGraph =
732
- function(request, metadata, callback) {
733
- return this.client_.rpcCall(this.hostname_ +
734
- '/ondewo.nlu.Rags/RagDeleteKnowledgeGraph',
735
- request,
736
- metadata || {},
737
- methodDescriptor_Rags_RagDeleteKnowledgeGraph,
738
- callback);
739
- };
740
-
741
-
742
- /**
743
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
744
- * request proto
745
- * @param {?Object<string, string>=} metadata User defined
746
- * call metadata
747
- * @return {!Promise<!proto.google.protobuf.Empty>}
748
- * Promise that resolves to the response
749
- */
750
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragDeleteKnowledgeGraph =
751
- function(request, metadata) {
752
- return this.client_.unaryCall(this.hostname_ +
753
- '/ondewo.nlu.Rags/RagDeleteKnowledgeGraph',
754
- request,
755
- metadata || {},
756
- methodDescriptor_Rags_RagDeleteKnowledgeGraph);
757
- };
758
-
759
-
760
- /**
761
- * @const
762
- * @type {!grpc.web.MethodDescriptor<
763
- * !proto.ondewo.nlu.RagDatasetIdRequest,
764
- * !proto.ondewo.nlu.RagConstructKnowledgeGraphResponse>}
765
- */
766
- const methodDescriptor_Rags_RagConstructKnowledgeGraph = new grpc.web.MethodDescriptor(
767
- '/ondewo.nlu.Rags/RagConstructKnowledgeGraph',
768
- grpc.web.MethodType.UNARY,
769
- proto.ondewo.nlu.RagDatasetIdRequest,
770
- proto.ondewo.nlu.RagConstructKnowledgeGraphResponse,
771
- /**
772
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
773
- * @return {!Uint8Array}
774
- */
775
- function(request) {
776
- return request.serializeBinary();
777
- },
778
- proto.ondewo.nlu.RagConstructKnowledgeGraphResponse.deserializeBinary
779
- );
780
-
781
-
782
- /**
783
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
784
- * request proto
785
- * @param {?Object<string, string>} metadata User defined
786
- * call metadata
787
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagConstructKnowledgeGraphResponse)}
788
- * callback The callback function(error, response)
789
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagConstructKnowledgeGraphResponse>|undefined}
790
- * The XHR Node Readable Stream
791
- */
792
- proto.ondewo.nlu.RagsClient.prototype.ragConstructKnowledgeGraph =
793
- function(request, metadata, callback) {
794
- return this.client_.rpcCall(this.hostname_ +
795
- '/ondewo.nlu.Rags/RagConstructKnowledgeGraph',
796
- request,
797
- metadata || {},
798
- methodDescriptor_Rags_RagConstructKnowledgeGraph,
799
- callback);
800
- };
801
-
802
-
803
- /**
804
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
805
- * request proto
806
- * @param {?Object<string, string>=} metadata User defined
807
- * call metadata
808
- * @return {!Promise<!proto.ondewo.nlu.RagConstructKnowledgeGraphResponse>}
809
- * Promise that resolves to the response
810
- */
811
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragConstructKnowledgeGraph =
812
- function(request, metadata) {
813
- return this.client_.unaryCall(this.hostname_ +
814
- '/ondewo.nlu.Rags/RagConstructKnowledgeGraph',
815
- request,
816
- metadata || {},
817
- methodDescriptor_Rags_RagConstructKnowledgeGraph);
818
- };
819
-
820
-
821
- /**
822
- * @const
823
- * @type {!grpc.web.MethodDescriptor<
824
- * !proto.ondewo.nlu.RagDatasetIdRequest,
825
- * !proto.ondewo.nlu.RagTaskStatus>}
826
- */
827
- const methodDescriptor_Rags_RagKnowledgeGraphStatus = new grpc.web.MethodDescriptor(
828
- '/ondewo.nlu.Rags/RagKnowledgeGraphStatus',
829
- grpc.web.MethodType.UNARY,
830
- proto.ondewo.nlu.RagDatasetIdRequest,
831
- proto.ondewo.nlu.RagTaskStatus,
832
- /**
833
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
834
- * @return {!Uint8Array}
835
- */
836
- function(request) {
837
- return request.serializeBinary();
838
- },
839
- proto.ondewo.nlu.RagTaskStatus.deserializeBinary
840
- );
841
-
842
-
843
- /**
844
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
845
- * request proto
846
- * @param {?Object<string, string>} metadata User defined
847
- * call metadata
848
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagTaskStatus)}
849
- * callback The callback function(error, response)
850
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagTaskStatus>|undefined}
851
- * The XHR Node Readable Stream
852
- */
853
- proto.ondewo.nlu.RagsClient.prototype.ragKnowledgeGraphStatus =
854
- function(request, metadata, callback) {
855
- return this.client_.rpcCall(this.hostname_ +
856
- '/ondewo.nlu.Rags/RagKnowledgeGraphStatus',
857
- request,
858
- metadata || {},
859
- methodDescriptor_Rags_RagKnowledgeGraphStatus,
860
- callback);
861
- };
862
-
863
-
864
- /**
865
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
866
- * request proto
867
- * @param {?Object<string, string>=} metadata User defined
868
- * call metadata
869
- * @return {!Promise<!proto.ondewo.nlu.RagTaskStatus>}
870
- * Promise that resolves to the response
871
- */
872
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragKnowledgeGraphStatus =
873
- function(request, metadata) {
874
- return this.client_.unaryCall(this.hostname_ +
875
- '/ondewo.nlu.Rags/RagKnowledgeGraphStatus',
876
- request,
877
- metadata || {},
878
- methodDescriptor_Rags_RagKnowledgeGraphStatus);
879
- };
880
-
881
-
882
- /**
883
- * @const
884
- * @type {!grpc.web.MethodDescriptor<
885
- * !proto.ondewo.nlu.RagDatasetIdRequest,
886
- * !proto.ondewo.nlu.RagConstructRaptorResponse>}
887
- */
888
- const methodDescriptor_Rags_RagConstructRaptor = new grpc.web.MethodDescriptor(
889
- '/ondewo.nlu.Rags/RagConstructRaptor',
890
- grpc.web.MethodType.UNARY,
891
- proto.ondewo.nlu.RagDatasetIdRequest,
892
- proto.ondewo.nlu.RagConstructRaptorResponse,
893
- /**
894
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
895
- * @return {!Uint8Array}
896
- */
897
- function(request) {
898
- return request.serializeBinary();
899
- },
900
- proto.ondewo.nlu.RagConstructRaptorResponse.deserializeBinary
901
- );
902
-
903
-
904
- /**
905
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
906
- * request proto
907
- * @param {?Object<string, string>} metadata User defined
908
- * call metadata
909
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagConstructRaptorResponse)}
910
- * callback The callback function(error, response)
911
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagConstructRaptorResponse>|undefined}
912
- * The XHR Node Readable Stream
913
- */
914
- proto.ondewo.nlu.RagsClient.prototype.ragConstructRaptor =
915
- function(request, metadata, callback) {
916
- return this.client_.rpcCall(this.hostname_ +
917
- '/ondewo.nlu.Rags/RagConstructRaptor',
918
- request,
919
- metadata || {},
920
- methodDescriptor_Rags_RagConstructRaptor,
921
- callback);
922
- };
923
-
924
-
925
- /**
926
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
927
- * request proto
928
- * @param {?Object<string, string>=} metadata User defined
929
- * call metadata
930
- * @return {!Promise<!proto.ondewo.nlu.RagConstructRaptorResponse>}
931
- * Promise that resolves to the response
932
- */
933
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragConstructRaptor =
934
- function(request, metadata) {
935
- return this.client_.unaryCall(this.hostname_ +
936
- '/ondewo.nlu.Rags/RagConstructRaptor',
937
- request,
938
- metadata || {},
939
- methodDescriptor_Rags_RagConstructRaptor);
940
- };
941
-
942
-
943
- /**
944
- * @const
945
- * @type {!grpc.web.MethodDescriptor<
946
- * !proto.ondewo.nlu.RagDatasetIdRequest,
947
- * !proto.ondewo.nlu.RagTaskStatus>}
948
- */
949
- const methodDescriptor_Rags_RagRaptorStatus = new grpc.web.MethodDescriptor(
950
- '/ondewo.nlu.Rags/RagRaptorStatus',
951
- grpc.web.MethodType.UNARY,
952
- proto.ondewo.nlu.RagDatasetIdRequest,
953
- proto.ondewo.nlu.RagTaskStatus,
954
- /**
955
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request
956
- * @return {!Uint8Array}
957
- */
958
- function(request) {
959
- return request.serializeBinary();
960
- },
961
- proto.ondewo.nlu.RagTaskStatus.deserializeBinary
962
- );
963
-
964
-
965
- /**
966
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
967
- * request proto
968
- * @param {?Object<string, string>} metadata User defined
969
- * call metadata
970
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagTaskStatus)}
971
- * callback The callback function(error, response)
972
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagTaskStatus>|undefined}
973
- * The XHR Node Readable Stream
974
- */
975
- proto.ondewo.nlu.RagsClient.prototype.ragRaptorStatus =
976
- function(request, metadata, callback) {
977
- return this.client_.rpcCall(this.hostname_ +
978
- '/ondewo.nlu.Rags/RagRaptorStatus',
979
- request,
980
- metadata || {},
981
- methodDescriptor_Rags_RagRaptorStatus,
982
- callback);
983
- };
984
-
985
-
986
- /**
987
- * @param {!proto.ondewo.nlu.RagDatasetIdRequest} request The
988
- * request proto
989
- * @param {?Object<string, string>=} metadata User defined
990
- * call metadata
991
- * @return {!Promise<!proto.ondewo.nlu.RagTaskStatus>}
992
- * Promise that resolves to the response
993
- */
994
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragRaptorStatus =
995
- function(request, metadata) {
996
- return this.client_.unaryCall(this.hostname_ +
997
- '/ondewo.nlu.Rags/RagRaptorStatus',
998
- request,
999
- metadata || {},
1000
- methodDescriptor_Rags_RagRaptorStatus);
1001
- };
1002
-
1003
-
1004
- /**
1005
- * @const
1006
- * @type {!grpc.web.MethodDescriptor<
1007
- * !proto.ondewo.nlu.RagParseDocumentsRequest,
639
+ * !proto.ondewo.nlu.RagDocumentIdsRequest,
1008
640
  * !proto.ondewo.nlu.RagPartialSuccess>}
1009
641
  */
1010
642
  const methodDescriptor_Rags_RagParseDocuments = new grpc.web.MethodDescriptor(
1011
643
  '/ondewo.nlu.Rags/RagParseDocuments',
1012
644
  grpc.web.MethodType.UNARY,
1013
- proto.ondewo.nlu.RagParseDocumentsRequest,
645
+ proto.ondewo.nlu.RagDocumentIdsRequest,
1014
646
  proto.ondewo.nlu.RagPartialSuccess,
1015
647
  /**
1016
- * @param {!proto.ondewo.nlu.RagParseDocumentsRequest} request
648
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request
1017
649
  * @return {!Uint8Array}
1018
650
  */
1019
651
  function(request) {
@@ -1024,7 +656,7 @@ const methodDescriptor_Rags_RagParseDocuments = new grpc.web.MethodDescriptor(
1024
656
 
1025
657
 
1026
658
  /**
1027
- * @param {!proto.ondewo.nlu.RagParseDocumentsRequest} request The
659
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request The
1028
660
  * request proto
1029
661
  * @param {?Object<string, string>} metadata User defined
1030
662
  * call metadata
@@ -1045,7 +677,7 @@ proto.ondewo.nlu.RagsClient.prototype.ragParseDocuments =
1045
677
 
1046
678
 
1047
679
  /**
1048
- * @param {!proto.ondewo.nlu.RagParseDocumentsRequest} request The
680
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request The
1049
681
  * request proto
1050
682
  * @param {?Object<string, string>=} metadata User defined
1051
683
  * call metadata
@@ -1065,16 +697,16 @@ proto.ondewo.nlu.RagsPromiseClient.prototype.ragParseDocuments =
1065
697
  /**
1066
698
  * @const
1067
699
  * @type {!grpc.web.MethodDescriptor<
1068
- * !proto.ondewo.nlu.RagStopParsingRequest,
700
+ * !proto.ondewo.nlu.RagDocumentIdsRequest,
1069
701
  * !proto.ondewo.nlu.RagPartialSuccess>}
1070
702
  */
1071
703
  const methodDescriptor_Rags_RagStopParsing = new grpc.web.MethodDescriptor(
1072
704
  '/ondewo.nlu.Rags/RagStopParsing',
1073
705
  grpc.web.MethodType.UNARY,
1074
- proto.ondewo.nlu.RagStopParsingRequest,
706
+ proto.ondewo.nlu.RagDocumentIdsRequest,
1075
707
  proto.ondewo.nlu.RagPartialSuccess,
1076
708
  /**
1077
- * @param {!proto.ondewo.nlu.RagStopParsingRequest} request
709
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request
1078
710
  * @return {!Uint8Array}
1079
711
  */
1080
712
  function(request) {
@@ -1085,7 +717,7 @@ const methodDescriptor_Rags_RagStopParsing = new grpc.web.MethodDescriptor(
1085
717
 
1086
718
 
1087
719
  /**
1088
- * @param {!proto.ondewo.nlu.RagStopParsingRequest} request The
720
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request The
1089
721
  * request proto
1090
722
  * @param {?Object<string, string>} metadata User defined
1091
723
  * call metadata
@@ -1106,7 +738,7 @@ proto.ondewo.nlu.RagsClient.prototype.ragStopParsing =
1106
738
 
1107
739
 
1108
740
  /**
1109
- * @param {!proto.ondewo.nlu.RagStopParsingRequest} request The
741
+ * @param {!proto.ondewo.nlu.RagDocumentIdsRequest} request The
1110
742
  * request proto
1111
743
  * @param {?Object<string, string>=} metadata User defined
1112
744
  * call metadata
@@ -1123,1333 +755,6 @@ proto.ondewo.nlu.RagsPromiseClient.prototype.ragStopParsing =
1123
755
  };
1124
756
 
1125
757
 
1126
- /**
1127
- * @const
1128
- * @type {!grpc.web.MethodDescriptor<
1129
- * !proto.ondewo.nlu.RagListChunksRequest,
1130
- * !proto.ondewo.nlu.RagListChunksResponse>}
1131
- */
1132
- const methodDescriptor_Rags_RagListChunks = new grpc.web.MethodDescriptor(
1133
- '/ondewo.nlu.Rags/RagListChunks',
1134
- grpc.web.MethodType.UNARY,
1135
- proto.ondewo.nlu.RagListChunksRequest,
1136
- proto.ondewo.nlu.RagListChunksResponse,
1137
- /**
1138
- * @param {!proto.ondewo.nlu.RagListChunksRequest} request
1139
- * @return {!Uint8Array}
1140
- */
1141
- function(request) {
1142
- return request.serializeBinary();
1143
- },
1144
- proto.ondewo.nlu.RagListChunksResponse.deserializeBinary
1145
- );
1146
-
1147
-
1148
- /**
1149
- * @param {!proto.ondewo.nlu.RagListChunksRequest} request The
1150
- * request proto
1151
- * @param {?Object<string, string>} metadata User defined
1152
- * call metadata
1153
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagListChunksResponse)}
1154
- * callback The callback function(error, response)
1155
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagListChunksResponse>|undefined}
1156
- * The XHR Node Readable Stream
1157
- */
1158
- proto.ondewo.nlu.RagsClient.prototype.ragListChunks =
1159
- function(request, metadata, callback) {
1160
- return this.client_.rpcCall(this.hostname_ +
1161
- '/ondewo.nlu.Rags/RagListChunks',
1162
- request,
1163
- metadata || {},
1164
- methodDescriptor_Rags_RagListChunks,
1165
- callback);
1166
- };
1167
-
1168
-
1169
- /**
1170
- * @param {!proto.ondewo.nlu.RagListChunksRequest} request The
1171
- * request proto
1172
- * @param {?Object<string, string>=} metadata User defined
1173
- * call metadata
1174
- * @return {!Promise<!proto.ondewo.nlu.RagListChunksResponse>}
1175
- * Promise that resolves to the response
1176
- */
1177
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragListChunks =
1178
- function(request, metadata) {
1179
- return this.client_.unaryCall(this.hostname_ +
1180
- '/ondewo.nlu.Rags/RagListChunks',
1181
- request,
1182
- metadata || {},
1183
- methodDescriptor_Rags_RagListChunks);
1184
- };
1185
-
1186
-
1187
- /**
1188
- * @const
1189
- * @type {!grpc.web.MethodDescriptor<
1190
- * !proto.ondewo.nlu.RagAddChunkRequest,
1191
- * !proto.ondewo.nlu.RagAddChunkResponse>}
1192
- */
1193
- const methodDescriptor_Rags_RagAddChunk = new grpc.web.MethodDescriptor(
1194
- '/ondewo.nlu.Rags/RagAddChunk',
1195
- grpc.web.MethodType.UNARY,
1196
- proto.ondewo.nlu.RagAddChunkRequest,
1197
- proto.ondewo.nlu.RagAddChunkResponse,
1198
- /**
1199
- * @param {!proto.ondewo.nlu.RagAddChunkRequest} request
1200
- * @return {!Uint8Array}
1201
- */
1202
- function(request) {
1203
- return request.serializeBinary();
1204
- },
1205
- proto.ondewo.nlu.RagAddChunkResponse.deserializeBinary
1206
- );
1207
-
1208
-
1209
- /**
1210
- * @param {!proto.ondewo.nlu.RagAddChunkRequest} request The
1211
- * request proto
1212
- * @param {?Object<string, string>} metadata User defined
1213
- * call metadata
1214
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagAddChunkResponse)}
1215
- * callback The callback function(error, response)
1216
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAddChunkResponse>|undefined}
1217
- * The XHR Node Readable Stream
1218
- */
1219
- proto.ondewo.nlu.RagsClient.prototype.ragAddChunk =
1220
- function(request, metadata, callback) {
1221
- return this.client_.rpcCall(this.hostname_ +
1222
- '/ondewo.nlu.Rags/RagAddChunk',
1223
- request,
1224
- metadata || {},
1225
- methodDescriptor_Rags_RagAddChunk,
1226
- callback);
1227
- };
1228
-
1229
-
1230
- /**
1231
- * @param {!proto.ondewo.nlu.RagAddChunkRequest} request The
1232
- * request proto
1233
- * @param {?Object<string, string>=} metadata User defined
1234
- * call metadata
1235
- * @return {!Promise<!proto.ondewo.nlu.RagAddChunkResponse>}
1236
- * Promise that resolves to the response
1237
- */
1238
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragAddChunk =
1239
- function(request, metadata) {
1240
- return this.client_.unaryCall(this.hostname_ +
1241
- '/ondewo.nlu.Rags/RagAddChunk',
1242
- request,
1243
- metadata || {},
1244
- methodDescriptor_Rags_RagAddChunk);
1245
- };
1246
-
1247
-
1248
- /**
1249
- * @const
1250
- * @type {!grpc.web.MethodDescriptor<
1251
- * !proto.ondewo.nlu.RagRemoveChunksRequest,
1252
- * !proto.ondewo.nlu.RagPartialSuccess>}
1253
- */
1254
- const methodDescriptor_Rags_RagRemoveChunks = new grpc.web.MethodDescriptor(
1255
- '/ondewo.nlu.Rags/RagRemoveChunks',
1256
- grpc.web.MethodType.UNARY,
1257
- proto.ondewo.nlu.RagRemoveChunksRequest,
1258
- proto.ondewo.nlu.RagPartialSuccess,
1259
- /**
1260
- * @param {!proto.ondewo.nlu.RagRemoveChunksRequest} request
1261
- * @return {!Uint8Array}
1262
- */
1263
- function(request) {
1264
- return request.serializeBinary();
1265
- },
1266
- proto.ondewo.nlu.RagPartialSuccess.deserializeBinary
1267
- );
1268
-
1269
-
1270
- /**
1271
- * @param {!proto.ondewo.nlu.RagRemoveChunksRequest} request The
1272
- * request proto
1273
- * @param {?Object<string, string>} metadata User defined
1274
- * call metadata
1275
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagPartialSuccess)}
1276
- * callback The callback function(error, response)
1277
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagPartialSuccess>|undefined}
1278
- * The XHR Node Readable Stream
1279
- */
1280
- proto.ondewo.nlu.RagsClient.prototype.ragRemoveChunks =
1281
- function(request, metadata, callback) {
1282
- return this.client_.rpcCall(this.hostname_ +
1283
- '/ondewo.nlu.Rags/RagRemoveChunks',
1284
- request,
1285
- metadata || {},
1286
- methodDescriptor_Rags_RagRemoveChunks,
1287
- callback);
1288
- };
1289
-
1290
-
1291
- /**
1292
- * @param {!proto.ondewo.nlu.RagRemoveChunksRequest} request The
1293
- * request proto
1294
- * @param {?Object<string, string>=} metadata User defined
1295
- * call metadata
1296
- * @return {!Promise<!proto.ondewo.nlu.RagPartialSuccess>}
1297
- * Promise that resolves to the response
1298
- */
1299
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragRemoveChunks =
1300
- function(request, metadata) {
1301
- return this.client_.unaryCall(this.hostname_ +
1302
- '/ondewo.nlu.Rags/RagRemoveChunks',
1303
- request,
1304
- metadata || {},
1305
- methodDescriptor_Rags_RagRemoveChunks);
1306
- };
1307
-
1308
-
1309
- /**
1310
- * @const
1311
- * @type {!grpc.web.MethodDescriptor<
1312
- * !proto.ondewo.nlu.RagUpdateChunkRequest,
1313
- * !proto.google.protobuf.Empty>}
1314
- */
1315
- const methodDescriptor_Rags_RagUpdateChunk = new grpc.web.MethodDescriptor(
1316
- '/ondewo.nlu.Rags/RagUpdateChunk',
1317
- grpc.web.MethodType.UNARY,
1318
- proto.ondewo.nlu.RagUpdateChunkRequest,
1319
- google_protobuf_empty_pb.Empty,
1320
- /**
1321
- * @param {!proto.ondewo.nlu.RagUpdateChunkRequest} request
1322
- * @return {!Uint8Array}
1323
- */
1324
- function(request) {
1325
- return request.serializeBinary();
1326
- },
1327
- google_protobuf_empty_pb.Empty.deserializeBinary
1328
- );
1329
-
1330
-
1331
- /**
1332
- * @param {!proto.ondewo.nlu.RagUpdateChunkRequest} request The
1333
- * request proto
1334
- * @param {?Object<string, string>} metadata User defined
1335
- * call metadata
1336
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1337
- * callback The callback function(error, response)
1338
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1339
- * The XHR Node Readable Stream
1340
- */
1341
- proto.ondewo.nlu.RagsClient.prototype.ragUpdateChunk =
1342
- function(request, metadata, callback) {
1343
- return this.client_.rpcCall(this.hostname_ +
1344
- '/ondewo.nlu.Rags/RagUpdateChunk',
1345
- request,
1346
- metadata || {},
1347
- methodDescriptor_Rags_RagUpdateChunk,
1348
- callback);
1349
- };
1350
-
1351
-
1352
- /**
1353
- * @param {!proto.ondewo.nlu.RagUpdateChunkRequest} request The
1354
- * request proto
1355
- * @param {?Object<string, string>=} metadata User defined
1356
- * call metadata
1357
- * @return {!Promise<!proto.google.protobuf.Empty>}
1358
- * Promise that resolves to the response
1359
- */
1360
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragUpdateChunk =
1361
- function(request, metadata) {
1362
- return this.client_.unaryCall(this.hostname_ +
1363
- '/ondewo.nlu.Rags/RagUpdateChunk',
1364
- request,
1365
- metadata || {},
1366
- methodDescriptor_Rags_RagUpdateChunk);
1367
- };
1368
-
1369
-
1370
- /**
1371
- * @const
1372
- * @type {!grpc.web.MethodDescriptor<
1373
- * !proto.ondewo.nlu.RagCreateChatAssistantRequest,
1374
- * !proto.ondewo.nlu.RagChatAssistant>}
1375
- */
1376
- const methodDescriptor_Rags_RagCreateChatAssistant = new grpc.web.MethodDescriptor(
1377
- '/ondewo.nlu.Rags/RagCreateChatAssistant',
1378
- grpc.web.MethodType.UNARY,
1379
- proto.ondewo.nlu.RagCreateChatAssistantRequest,
1380
- proto.ondewo.nlu.RagChatAssistant,
1381
- /**
1382
- * @param {!proto.ondewo.nlu.RagCreateChatAssistantRequest} request
1383
- * @return {!Uint8Array}
1384
- */
1385
- function(request) {
1386
- return request.serializeBinary();
1387
- },
1388
- proto.ondewo.nlu.RagChatAssistant.deserializeBinary
1389
- );
1390
-
1391
-
1392
- /**
1393
- * @param {!proto.ondewo.nlu.RagCreateChatAssistantRequest} request The
1394
- * request proto
1395
- * @param {?Object<string, string>} metadata User defined
1396
- * call metadata
1397
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagChatAssistant)}
1398
- * callback The callback function(error, response)
1399
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatAssistant>|undefined}
1400
- * The XHR Node Readable Stream
1401
- */
1402
- proto.ondewo.nlu.RagsClient.prototype.ragCreateChatAssistant =
1403
- function(request, metadata, callback) {
1404
- return this.client_.rpcCall(this.hostname_ +
1405
- '/ondewo.nlu.Rags/RagCreateChatAssistant',
1406
- request,
1407
- metadata || {},
1408
- methodDescriptor_Rags_RagCreateChatAssistant,
1409
- callback);
1410
- };
1411
-
1412
-
1413
- /**
1414
- * @param {!proto.ondewo.nlu.RagCreateChatAssistantRequest} request The
1415
- * request proto
1416
- * @param {?Object<string, string>=} metadata User defined
1417
- * call metadata
1418
- * @return {!Promise<!proto.ondewo.nlu.RagChatAssistant>}
1419
- * Promise that resolves to the response
1420
- */
1421
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragCreateChatAssistant =
1422
- function(request, metadata) {
1423
- return this.client_.unaryCall(this.hostname_ +
1424
- '/ondewo.nlu.Rags/RagCreateChatAssistant',
1425
- request,
1426
- metadata || {},
1427
- methodDescriptor_Rags_RagCreateChatAssistant);
1428
- };
1429
-
1430
-
1431
- /**
1432
- * @const
1433
- * @type {!grpc.web.MethodDescriptor<
1434
- * !proto.ondewo.nlu.RagUpdateChatAssistantRequest,
1435
- * !proto.google.protobuf.Empty>}
1436
- */
1437
- const methodDescriptor_Rags_RagUpdateChatAssistant = new grpc.web.MethodDescriptor(
1438
- '/ondewo.nlu.Rags/RagUpdateChatAssistant',
1439
- grpc.web.MethodType.UNARY,
1440
- proto.ondewo.nlu.RagUpdateChatAssistantRequest,
1441
- google_protobuf_empty_pb.Empty,
1442
- /**
1443
- * @param {!proto.ondewo.nlu.RagUpdateChatAssistantRequest} request
1444
- * @return {!Uint8Array}
1445
- */
1446
- function(request) {
1447
- return request.serializeBinary();
1448
- },
1449
- google_protobuf_empty_pb.Empty.deserializeBinary
1450
- );
1451
-
1452
-
1453
- /**
1454
- * @param {!proto.ondewo.nlu.RagUpdateChatAssistantRequest} request The
1455
- * request proto
1456
- * @param {?Object<string, string>} metadata User defined
1457
- * call metadata
1458
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1459
- * callback The callback function(error, response)
1460
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1461
- * The XHR Node Readable Stream
1462
- */
1463
- proto.ondewo.nlu.RagsClient.prototype.ragUpdateChatAssistant =
1464
- function(request, metadata, callback) {
1465
- return this.client_.rpcCall(this.hostname_ +
1466
- '/ondewo.nlu.Rags/RagUpdateChatAssistant',
1467
- request,
1468
- metadata || {},
1469
- methodDescriptor_Rags_RagUpdateChatAssistant,
1470
- callback);
1471
- };
1472
-
1473
-
1474
- /**
1475
- * @param {!proto.ondewo.nlu.RagUpdateChatAssistantRequest} request The
1476
- * request proto
1477
- * @param {?Object<string, string>=} metadata User defined
1478
- * call metadata
1479
- * @return {!Promise<!proto.google.protobuf.Empty>}
1480
- * Promise that resolves to the response
1481
- */
1482
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragUpdateChatAssistant =
1483
- function(request, metadata) {
1484
- return this.client_.unaryCall(this.hostname_ +
1485
- '/ondewo.nlu.Rags/RagUpdateChatAssistant',
1486
- request,
1487
- metadata || {},
1488
- methodDescriptor_Rags_RagUpdateChatAssistant);
1489
- };
1490
-
1491
-
1492
- /**
1493
- * @const
1494
- * @type {!grpc.web.MethodDescriptor<
1495
- * !proto.ondewo.nlu.RagDeleteRequest,
1496
- * !proto.ondewo.nlu.RagPartialSuccess>}
1497
- */
1498
- const methodDescriptor_Rags_RagDeleteChatAssistants = new grpc.web.MethodDescriptor(
1499
- '/ondewo.nlu.Rags/RagDeleteChatAssistants',
1500
- grpc.web.MethodType.UNARY,
1501
- proto.ondewo.nlu.RagDeleteRequest,
1502
- proto.ondewo.nlu.RagPartialSuccess,
1503
- /**
1504
- * @param {!proto.ondewo.nlu.RagDeleteRequest} request
1505
- * @return {!Uint8Array}
1506
- */
1507
- function(request) {
1508
- return request.serializeBinary();
1509
- },
1510
- proto.ondewo.nlu.RagPartialSuccess.deserializeBinary
1511
- );
1512
-
1513
-
1514
- /**
1515
- * @param {!proto.ondewo.nlu.RagDeleteRequest} request The
1516
- * request proto
1517
- * @param {?Object<string, string>} metadata User defined
1518
- * call metadata
1519
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagPartialSuccess)}
1520
- * callback The callback function(error, response)
1521
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagPartialSuccess>|undefined}
1522
- * The XHR Node Readable Stream
1523
- */
1524
- proto.ondewo.nlu.RagsClient.prototype.ragDeleteChatAssistants =
1525
- function(request, metadata, callback) {
1526
- return this.client_.rpcCall(this.hostname_ +
1527
- '/ondewo.nlu.Rags/RagDeleteChatAssistants',
1528
- request,
1529
- metadata || {},
1530
- methodDescriptor_Rags_RagDeleteChatAssistants,
1531
- callback);
1532
- };
1533
-
1534
-
1535
- /**
1536
- * @param {!proto.ondewo.nlu.RagDeleteRequest} request The
1537
- * request proto
1538
- * @param {?Object<string, string>=} metadata User defined
1539
- * call metadata
1540
- * @return {!Promise<!proto.ondewo.nlu.RagPartialSuccess>}
1541
- * Promise that resolves to the response
1542
- */
1543
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragDeleteChatAssistants =
1544
- function(request, metadata) {
1545
- return this.client_.unaryCall(this.hostname_ +
1546
- '/ondewo.nlu.Rags/RagDeleteChatAssistants',
1547
- request,
1548
- metadata || {},
1549
- methodDescriptor_Rags_RagDeleteChatAssistants);
1550
- };
1551
-
1552
-
1553
- /**
1554
- * @const
1555
- * @type {!grpc.web.MethodDescriptor<
1556
- * !proto.ondewo.nlu.RagListChatAssistantsRequest,
1557
- * !proto.ondewo.nlu.RagChatAssistantList>}
1558
- */
1559
- const methodDescriptor_Rags_RagListChatAssistants = new grpc.web.MethodDescriptor(
1560
- '/ondewo.nlu.Rags/RagListChatAssistants',
1561
- grpc.web.MethodType.UNARY,
1562
- proto.ondewo.nlu.RagListChatAssistantsRequest,
1563
- proto.ondewo.nlu.RagChatAssistantList,
1564
- /**
1565
- * @param {!proto.ondewo.nlu.RagListChatAssistantsRequest} request
1566
- * @return {!Uint8Array}
1567
- */
1568
- function(request) {
1569
- return request.serializeBinary();
1570
- },
1571
- proto.ondewo.nlu.RagChatAssistantList.deserializeBinary
1572
- );
1573
-
1574
-
1575
- /**
1576
- * @param {!proto.ondewo.nlu.RagListChatAssistantsRequest} request The
1577
- * request proto
1578
- * @param {?Object<string, string>} metadata User defined
1579
- * call metadata
1580
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagChatAssistantList)}
1581
- * callback The callback function(error, response)
1582
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatAssistantList>|undefined}
1583
- * The XHR Node Readable Stream
1584
- */
1585
- proto.ondewo.nlu.RagsClient.prototype.ragListChatAssistants =
1586
- function(request, metadata, callback) {
1587
- return this.client_.rpcCall(this.hostname_ +
1588
- '/ondewo.nlu.Rags/RagListChatAssistants',
1589
- request,
1590
- metadata || {},
1591
- methodDescriptor_Rags_RagListChatAssistants,
1592
- callback);
1593
- };
1594
-
1595
-
1596
- /**
1597
- * @param {!proto.ondewo.nlu.RagListChatAssistantsRequest} request The
1598
- * request proto
1599
- * @param {?Object<string, string>=} metadata User defined
1600
- * call metadata
1601
- * @return {!Promise<!proto.ondewo.nlu.RagChatAssistantList>}
1602
- * Promise that resolves to the response
1603
- */
1604
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragListChatAssistants =
1605
- function(request, metadata) {
1606
- return this.client_.unaryCall(this.hostname_ +
1607
- '/ondewo.nlu.Rags/RagListChatAssistants',
1608
- request,
1609
- metadata || {},
1610
- methodDescriptor_Rags_RagListChatAssistants);
1611
- };
1612
-
1613
-
1614
- /**
1615
- * @const
1616
- * @type {!grpc.web.MethodDescriptor<
1617
- * !proto.ondewo.nlu.RagCreateAgentRequest,
1618
- * !proto.google.protobuf.Empty>}
1619
- */
1620
- const methodDescriptor_Rags_RagCreateAgent = new grpc.web.MethodDescriptor(
1621
- '/ondewo.nlu.Rags/RagCreateAgent',
1622
- grpc.web.MethodType.UNARY,
1623
- proto.ondewo.nlu.RagCreateAgentRequest,
1624
- google_protobuf_empty_pb.Empty,
1625
- /**
1626
- * @param {!proto.ondewo.nlu.RagCreateAgentRequest} request
1627
- * @return {!Uint8Array}
1628
- */
1629
- function(request) {
1630
- return request.serializeBinary();
1631
- },
1632
- google_protobuf_empty_pb.Empty.deserializeBinary
1633
- );
1634
-
1635
-
1636
- /**
1637
- * @param {!proto.ondewo.nlu.RagCreateAgentRequest} request The
1638
- * request proto
1639
- * @param {?Object<string, string>} metadata User defined
1640
- * call metadata
1641
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1642
- * callback The callback function(error, response)
1643
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1644
- * The XHR Node Readable Stream
1645
- */
1646
- proto.ondewo.nlu.RagsClient.prototype.ragCreateAgent =
1647
- function(request, metadata, callback) {
1648
- return this.client_.rpcCall(this.hostname_ +
1649
- '/ondewo.nlu.Rags/RagCreateAgent',
1650
- request,
1651
- metadata || {},
1652
- methodDescriptor_Rags_RagCreateAgent,
1653
- callback);
1654
- };
1655
-
1656
-
1657
- /**
1658
- * @param {!proto.ondewo.nlu.RagCreateAgentRequest} request The
1659
- * request proto
1660
- * @param {?Object<string, string>=} metadata User defined
1661
- * call metadata
1662
- * @return {!Promise<!proto.google.protobuf.Empty>}
1663
- * Promise that resolves to the response
1664
- */
1665
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragCreateAgent =
1666
- function(request, metadata) {
1667
- return this.client_.unaryCall(this.hostname_ +
1668
- '/ondewo.nlu.Rags/RagCreateAgent',
1669
- request,
1670
- metadata || {},
1671
- methodDescriptor_Rags_RagCreateAgent);
1672
- };
1673
-
1674
-
1675
- /**
1676
- * @const
1677
- * @type {!grpc.web.MethodDescriptor<
1678
- * !proto.ondewo.nlu.RagUpdateAgentRequest,
1679
- * !proto.google.protobuf.Empty>}
1680
- */
1681
- const methodDescriptor_Rags_RagUpdateAgent = new grpc.web.MethodDescriptor(
1682
- '/ondewo.nlu.Rags/RagUpdateAgent',
1683
- grpc.web.MethodType.UNARY,
1684
- proto.ondewo.nlu.RagUpdateAgentRequest,
1685
- google_protobuf_empty_pb.Empty,
1686
- /**
1687
- * @param {!proto.ondewo.nlu.RagUpdateAgentRequest} request
1688
- * @return {!Uint8Array}
1689
- */
1690
- function(request) {
1691
- return request.serializeBinary();
1692
- },
1693
- google_protobuf_empty_pb.Empty.deserializeBinary
1694
- );
1695
-
1696
-
1697
- /**
1698
- * @param {!proto.ondewo.nlu.RagUpdateAgentRequest} request The
1699
- * request proto
1700
- * @param {?Object<string, string>} metadata User defined
1701
- * call metadata
1702
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1703
- * callback The callback function(error, response)
1704
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1705
- * The XHR Node Readable Stream
1706
- */
1707
- proto.ondewo.nlu.RagsClient.prototype.ragUpdateAgent =
1708
- function(request, metadata, callback) {
1709
- return this.client_.rpcCall(this.hostname_ +
1710
- '/ondewo.nlu.Rags/RagUpdateAgent',
1711
- request,
1712
- metadata || {},
1713
- methodDescriptor_Rags_RagUpdateAgent,
1714
- callback);
1715
- };
1716
-
1717
-
1718
- /**
1719
- * @param {!proto.ondewo.nlu.RagUpdateAgentRequest} request The
1720
- * request proto
1721
- * @param {?Object<string, string>=} metadata User defined
1722
- * call metadata
1723
- * @return {!Promise<!proto.google.protobuf.Empty>}
1724
- * Promise that resolves to the response
1725
- */
1726
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragUpdateAgent =
1727
- function(request, metadata) {
1728
- return this.client_.unaryCall(this.hostname_ +
1729
- '/ondewo.nlu.Rags/RagUpdateAgent',
1730
- request,
1731
- metadata || {},
1732
- methodDescriptor_Rags_RagUpdateAgent);
1733
- };
1734
-
1735
-
1736
- /**
1737
- * @const
1738
- * @type {!grpc.web.MethodDescriptor<
1739
- * !proto.ondewo.nlu.RagDeleteAgentRequest,
1740
- * !proto.google.protobuf.Empty>}
1741
- */
1742
- const methodDescriptor_Rags_RagDeleteAgent = new grpc.web.MethodDescriptor(
1743
- '/ondewo.nlu.Rags/RagDeleteAgent',
1744
- grpc.web.MethodType.UNARY,
1745
- proto.ondewo.nlu.RagDeleteAgentRequest,
1746
- google_protobuf_empty_pb.Empty,
1747
- /**
1748
- * @param {!proto.ondewo.nlu.RagDeleteAgentRequest} request
1749
- * @return {!Uint8Array}
1750
- */
1751
- function(request) {
1752
- return request.serializeBinary();
1753
- },
1754
- google_protobuf_empty_pb.Empty.deserializeBinary
1755
- );
1756
-
1757
-
1758
- /**
1759
- * @param {!proto.ondewo.nlu.RagDeleteAgentRequest} request The
1760
- * request proto
1761
- * @param {?Object<string, string>} metadata User defined
1762
- * call metadata
1763
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1764
- * callback The callback function(error, response)
1765
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1766
- * The XHR Node Readable Stream
1767
- */
1768
- proto.ondewo.nlu.RagsClient.prototype.ragDeleteAgent =
1769
- function(request, metadata, callback) {
1770
- return this.client_.rpcCall(this.hostname_ +
1771
- '/ondewo.nlu.Rags/RagDeleteAgent',
1772
- request,
1773
- metadata || {},
1774
- methodDescriptor_Rags_RagDeleteAgent,
1775
- callback);
1776
- };
1777
-
1778
-
1779
- /**
1780
- * @param {!proto.ondewo.nlu.RagDeleteAgentRequest} request The
1781
- * request proto
1782
- * @param {?Object<string, string>=} metadata User defined
1783
- * call metadata
1784
- * @return {!Promise<!proto.google.protobuf.Empty>}
1785
- * Promise that resolves to the response
1786
- */
1787
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragDeleteAgent =
1788
- function(request, metadata) {
1789
- return this.client_.unaryCall(this.hostname_ +
1790
- '/ondewo.nlu.Rags/RagDeleteAgent',
1791
- request,
1792
- metadata || {},
1793
- methodDescriptor_Rags_RagDeleteAgent);
1794
- };
1795
-
1796
-
1797
- /**
1798
- * @const
1799
- * @type {!grpc.web.MethodDescriptor<
1800
- * !proto.ondewo.nlu.RagListAgentsRequest,
1801
- * !proto.ondewo.nlu.RagAgentList>}
1802
- */
1803
- const methodDescriptor_Rags_RagListAgents = new grpc.web.MethodDescriptor(
1804
- '/ondewo.nlu.Rags/RagListAgents',
1805
- grpc.web.MethodType.UNARY,
1806
- proto.ondewo.nlu.RagListAgentsRequest,
1807
- proto.ondewo.nlu.RagAgentList,
1808
- /**
1809
- * @param {!proto.ondewo.nlu.RagListAgentsRequest} request
1810
- * @return {!Uint8Array}
1811
- */
1812
- function(request) {
1813
- return request.serializeBinary();
1814
- },
1815
- proto.ondewo.nlu.RagAgentList.deserializeBinary
1816
- );
1817
-
1818
-
1819
- /**
1820
- * @param {!proto.ondewo.nlu.RagListAgentsRequest} request The
1821
- * request proto
1822
- * @param {?Object<string, string>} metadata User defined
1823
- * call metadata
1824
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagAgentList)}
1825
- * callback The callback function(error, response)
1826
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAgentList>|undefined}
1827
- * The XHR Node Readable Stream
1828
- */
1829
- proto.ondewo.nlu.RagsClient.prototype.ragListAgents =
1830
- function(request, metadata, callback) {
1831
- return this.client_.rpcCall(this.hostname_ +
1832
- '/ondewo.nlu.Rags/RagListAgents',
1833
- request,
1834
- metadata || {},
1835
- methodDescriptor_Rags_RagListAgents,
1836
- callback);
1837
- };
1838
-
1839
-
1840
- /**
1841
- * @param {!proto.ondewo.nlu.RagListAgentsRequest} request The
1842
- * request proto
1843
- * @param {?Object<string, string>=} metadata User defined
1844
- * call metadata
1845
- * @return {!Promise<!proto.ondewo.nlu.RagAgentList>}
1846
- * Promise that resolves to the response
1847
- */
1848
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragListAgents =
1849
- function(request, metadata) {
1850
- return this.client_.unaryCall(this.hostname_ +
1851
- '/ondewo.nlu.Rags/RagListAgents',
1852
- request,
1853
- metadata || {},
1854
- methodDescriptor_Rags_RagListAgents);
1855
- };
1856
-
1857
-
1858
- /**
1859
- * @const
1860
- * @type {!grpc.web.MethodDescriptor<
1861
- * !proto.ondewo.nlu.RagCreateChatSessionRequest,
1862
- * !proto.ondewo.nlu.RagChatSession>}
1863
- */
1864
- const methodDescriptor_Rags_RagCreateChatSession = new grpc.web.MethodDescriptor(
1865
- '/ondewo.nlu.Rags/RagCreateChatSession',
1866
- grpc.web.MethodType.UNARY,
1867
- proto.ondewo.nlu.RagCreateChatSessionRequest,
1868
- proto.ondewo.nlu.RagChatSession,
1869
- /**
1870
- * @param {!proto.ondewo.nlu.RagCreateChatSessionRequest} request
1871
- * @return {!Uint8Array}
1872
- */
1873
- function(request) {
1874
- return request.serializeBinary();
1875
- },
1876
- proto.ondewo.nlu.RagChatSession.deserializeBinary
1877
- );
1878
-
1879
-
1880
- /**
1881
- * @param {!proto.ondewo.nlu.RagCreateChatSessionRequest} request The
1882
- * request proto
1883
- * @param {?Object<string, string>} metadata User defined
1884
- * call metadata
1885
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagChatSession)}
1886
- * callback The callback function(error, response)
1887
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatSession>|undefined}
1888
- * The XHR Node Readable Stream
1889
- */
1890
- proto.ondewo.nlu.RagsClient.prototype.ragCreateChatSession =
1891
- function(request, metadata, callback) {
1892
- return this.client_.rpcCall(this.hostname_ +
1893
- '/ondewo.nlu.Rags/RagCreateChatSession',
1894
- request,
1895
- metadata || {},
1896
- methodDescriptor_Rags_RagCreateChatSession,
1897
- callback);
1898
- };
1899
-
1900
-
1901
- /**
1902
- * @param {!proto.ondewo.nlu.RagCreateChatSessionRequest} request The
1903
- * request proto
1904
- * @param {?Object<string, string>=} metadata User defined
1905
- * call metadata
1906
- * @return {!Promise<!proto.ondewo.nlu.RagChatSession>}
1907
- * Promise that resolves to the response
1908
- */
1909
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragCreateChatSession =
1910
- function(request, metadata) {
1911
- return this.client_.unaryCall(this.hostname_ +
1912
- '/ondewo.nlu.Rags/RagCreateChatSession',
1913
- request,
1914
- metadata || {},
1915
- methodDescriptor_Rags_RagCreateChatSession);
1916
- };
1917
-
1918
-
1919
- /**
1920
- * @const
1921
- * @type {!grpc.web.MethodDescriptor<
1922
- * !proto.ondewo.nlu.RagUpdateChatSessionRequest,
1923
- * !proto.google.protobuf.Empty>}
1924
- */
1925
- const methodDescriptor_Rags_RagUpdateChatSession = new grpc.web.MethodDescriptor(
1926
- '/ondewo.nlu.Rags/RagUpdateChatSession',
1927
- grpc.web.MethodType.UNARY,
1928
- proto.ondewo.nlu.RagUpdateChatSessionRequest,
1929
- google_protobuf_empty_pb.Empty,
1930
- /**
1931
- * @param {!proto.ondewo.nlu.RagUpdateChatSessionRequest} request
1932
- * @return {!Uint8Array}
1933
- */
1934
- function(request) {
1935
- return request.serializeBinary();
1936
- },
1937
- google_protobuf_empty_pb.Empty.deserializeBinary
1938
- );
1939
-
1940
-
1941
- /**
1942
- * @param {!proto.ondewo.nlu.RagUpdateChatSessionRequest} request The
1943
- * request proto
1944
- * @param {?Object<string, string>} metadata User defined
1945
- * call metadata
1946
- * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
1947
- * callback The callback function(error, response)
1948
- * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
1949
- * The XHR Node Readable Stream
1950
- */
1951
- proto.ondewo.nlu.RagsClient.prototype.ragUpdateChatSession =
1952
- function(request, metadata, callback) {
1953
- return this.client_.rpcCall(this.hostname_ +
1954
- '/ondewo.nlu.Rags/RagUpdateChatSession',
1955
- request,
1956
- metadata || {},
1957
- methodDescriptor_Rags_RagUpdateChatSession,
1958
- callback);
1959
- };
1960
-
1961
-
1962
- /**
1963
- * @param {!proto.ondewo.nlu.RagUpdateChatSessionRequest} request The
1964
- * request proto
1965
- * @param {?Object<string, string>=} metadata User defined
1966
- * call metadata
1967
- * @return {!Promise<!proto.google.protobuf.Empty>}
1968
- * Promise that resolves to the response
1969
- */
1970
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragUpdateChatSession =
1971
- function(request, metadata) {
1972
- return this.client_.unaryCall(this.hostname_ +
1973
- '/ondewo.nlu.Rags/RagUpdateChatSession',
1974
- request,
1975
- metadata || {},
1976
- methodDescriptor_Rags_RagUpdateChatSession);
1977
- };
1978
-
1979
-
1980
- /**
1981
- * @const
1982
- * @type {!grpc.web.MethodDescriptor<
1983
- * !proto.ondewo.nlu.RagListChatSessionsRequest,
1984
- * !proto.ondewo.nlu.RagChatSessionList>}
1985
- */
1986
- const methodDescriptor_Rags_RagListChatSessions = new grpc.web.MethodDescriptor(
1987
- '/ondewo.nlu.Rags/RagListChatSessions',
1988
- grpc.web.MethodType.UNARY,
1989
- proto.ondewo.nlu.RagListChatSessionsRequest,
1990
- proto.ondewo.nlu.RagChatSessionList,
1991
- /**
1992
- * @param {!proto.ondewo.nlu.RagListChatSessionsRequest} request
1993
- * @return {!Uint8Array}
1994
- */
1995
- function(request) {
1996
- return request.serializeBinary();
1997
- },
1998
- proto.ondewo.nlu.RagChatSessionList.deserializeBinary
1999
- );
2000
-
2001
-
2002
- /**
2003
- * @param {!proto.ondewo.nlu.RagListChatSessionsRequest} request The
2004
- * request proto
2005
- * @param {?Object<string, string>} metadata User defined
2006
- * call metadata
2007
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagChatSessionList)}
2008
- * callback The callback function(error, response)
2009
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatSessionList>|undefined}
2010
- * The XHR Node Readable Stream
2011
- */
2012
- proto.ondewo.nlu.RagsClient.prototype.ragListChatSessions =
2013
- function(request, metadata, callback) {
2014
- return this.client_.rpcCall(this.hostname_ +
2015
- '/ondewo.nlu.Rags/RagListChatSessions',
2016
- request,
2017
- metadata || {},
2018
- methodDescriptor_Rags_RagListChatSessions,
2019
- callback);
2020
- };
2021
-
2022
-
2023
- /**
2024
- * @param {!proto.ondewo.nlu.RagListChatSessionsRequest} request The
2025
- * request proto
2026
- * @param {?Object<string, string>=} metadata User defined
2027
- * call metadata
2028
- * @return {!Promise<!proto.ondewo.nlu.RagChatSessionList>}
2029
- * Promise that resolves to the response
2030
- */
2031
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragListChatSessions =
2032
- function(request, metadata) {
2033
- return this.client_.unaryCall(this.hostname_ +
2034
- '/ondewo.nlu.Rags/RagListChatSessions',
2035
- request,
2036
- metadata || {},
2037
- methodDescriptor_Rags_RagListChatSessions);
2038
- };
2039
-
2040
-
2041
- /**
2042
- * @const
2043
- * @type {!grpc.web.MethodDescriptor<
2044
- * !proto.ondewo.nlu.RagDeleteChatSessionsRequest,
2045
- * !proto.ondewo.nlu.RagPartialSuccess>}
2046
- */
2047
- const methodDescriptor_Rags_RagDeleteChatSessions = new grpc.web.MethodDescriptor(
2048
- '/ondewo.nlu.Rags/RagDeleteChatSessions',
2049
- grpc.web.MethodType.UNARY,
2050
- proto.ondewo.nlu.RagDeleteChatSessionsRequest,
2051
- proto.ondewo.nlu.RagPartialSuccess,
2052
- /**
2053
- * @param {!proto.ondewo.nlu.RagDeleteChatSessionsRequest} request
2054
- * @return {!Uint8Array}
2055
- */
2056
- function(request) {
2057
- return request.serializeBinary();
2058
- },
2059
- proto.ondewo.nlu.RagPartialSuccess.deserializeBinary
2060
- );
2061
-
2062
-
2063
- /**
2064
- * @param {!proto.ondewo.nlu.RagDeleteChatSessionsRequest} request The
2065
- * request proto
2066
- * @param {?Object<string, string>} metadata User defined
2067
- * call metadata
2068
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagPartialSuccess)}
2069
- * callback The callback function(error, response)
2070
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagPartialSuccess>|undefined}
2071
- * The XHR Node Readable Stream
2072
- */
2073
- proto.ondewo.nlu.RagsClient.prototype.ragDeleteChatSessions =
2074
- function(request, metadata, callback) {
2075
- return this.client_.rpcCall(this.hostname_ +
2076
- '/ondewo.nlu.Rags/RagDeleteChatSessions',
2077
- request,
2078
- metadata || {},
2079
- methodDescriptor_Rags_RagDeleteChatSessions,
2080
- callback);
2081
- };
2082
-
2083
-
2084
- /**
2085
- * @param {!proto.ondewo.nlu.RagDeleteChatSessionsRequest} request The
2086
- * request proto
2087
- * @param {?Object<string, string>=} metadata User defined
2088
- * call metadata
2089
- * @return {!Promise<!proto.ondewo.nlu.RagPartialSuccess>}
2090
- * Promise that resolves to the response
2091
- */
2092
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragDeleteChatSessions =
2093
- function(request, metadata) {
2094
- return this.client_.unaryCall(this.hostname_ +
2095
- '/ondewo.nlu.Rags/RagDeleteChatSessions',
2096
- request,
2097
- metadata || {},
2098
- methodDescriptor_Rags_RagDeleteChatSessions);
2099
- };
2100
-
2101
-
2102
- /**
2103
- * @const
2104
- * @type {!grpc.web.MethodDescriptor<
2105
- * !proto.ondewo.nlu.RagListAgentSessionsRequest,
2106
- * !proto.ondewo.nlu.RagAgentSessionList>}
2107
- */
2108
- const methodDescriptor_Rags_RagListAgentSessions = new grpc.web.MethodDescriptor(
2109
- '/ondewo.nlu.Rags/RagListAgentSessions',
2110
- grpc.web.MethodType.UNARY,
2111
- proto.ondewo.nlu.RagListAgentSessionsRequest,
2112
- proto.ondewo.nlu.RagAgentSessionList,
2113
- /**
2114
- * @param {!proto.ondewo.nlu.RagListAgentSessionsRequest} request
2115
- * @return {!Uint8Array}
2116
- */
2117
- function(request) {
2118
- return request.serializeBinary();
2119
- },
2120
- proto.ondewo.nlu.RagAgentSessionList.deserializeBinary
2121
- );
2122
-
2123
-
2124
- /**
2125
- * @param {!proto.ondewo.nlu.RagListAgentSessionsRequest} request The
2126
- * request proto
2127
- * @param {?Object<string, string>} metadata User defined
2128
- * call metadata
2129
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagAgentSessionList)}
2130
- * callback The callback function(error, response)
2131
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAgentSessionList>|undefined}
2132
- * The XHR Node Readable Stream
2133
- */
2134
- proto.ondewo.nlu.RagsClient.prototype.ragListAgentSessions =
2135
- function(request, metadata, callback) {
2136
- return this.client_.rpcCall(this.hostname_ +
2137
- '/ondewo.nlu.Rags/RagListAgentSessions',
2138
- request,
2139
- metadata || {},
2140
- methodDescriptor_Rags_RagListAgentSessions,
2141
- callback);
2142
- };
2143
-
2144
-
2145
- /**
2146
- * @param {!proto.ondewo.nlu.RagListAgentSessionsRequest} request The
2147
- * request proto
2148
- * @param {?Object<string, string>=} metadata User defined
2149
- * call metadata
2150
- * @return {!Promise<!proto.ondewo.nlu.RagAgentSessionList>}
2151
- * Promise that resolves to the response
2152
- */
2153
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragListAgentSessions =
2154
- function(request, metadata) {
2155
- return this.client_.unaryCall(this.hostname_ +
2156
- '/ondewo.nlu.Rags/RagListAgentSessions',
2157
- request,
2158
- metadata || {},
2159
- methodDescriptor_Rags_RagListAgentSessions);
2160
- };
2161
-
2162
-
2163
- /**
2164
- * @const
2165
- * @type {!grpc.web.MethodDescriptor<
2166
- * !proto.ondewo.nlu.RagDeleteAgentSessionsRequest,
2167
- * !proto.ondewo.nlu.RagPartialSuccess>}
2168
- */
2169
- const methodDescriptor_Rags_RagDeleteAgentSessions = new grpc.web.MethodDescriptor(
2170
- '/ondewo.nlu.Rags/RagDeleteAgentSessions',
2171
- grpc.web.MethodType.UNARY,
2172
- proto.ondewo.nlu.RagDeleteAgentSessionsRequest,
2173
- proto.ondewo.nlu.RagPartialSuccess,
2174
- /**
2175
- * @param {!proto.ondewo.nlu.RagDeleteAgentSessionsRequest} request
2176
- * @return {!Uint8Array}
2177
- */
2178
- function(request) {
2179
- return request.serializeBinary();
2180
- },
2181
- proto.ondewo.nlu.RagPartialSuccess.deserializeBinary
2182
- );
2183
-
2184
-
2185
- /**
2186
- * @param {!proto.ondewo.nlu.RagDeleteAgentSessionsRequest} request The
2187
- * request proto
2188
- * @param {?Object<string, string>} metadata User defined
2189
- * call metadata
2190
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagPartialSuccess)}
2191
- * callback The callback function(error, response)
2192
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagPartialSuccess>|undefined}
2193
- * The XHR Node Readable Stream
2194
- */
2195
- proto.ondewo.nlu.RagsClient.prototype.ragDeleteAgentSessions =
2196
- function(request, metadata, callback) {
2197
- return this.client_.rpcCall(this.hostname_ +
2198
- '/ondewo.nlu.Rags/RagDeleteAgentSessions',
2199
- request,
2200
- metadata || {},
2201
- methodDescriptor_Rags_RagDeleteAgentSessions,
2202
- callback);
2203
- };
2204
-
2205
-
2206
- /**
2207
- * @param {!proto.ondewo.nlu.RagDeleteAgentSessionsRequest} request The
2208
- * request proto
2209
- * @param {?Object<string, string>=} metadata User defined
2210
- * call metadata
2211
- * @return {!Promise<!proto.ondewo.nlu.RagPartialSuccess>}
2212
- * Promise that resolves to the response
2213
- */
2214
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragDeleteAgentSessions =
2215
- function(request, metadata) {
2216
- return this.client_.unaryCall(this.hostname_ +
2217
- '/ondewo.nlu.Rags/RagDeleteAgentSessions',
2218
- request,
2219
- metadata || {},
2220
- methodDescriptor_Rags_RagDeleteAgentSessions);
2221
- };
2222
-
2223
-
2224
- /**
2225
- * @const
2226
- * @type {!grpc.web.MethodDescriptor<
2227
- * !proto.ondewo.nlu.RagChatCompletionRequest,
2228
- * !proto.ondewo.nlu.RagChatCompletionResponse>}
2229
- */
2230
- const methodDescriptor_Rags_RagChatCompletion = new grpc.web.MethodDescriptor(
2231
- '/ondewo.nlu.Rags/RagChatCompletion',
2232
- grpc.web.MethodType.SERVER_STREAMING,
2233
- proto.ondewo.nlu.RagChatCompletionRequest,
2234
- proto.ondewo.nlu.RagChatCompletionResponse,
2235
- /**
2236
- * @param {!proto.ondewo.nlu.RagChatCompletionRequest} request
2237
- * @return {!Uint8Array}
2238
- */
2239
- function(request) {
2240
- return request.serializeBinary();
2241
- },
2242
- proto.ondewo.nlu.RagChatCompletionResponse.deserializeBinary
2243
- );
2244
-
2245
-
2246
- /**
2247
- * @param {!proto.ondewo.nlu.RagChatCompletionRequest} request The request proto
2248
- * @param {?Object<string, string>=} metadata User defined
2249
- * call metadata
2250
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatCompletionResponse>}
2251
- * The XHR Node Readable Stream
2252
- */
2253
- proto.ondewo.nlu.RagsClient.prototype.ragChatCompletion =
2254
- function(request, metadata) {
2255
- return this.client_.serverStreaming(this.hostname_ +
2256
- '/ondewo.nlu.Rags/RagChatCompletion',
2257
- request,
2258
- metadata || {},
2259
- methodDescriptor_Rags_RagChatCompletion);
2260
- };
2261
-
2262
-
2263
- /**
2264
- * @param {!proto.ondewo.nlu.RagChatCompletionRequest} request The request proto
2265
- * @param {?Object<string, string>=} metadata User defined
2266
- * call metadata
2267
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagChatCompletionResponse>}
2268
- * The XHR Node Readable Stream
2269
- */
2270
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragChatCompletion =
2271
- function(request, metadata) {
2272
- return this.client_.serverStreaming(this.hostname_ +
2273
- '/ondewo.nlu.Rags/RagChatCompletion',
2274
- request,
2275
- metadata || {},
2276
- methodDescriptor_Rags_RagChatCompletion);
2277
- };
2278
-
2279
-
2280
- /**
2281
- * @const
2282
- * @type {!grpc.web.MethodDescriptor<
2283
- * !proto.ondewo.nlu.RagAgentCompletionRequest,
2284
- * !proto.ondewo.nlu.RagAgentCompletionResponse>}
2285
- */
2286
- const methodDescriptor_Rags_RagAgentCompletion = new grpc.web.MethodDescriptor(
2287
- '/ondewo.nlu.Rags/RagAgentCompletion',
2288
- grpc.web.MethodType.SERVER_STREAMING,
2289
- proto.ondewo.nlu.RagAgentCompletionRequest,
2290
- proto.ondewo.nlu.RagAgentCompletionResponse,
2291
- /**
2292
- * @param {!proto.ondewo.nlu.RagAgentCompletionRequest} request
2293
- * @return {!Uint8Array}
2294
- */
2295
- function(request) {
2296
- return request.serializeBinary();
2297
- },
2298
- proto.ondewo.nlu.RagAgentCompletionResponse.deserializeBinary
2299
- );
2300
-
2301
-
2302
- /**
2303
- * @param {!proto.ondewo.nlu.RagAgentCompletionRequest} request The request proto
2304
- * @param {?Object<string, string>=} metadata User defined
2305
- * call metadata
2306
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAgentCompletionResponse>}
2307
- * The XHR Node Readable Stream
2308
- */
2309
- proto.ondewo.nlu.RagsClient.prototype.ragAgentCompletion =
2310
- function(request, metadata) {
2311
- return this.client_.serverStreaming(this.hostname_ +
2312
- '/ondewo.nlu.Rags/RagAgentCompletion',
2313
- request,
2314
- metadata || {},
2315
- methodDescriptor_Rags_RagAgentCompletion);
2316
- };
2317
-
2318
-
2319
- /**
2320
- * @param {!proto.ondewo.nlu.RagAgentCompletionRequest} request The request proto
2321
- * @param {?Object<string, string>=} metadata User defined
2322
- * call metadata
2323
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAgentCompletionResponse>}
2324
- * The XHR Node Readable Stream
2325
- */
2326
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragAgentCompletion =
2327
- function(request, metadata) {
2328
- return this.client_.serverStreaming(this.hostname_ +
2329
- '/ondewo.nlu.Rags/RagAgentCompletion',
2330
- request,
2331
- metadata || {},
2332
- methodDescriptor_Rags_RagAgentCompletion);
2333
- };
2334
-
2335
-
2336
- /**
2337
- * @const
2338
- * @type {!grpc.web.MethodDescriptor<
2339
- * !proto.ondewo.nlu.RagAskRequest,
2340
- * !proto.ondewo.nlu.RagAskResponse>}
2341
- */
2342
- const methodDescriptor_Rags_RagAsk = new grpc.web.MethodDescriptor(
2343
- '/ondewo.nlu.Rags/RagAsk',
2344
- grpc.web.MethodType.SERVER_STREAMING,
2345
- proto.ondewo.nlu.RagAskRequest,
2346
- proto.ondewo.nlu.RagAskResponse,
2347
- /**
2348
- * @param {!proto.ondewo.nlu.RagAskRequest} request
2349
- * @return {!Uint8Array}
2350
- */
2351
- function(request) {
2352
- return request.serializeBinary();
2353
- },
2354
- proto.ondewo.nlu.RagAskResponse.deserializeBinary
2355
- );
2356
-
2357
-
2358
- /**
2359
- * @param {!proto.ondewo.nlu.RagAskRequest} request The request proto
2360
- * @param {?Object<string, string>=} metadata User defined
2361
- * call metadata
2362
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAskResponse>}
2363
- * The XHR Node Readable Stream
2364
- */
2365
- proto.ondewo.nlu.RagsClient.prototype.ragAsk =
2366
- function(request, metadata) {
2367
- return this.client_.serverStreaming(this.hostname_ +
2368
- '/ondewo.nlu.Rags/RagAsk',
2369
- request,
2370
- metadata || {},
2371
- methodDescriptor_Rags_RagAsk);
2372
- };
2373
-
2374
-
2375
- /**
2376
- * @param {!proto.ondewo.nlu.RagAskRequest} request The request proto
2377
- * @param {?Object<string, string>=} metadata User defined
2378
- * call metadata
2379
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagAskResponse>}
2380
- * The XHR Node Readable Stream
2381
- */
2382
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragAsk =
2383
- function(request, metadata) {
2384
- return this.client_.serverStreaming(this.hostname_ +
2385
- '/ondewo.nlu.Rags/RagAsk',
2386
- request,
2387
- metadata || {},
2388
- methodDescriptor_Rags_RagAsk);
2389
- };
2390
-
2391
-
2392
- /**
2393
- * @const
2394
- * @type {!grpc.web.MethodDescriptor<
2395
- * !proto.ondewo.nlu.RagRelatedQuestionsRequest,
2396
- * !proto.ondewo.nlu.RagRelatedQuestionsResponse>}
2397
- */
2398
- const methodDescriptor_Rags_RagRelatedQuestions = new grpc.web.MethodDescriptor(
2399
- '/ondewo.nlu.Rags/RagRelatedQuestions',
2400
- grpc.web.MethodType.UNARY,
2401
- proto.ondewo.nlu.RagRelatedQuestionsRequest,
2402
- proto.ondewo.nlu.RagRelatedQuestionsResponse,
2403
- /**
2404
- * @param {!proto.ondewo.nlu.RagRelatedQuestionsRequest} request
2405
- * @return {!Uint8Array}
2406
- */
2407
- function(request) {
2408
- return request.serializeBinary();
2409
- },
2410
- proto.ondewo.nlu.RagRelatedQuestionsResponse.deserializeBinary
2411
- );
2412
-
2413
-
2414
- /**
2415
- * @param {!proto.ondewo.nlu.RagRelatedQuestionsRequest} request The
2416
- * request proto
2417
- * @param {?Object<string, string>} metadata User defined
2418
- * call metadata
2419
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.RagRelatedQuestionsResponse)}
2420
- * callback The callback function(error, response)
2421
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.RagRelatedQuestionsResponse>|undefined}
2422
- * The XHR Node Readable Stream
2423
- */
2424
- proto.ondewo.nlu.RagsClient.prototype.ragRelatedQuestions =
2425
- function(request, metadata, callback) {
2426
- return this.client_.rpcCall(this.hostname_ +
2427
- '/ondewo.nlu.Rags/RagRelatedQuestions',
2428
- request,
2429
- metadata || {},
2430
- methodDescriptor_Rags_RagRelatedQuestions,
2431
- callback);
2432
- };
2433
-
2434
-
2435
- /**
2436
- * @param {!proto.ondewo.nlu.RagRelatedQuestionsRequest} request The
2437
- * request proto
2438
- * @param {?Object<string, string>=} metadata User defined
2439
- * call metadata
2440
- * @return {!Promise<!proto.ondewo.nlu.RagRelatedQuestionsResponse>}
2441
- * Promise that resolves to the response
2442
- */
2443
- proto.ondewo.nlu.RagsPromiseClient.prototype.ragRelatedQuestions =
2444
- function(request, metadata) {
2445
- return this.client_.unaryCall(this.hostname_ +
2446
- '/ondewo.nlu.Rags/RagRelatedQuestions',
2447
- request,
2448
- metadata || {},
2449
- methodDescriptor_Rags_RagRelatedQuestions);
2450
- };
2451
-
2452
-
2453
758
  /**
2454
759
  * @const
2455
760
  * @type {!grpc.web.MethodDescriptor<