@ondewo/nlu-client-typescript 6.11.0 → 6.13.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.
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +12 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +61 -0
- package/api/ondewo/nlu/agent_pb.d.ts +130 -0
- package/api/ondewo/nlu/agent_pb.js +1089 -2
- package/api/ondewo/nlu/llm_evaluation_grpc_web_pb.d.ts +612 -0
- package/api/ondewo/nlu/llm_evaluation_grpc_web_pb.js +3111 -0
- package/api/ondewo/nlu/llm_evaluation_pb.d.ts +3932 -14
- package/api/ondewo/nlu/llm_evaluation_pb.js +36020 -4208
- package/api/ondewo/nlu/session_pb.d.ts +267 -0
- package/api/ondewo/nlu/session_pb.js +2173 -4
- package/package.json +1 -1
- package/public-api.d.ts +31 -31
- package/public-api.js +28 -28
|
@@ -130,6 +130,13 @@ goog.exportSymbol('proto.ondewo.nlu.LlmLatencyStats', null, global);
|
|
|
130
130
|
goog.exportSymbol('proto.ondewo.nlu.LlmModelUsage', null, global);
|
|
131
131
|
goog.exportSymbol('proto.ondewo.nlu.LlmProviderUsage', null, global);
|
|
132
132
|
goog.exportSymbol('proto.ondewo.nlu.LlmReasoningEffortStat', null, global);
|
|
133
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmRetrievalMetadata', null, global);
|
|
134
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmRetrievedChunk', null, global);
|
|
135
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmSafetyAssessment', null, global);
|
|
136
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmSafetyCategoryStat', null, global);
|
|
137
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmSafetyFinding', null, global);
|
|
138
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmSafetyLocation', null, global);
|
|
139
|
+
goog.exportSymbol('proto.ondewo.nlu.LlmSafetyStats', null, global);
|
|
133
140
|
goog.exportSymbol('proto.ondewo.nlu.LlmTelemetry', null, global);
|
|
134
141
|
goog.exportSymbol('proto.ondewo.nlu.LlmTelemetryReport', null, global);
|
|
135
142
|
goog.exportSymbol('proto.ondewo.nlu.LlmThinkingDeltaEvent', null, global);
|
|
@@ -145,6 +152,7 @@ goog.exportSymbol('proto.ondewo.nlu.QueryInput.InputCase', null, global);
|
|
|
145
152
|
goog.exportSymbol('proto.ondewo.nlu.QueryParameters', null, global);
|
|
146
153
|
goog.exportSymbol('proto.ondewo.nlu.QueryResult', null, global);
|
|
147
154
|
goog.exportSymbol('proto.ondewo.nlu.ReasoningEffort', null, global);
|
|
155
|
+
goog.exportSymbol('proto.ondewo.nlu.ReferencedChunk', null, global);
|
|
148
156
|
goog.exportSymbol('proto.ondewo.nlu.ResourceView', null, global);
|
|
149
157
|
goog.exportSymbol('proto.ondewo.nlu.S2tTranscription', null, global);
|
|
150
158
|
goog.exportSymbol('proto.ondewo.nlu.Session', null, global);
|
|
@@ -355,6 +363,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
355
363
|
*/
|
|
356
364
|
proto.ondewo.nlu.LlmTelemetry.displayName = 'proto.ondewo.nlu.LlmTelemetry';
|
|
357
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Generated by JsPbCodeGenerator.
|
|
368
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
369
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
370
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
371
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
372
|
+
* valid.
|
|
373
|
+
* @extends {jspb.Message}
|
|
374
|
+
* @constructor
|
|
375
|
+
*/
|
|
376
|
+
proto.ondewo.nlu.LlmSafetyFinding = function(opt_data) {
|
|
377
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
378
|
+
};
|
|
379
|
+
goog.inherits(proto.ondewo.nlu.LlmSafetyFinding, jspb.Message);
|
|
380
|
+
if (goog.DEBUG && !COMPILED) {
|
|
381
|
+
/**
|
|
382
|
+
* @public
|
|
383
|
+
* @override
|
|
384
|
+
*/
|
|
385
|
+
proto.ondewo.nlu.LlmSafetyFinding.displayName = 'proto.ondewo.nlu.LlmSafetyFinding';
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Generated by JsPbCodeGenerator.
|
|
389
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
390
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
391
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
392
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
393
|
+
* valid.
|
|
394
|
+
* @extends {jspb.Message}
|
|
395
|
+
* @constructor
|
|
396
|
+
*/
|
|
397
|
+
proto.ondewo.nlu.LlmSafetyAssessment = function(opt_data) {
|
|
398
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmSafetyAssessment.repeatedFields_, null);
|
|
399
|
+
};
|
|
400
|
+
goog.inherits(proto.ondewo.nlu.LlmSafetyAssessment, jspb.Message);
|
|
401
|
+
if (goog.DEBUG && !COMPILED) {
|
|
402
|
+
/**
|
|
403
|
+
* @public
|
|
404
|
+
* @override
|
|
405
|
+
*/
|
|
406
|
+
proto.ondewo.nlu.LlmSafetyAssessment.displayName = 'proto.ondewo.nlu.LlmSafetyAssessment';
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Generated by JsPbCodeGenerator.
|
|
410
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
411
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
412
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
413
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
414
|
+
* valid.
|
|
415
|
+
* @extends {jspb.Message}
|
|
416
|
+
* @constructor
|
|
417
|
+
*/
|
|
418
|
+
proto.ondewo.nlu.LlmRetrievedChunk = function(opt_data) {
|
|
419
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
420
|
+
};
|
|
421
|
+
goog.inherits(proto.ondewo.nlu.LlmRetrievedChunk, jspb.Message);
|
|
422
|
+
if (goog.DEBUG && !COMPILED) {
|
|
423
|
+
/**
|
|
424
|
+
* @public
|
|
425
|
+
* @override
|
|
426
|
+
*/
|
|
427
|
+
proto.ondewo.nlu.LlmRetrievedChunk.displayName = 'proto.ondewo.nlu.LlmRetrievedChunk';
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Generated by JsPbCodeGenerator.
|
|
431
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
432
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
433
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
434
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
435
|
+
* valid.
|
|
436
|
+
* @extends {jspb.Message}
|
|
437
|
+
* @constructor
|
|
438
|
+
*/
|
|
439
|
+
proto.ondewo.nlu.LlmRetrievalMetadata = function(opt_data) {
|
|
440
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmRetrievalMetadata.repeatedFields_, null);
|
|
441
|
+
};
|
|
442
|
+
goog.inherits(proto.ondewo.nlu.LlmRetrievalMetadata, jspb.Message);
|
|
443
|
+
if (goog.DEBUG && !COMPILED) {
|
|
444
|
+
/**
|
|
445
|
+
* @public
|
|
446
|
+
* @override
|
|
447
|
+
*/
|
|
448
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.displayName = 'proto.ondewo.nlu.LlmRetrievalMetadata';
|
|
449
|
+
}
|
|
358
450
|
/**
|
|
359
451
|
* Generated by JsPbCodeGenerator.
|
|
360
452
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -607,6 +699,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
607
699
|
*/
|
|
608
700
|
proto.ondewo.nlu.LlmTelemetryReport.displayName = 'proto.ondewo.nlu.LlmTelemetryReport';
|
|
609
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* Generated by JsPbCodeGenerator.
|
|
704
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
705
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
706
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
707
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
708
|
+
* valid.
|
|
709
|
+
* @extends {jspb.Message}
|
|
710
|
+
* @constructor
|
|
711
|
+
*/
|
|
712
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat = function(opt_data) {
|
|
713
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
714
|
+
};
|
|
715
|
+
goog.inherits(proto.ondewo.nlu.LlmSafetyCategoryStat, jspb.Message);
|
|
716
|
+
if (goog.DEBUG && !COMPILED) {
|
|
717
|
+
/**
|
|
718
|
+
* @public
|
|
719
|
+
* @override
|
|
720
|
+
*/
|
|
721
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.displayName = 'proto.ondewo.nlu.LlmSafetyCategoryStat';
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Generated by JsPbCodeGenerator.
|
|
725
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
726
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
727
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
728
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
729
|
+
* valid.
|
|
730
|
+
* @extends {jspb.Message}
|
|
731
|
+
* @constructor
|
|
732
|
+
*/
|
|
733
|
+
proto.ondewo.nlu.LlmSafetyStats = function(opt_data) {
|
|
734
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmSafetyStats.repeatedFields_, null);
|
|
735
|
+
};
|
|
736
|
+
goog.inherits(proto.ondewo.nlu.LlmSafetyStats, jspb.Message);
|
|
737
|
+
if (goog.DEBUG && !COMPILED) {
|
|
738
|
+
/**
|
|
739
|
+
* @public
|
|
740
|
+
* @override
|
|
741
|
+
*/
|
|
742
|
+
proto.ondewo.nlu.LlmSafetyStats.displayName = 'proto.ondewo.nlu.LlmSafetyStats';
|
|
743
|
+
}
|
|
610
744
|
/**
|
|
611
745
|
* Generated by JsPbCodeGenerator.
|
|
612
746
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -733,6 +867,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
733
867
|
*/
|
|
734
868
|
proto.ondewo.nlu.LlmTokenUsageUpdateEvent.displayName = 'proto.ondewo.nlu.LlmTokenUsageUpdateEvent';
|
|
735
869
|
}
|
|
870
|
+
/**
|
|
871
|
+
* Generated by JsPbCodeGenerator.
|
|
872
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
873
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
874
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
875
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
876
|
+
* valid.
|
|
877
|
+
* @extends {jspb.Message}
|
|
878
|
+
* @constructor
|
|
879
|
+
*/
|
|
880
|
+
proto.ondewo.nlu.ReferencedChunk = function(opt_data) {
|
|
881
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
882
|
+
};
|
|
883
|
+
goog.inherits(proto.ondewo.nlu.ReferencedChunk, jspb.Message);
|
|
884
|
+
if (goog.DEBUG && !COMPILED) {
|
|
885
|
+
/**
|
|
886
|
+
* @public
|
|
887
|
+
* @override
|
|
888
|
+
*/
|
|
889
|
+
proto.ondewo.nlu.ReferencedChunk.displayName = 'proto.ondewo.nlu.ReferencedChunk';
|
|
890
|
+
}
|
|
736
891
|
/**
|
|
737
892
|
* Generated by JsPbCodeGenerator.
|
|
738
893
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5527,7 +5682,9 @@ strictResponseValidation: (f = jspb.Message.getBooleanField(msg, 56)) == null ?
|
|
|
5527
5682
|
extraHeaders: (f = msg.getExtraHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
5528
5683
|
extraQuery: (f = msg.getExtraQuery()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
5529
5684
|
extraBody: (f = msg.getExtraBody()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
5530
|
-
ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 60, 0)
|
|
5685
|
+
ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 60, 0),
|
|
5686
|
+
llmSafetyAssessment: (f = msg.getLlmSafetyAssessment()) && proto.ondewo.nlu.LlmSafetyAssessment.toObject(includeInstance, f),
|
|
5687
|
+
llmRetrievalMetadata: (f = msg.getLlmRetrievalMetadata()) && proto.ondewo.nlu.LlmRetrievalMetadata.toObject(includeInstance, f)
|
|
5531
5688
|
};
|
|
5532
5689
|
|
|
5533
5690
|
if (includeInstance) {
|
|
@@ -5819,6 +5976,16 @@ proto.ondewo.nlu.LlmTelemetry.deserializeBinaryFromReader = function(msg, reader
|
|
|
5819
5976
|
var value = /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (reader.readEnum());
|
|
5820
5977
|
msg.setCcaiServiceProvider(value);
|
|
5821
5978
|
break;
|
|
5979
|
+
case 61:
|
|
5980
|
+
var value = new proto.ondewo.nlu.LlmSafetyAssessment;
|
|
5981
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader);
|
|
5982
|
+
msg.setLlmSafetyAssessment(value);
|
|
5983
|
+
break;
|
|
5984
|
+
case 62:
|
|
5985
|
+
var value = new proto.ondewo.nlu.LlmRetrievalMetadata;
|
|
5986
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader);
|
|
5987
|
+
msg.setLlmRetrievalMetadata(value);
|
|
5988
|
+
break;
|
|
5822
5989
|
default:
|
|
5823
5990
|
reader.skipField();
|
|
5824
5991
|
break;
|
|
@@ -6283,6 +6450,22 @@ proto.ondewo.nlu.LlmTelemetry.serializeBinaryToWriter = function(message, writer
|
|
|
6283
6450
|
f
|
|
6284
6451
|
);
|
|
6285
6452
|
}
|
|
6453
|
+
f = message.getLlmSafetyAssessment();
|
|
6454
|
+
if (f != null) {
|
|
6455
|
+
writer.writeMessage(
|
|
6456
|
+
61,
|
|
6457
|
+
f,
|
|
6458
|
+
proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter
|
|
6459
|
+
);
|
|
6460
|
+
}
|
|
6461
|
+
f = message.getLlmRetrievalMetadata();
|
|
6462
|
+
if (f != null) {
|
|
6463
|
+
writer.writeMessage(
|
|
6464
|
+
62,
|
|
6465
|
+
f,
|
|
6466
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter
|
|
6467
|
+
);
|
|
6468
|
+
}
|
|
6286
6469
|
};
|
|
6287
6470
|
|
|
6288
6471
|
|
|
@@ -7799,6 +7982,1069 @@ proto.ondewo.nlu.LlmTelemetry.prototype.setCcaiServiceProvider = function(value)
|
|
|
7799
7982
|
};
|
|
7800
7983
|
|
|
7801
7984
|
|
|
7985
|
+
/**
|
|
7986
|
+
* optional LlmSafetyAssessment llm_safety_assessment = 61;
|
|
7987
|
+
* @return {?proto.ondewo.nlu.LlmSafetyAssessment}
|
|
7988
|
+
*/
|
|
7989
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.getLlmSafetyAssessment = function() {
|
|
7990
|
+
return /** @type{?proto.ondewo.nlu.LlmSafetyAssessment} */ (
|
|
7991
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmSafetyAssessment, 61));
|
|
7992
|
+
};
|
|
7993
|
+
|
|
7994
|
+
|
|
7995
|
+
/**
|
|
7996
|
+
* @param {?proto.ondewo.nlu.LlmSafetyAssessment|undefined} value
|
|
7997
|
+
* @return {!proto.ondewo.nlu.LlmTelemetry} returns this
|
|
7998
|
+
*/
|
|
7999
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.setLlmSafetyAssessment = function(value) {
|
|
8000
|
+
return jspb.Message.setWrapperField(this, 61, value);
|
|
8001
|
+
};
|
|
8002
|
+
|
|
8003
|
+
|
|
8004
|
+
/**
|
|
8005
|
+
* Clears the message field making it undefined.
|
|
8006
|
+
* @return {!proto.ondewo.nlu.LlmTelemetry} returns this
|
|
8007
|
+
*/
|
|
8008
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.clearLlmSafetyAssessment = function() {
|
|
8009
|
+
return this.setLlmSafetyAssessment(undefined);
|
|
8010
|
+
};
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
/**
|
|
8014
|
+
* Returns whether this field is set.
|
|
8015
|
+
* @return {boolean}
|
|
8016
|
+
*/
|
|
8017
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.hasLlmSafetyAssessment = function() {
|
|
8018
|
+
return jspb.Message.getField(this, 61) != null;
|
|
8019
|
+
};
|
|
8020
|
+
|
|
8021
|
+
|
|
8022
|
+
/**
|
|
8023
|
+
* optional LlmRetrievalMetadata llm_retrieval_metadata = 62;
|
|
8024
|
+
* @return {?proto.ondewo.nlu.LlmRetrievalMetadata}
|
|
8025
|
+
*/
|
|
8026
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.getLlmRetrievalMetadata = function() {
|
|
8027
|
+
return /** @type{?proto.ondewo.nlu.LlmRetrievalMetadata} */ (
|
|
8028
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmRetrievalMetadata, 62));
|
|
8029
|
+
};
|
|
8030
|
+
|
|
8031
|
+
|
|
8032
|
+
/**
|
|
8033
|
+
* @param {?proto.ondewo.nlu.LlmRetrievalMetadata|undefined} value
|
|
8034
|
+
* @return {!proto.ondewo.nlu.LlmTelemetry} returns this
|
|
8035
|
+
*/
|
|
8036
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.setLlmRetrievalMetadata = function(value) {
|
|
8037
|
+
return jspb.Message.setWrapperField(this, 62, value);
|
|
8038
|
+
};
|
|
8039
|
+
|
|
8040
|
+
|
|
8041
|
+
/**
|
|
8042
|
+
* Clears the message field making it undefined.
|
|
8043
|
+
* @return {!proto.ondewo.nlu.LlmTelemetry} returns this
|
|
8044
|
+
*/
|
|
8045
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.clearLlmRetrievalMetadata = function() {
|
|
8046
|
+
return this.setLlmRetrievalMetadata(undefined);
|
|
8047
|
+
};
|
|
8048
|
+
|
|
8049
|
+
|
|
8050
|
+
/**
|
|
8051
|
+
* Returns whether this field is set.
|
|
8052
|
+
* @return {boolean}
|
|
8053
|
+
*/
|
|
8054
|
+
proto.ondewo.nlu.LlmTelemetry.prototype.hasLlmRetrievalMetadata = function() {
|
|
8055
|
+
return jspb.Message.getField(this, 62) != null;
|
|
8056
|
+
};
|
|
8057
|
+
|
|
8058
|
+
|
|
8059
|
+
|
|
8060
|
+
|
|
8061
|
+
|
|
8062
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8063
|
+
/**
|
|
8064
|
+
* Creates an object representation of this proto.
|
|
8065
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8066
|
+
* Optional fields that are not set will be set to undefined.
|
|
8067
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8068
|
+
* For the list of reserved names please see:
|
|
8069
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8070
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8071
|
+
* JSPB instance for transitional soy proto support:
|
|
8072
|
+
* http://goto/soy-param-migration
|
|
8073
|
+
* @return {!Object}
|
|
8074
|
+
*/
|
|
8075
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.toObject = function(opt_includeInstance) {
|
|
8076
|
+
return proto.ondewo.nlu.LlmSafetyFinding.toObject(opt_includeInstance, this);
|
|
8077
|
+
};
|
|
8078
|
+
|
|
8079
|
+
|
|
8080
|
+
/**
|
|
8081
|
+
* Static version of the {@see toObject} method.
|
|
8082
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8083
|
+
* the JSPB instance for transitional soy proto support:
|
|
8084
|
+
* http://goto/soy-param-migration
|
|
8085
|
+
* @param {!proto.ondewo.nlu.LlmSafetyFinding} msg The msg instance to transform.
|
|
8086
|
+
* @return {!Object}
|
|
8087
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8088
|
+
*/
|
|
8089
|
+
proto.ondewo.nlu.LlmSafetyFinding.toObject = function(includeInstance, msg) {
|
|
8090
|
+
var f, obj = {
|
|
8091
|
+
category: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8092
|
+
severity: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8093
|
+
matchedPattern: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8094
|
+
location: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
8095
|
+
};
|
|
8096
|
+
|
|
8097
|
+
if (includeInstance) {
|
|
8098
|
+
obj.$jspbMessageInstance = msg;
|
|
8099
|
+
}
|
|
8100
|
+
return obj;
|
|
8101
|
+
};
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8104
|
+
|
|
8105
|
+
/**
|
|
8106
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8107
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8108
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding}
|
|
8109
|
+
*/
|
|
8110
|
+
proto.ondewo.nlu.LlmSafetyFinding.deserializeBinary = function(bytes) {
|
|
8111
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8112
|
+
var msg = new proto.ondewo.nlu.LlmSafetyFinding;
|
|
8113
|
+
return proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader(msg, reader);
|
|
8114
|
+
};
|
|
8115
|
+
|
|
8116
|
+
|
|
8117
|
+
/**
|
|
8118
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8119
|
+
* given reader into the given message object.
|
|
8120
|
+
* @param {!proto.ondewo.nlu.LlmSafetyFinding} msg The message object to deserialize into.
|
|
8121
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8122
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding}
|
|
8123
|
+
*/
|
|
8124
|
+
proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader = function(msg, reader) {
|
|
8125
|
+
while (reader.nextField()) {
|
|
8126
|
+
if (reader.isEndGroup()) {
|
|
8127
|
+
break;
|
|
8128
|
+
}
|
|
8129
|
+
var field = reader.getFieldNumber();
|
|
8130
|
+
switch (field) {
|
|
8131
|
+
case 1:
|
|
8132
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8133
|
+
msg.setCategory(value);
|
|
8134
|
+
break;
|
|
8135
|
+
case 2:
|
|
8136
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8137
|
+
msg.setSeverity(value);
|
|
8138
|
+
break;
|
|
8139
|
+
case 3:
|
|
8140
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8141
|
+
msg.setMatchedPattern(value);
|
|
8142
|
+
break;
|
|
8143
|
+
case 4:
|
|
8144
|
+
var value = /** @type {!proto.ondewo.nlu.LlmSafetyLocation} */ (reader.readEnum());
|
|
8145
|
+
msg.setLocation(value);
|
|
8146
|
+
break;
|
|
8147
|
+
default:
|
|
8148
|
+
reader.skipField();
|
|
8149
|
+
break;
|
|
8150
|
+
}
|
|
8151
|
+
}
|
|
8152
|
+
return msg;
|
|
8153
|
+
};
|
|
8154
|
+
|
|
8155
|
+
|
|
8156
|
+
/**
|
|
8157
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8158
|
+
* @return {!Uint8Array}
|
|
8159
|
+
*/
|
|
8160
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.serializeBinary = function() {
|
|
8161
|
+
var writer = new jspb.BinaryWriter();
|
|
8162
|
+
proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter(this, writer);
|
|
8163
|
+
return writer.getResultBuffer();
|
|
8164
|
+
};
|
|
8165
|
+
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8169
|
+
* format), writing to the given BinaryWriter.
|
|
8170
|
+
* @param {!proto.ondewo.nlu.LlmSafetyFinding} message
|
|
8171
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8172
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8173
|
+
*/
|
|
8174
|
+
proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter = function(message, writer) {
|
|
8175
|
+
var f = undefined;
|
|
8176
|
+
f = message.getCategory();
|
|
8177
|
+
if (f.length > 0) {
|
|
8178
|
+
writer.writeString(
|
|
8179
|
+
1,
|
|
8180
|
+
f
|
|
8181
|
+
);
|
|
8182
|
+
}
|
|
8183
|
+
f = message.getSeverity();
|
|
8184
|
+
if (f.length > 0) {
|
|
8185
|
+
writer.writeString(
|
|
8186
|
+
2,
|
|
8187
|
+
f
|
|
8188
|
+
);
|
|
8189
|
+
}
|
|
8190
|
+
f = message.getMatchedPattern();
|
|
8191
|
+
if (f.length > 0) {
|
|
8192
|
+
writer.writeString(
|
|
8193
|
+
3,
|
|
8194
|
+
f
|
|
8195
|
+
);
|
|
8196
|
+
}
|
|
8197
|
+
f = message.getLocation();
|
|
8198
|
+
if (f !== 0.0) {
|
|
8199
|
+
writer.writeEnum(
|
|
8200
|
+
4,
|
|
8201
|
+
f
|
|
8202
|
+
);
|
|
8203
|
+
}
|
|
8204
|
+
};
|
|
8205
|
+
|
|
8206
|
+
|
|
8207
|
+
/**
|
|
8208
|
+
* optional string category = 1;
|
|
8209
|
+
* @return {string}
|
|
8210
|
+
*/
|
|
8211
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.getCategory = function() {
|
|
8212
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8213
|
+
};
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
/**
|
|
8217
|
+
* @param {string} value
|
|
8218
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
|
|
8219
|
+
*/
|
|
8220
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.setCategory = function(value) {
|
|
8221
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8222
|
+
};
|
|
8223
|
+
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* optional string severity = 2;
|
|
8227
|
+
* @return {string}
|
|
8228
|
+
*/
|
|
8229
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.getSeverity = function() {
|
|
8230
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8231
|
+
};
|
|
8232
|
+
|
|
8233
|
+
|
|
8234
|
+
/**
|
|
8235
|
+
* @param {string} value
|
|
8236
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
|
|
8237
|
+
*/
|
|
8238
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.setSeverity = function(value) {
|
|
8239
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8240
|
+
};
|
|
8241
|
+
|
|
8242
|
+
|
|
8243
|
+
/**
|
|
8244
|
+
* optional string matched_pattern = 3;
|
|
8245
|
+
* @return {string}
|
|
8246
|
+
*/
|
|
8247
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.getMatchedPattern = function() {
|
|
8248
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8249
|
+
};
|
|
8250
|
+
|
|
8251
|
+
|
|
8252
|
+
/**
|
|
8253
|
+
* @param {string} value
|
|
8254
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
|
|
8255
|
+
*/
|
|
8256
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.setMatchedPattern = function(value) {
|
|
8257
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8258
|
+
};
|
|
8259
|
+
|
|
8260
|
+
|
|
8261
|
+
/**
|
|
8262
|
+
* optional LlmSafetyLocation location = 4;
|
|
8263
|
+
* @return {!proto.ondewo.nlu.LlmSafetyLocation}
|
|
8264
|
+
*/
|
|
8265
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.getLocation = function() {
|
|
8266
|
+
return /** @type {!proto.ondewo.nlu.LlmSafetyLocation} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
8267
|
+
};
|
|
8268
|
+
|
|
8269
|
+
|
|
8270
|
+
/**
|
|
8271
|
+
* @param {!proto.ondewo.nlu.LlmSafetyLocation} value
|
|
8272
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
|
|
8273
|
+
*/
|
|
8274
|
+
proto.ondewo.nlu.LlmSafetyFinding.prototype.setLocation = function(value) {
|
|
8275
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
8276
|
+
};
|
|
8277
|
+
|
|
8278
|
+
|
|
8279
|
+
|
|
8280
|
+
/**
|
|
8281
|
+
* List of repeated fields within this message type.
|
|
8282
|
+
* @private {!Array<number>}
|
|
8283
|
+
* @const
|
|
8284
|
+
*/
|
|
8285
|
+
proto.ondewo.nlu.LlmSafetyAssessment.repeatedFields_ = [1,6];
|
|
8286
|
+
|
|
8287
|
+
|
|
8288
|
+
|
|
8289
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8290
|
+
/**
|
|
8291
|
+
* Creates an object representation of this proto.
|
|
8292
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8293
|
+
* Optional fields that are not set will be set to undefined.
|
|
8294
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8295
|
+
* For the list of reserved names please see:
|
|
8296
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8297
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8298
|
+
* JSPB instance for transitional soy proto support:
|
|
8299
|
+
* http://goto/soy-param-migration
|
|
8300
|
+
* @return {!Object}
|
|
8301
|
+
*/
|
|
8302
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.toObject = function(opt_includeInstance) {
|
|
8303
|
+
return proto.ondewo.nlu.LlmSafetyAssessment.toObject(opt_includeInstance, this);
|
|
8304
|
+
};
|
|
8305
|
+
|
|
8306
|
+
|
|
8307
|
+
/**
|
|
8308
|
+
* Static version of the {@see toObject} method.
|
|
8309
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8310
|
+
* the JSPB instance for transitional soy proto support:
|
|
8311
|
+
* http://goto/soy-param-migration
|
|
8312
|
+
* @param {!proto.ondewo.nlu.LlmSafetyAssessment} msg The msg instance to transform.
|
|
8313
|
+
* @return {!Object}
|
|
8314
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8315
|
+
*/
|
|
8316
|
+
proto.ondewo.nlu.LlmSafetyAssessment.toObject = function(includeInstance, msg) {
|
|
8317
|
+
var f, obj = {
|
|
8318
|
+
flaggedCategoriesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
8319
|
+
hasPii: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
8320
|
+
hasInjectionAttempt: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
8321
|
+
hasJailbreakAttempt: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
8322
|
+
safetyScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
8323
|
+
findingsList: jspb.Message.toObjectList(msg.getFindingsList(),
|
|
8324
|
+
proto.ondewo.nlu.LlmSafetyFinding.toObject, includeInstance)
|
|
8325
|
+
};
|
|
8326
|
+
|
|
8327
|
+
if (includeInstance) {
|
|
8328
|
+
obj.$jspbMessageInstance = msg;
|
|
8329
|
+
}
|
|
8330
|
+
return obj;
|
|
8331
|
+
};
|
|
8332
|
+
}
|
|
8333
|
+
|
|
8334
|
+
|
|
8335
|
+
/**
|
|
8336
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8337
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8338
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment}
|
|
8339
|
+
*/
|
|
8340
|
+
proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinary = function(bytes) {
|
|
8341
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8342
|
+
var msg = new proto.ondewo.nlu.LlmSafetyAssessment;
|
|
8343
|
+
return proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader(msg, reader);
|
|
8344
|
+
};
|
|
8345
|
+
|
|
8346
|
+
|
|
8347
|
+
/**
|
|
8348
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8349
|
+
* given reader into the given message object.
|
|
8350
|
+
* @param {!proto.ondewo.nlu.LlmSafetyAssessment} msg The message object to deserialize into.
|
|
8351
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8352
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment}
|
|
8353
|
+
*/
|
|
8354
|
+
proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader = function(msg, reader) {
|
|
8355
|
+
while (reader.nextField()) {
|
|
8356
|
+
if (reader.isEndGroup()) {
|
|
8357
|
+
break;
|
|
8358
|
+
}
|
|
8359
|
+
var field = reader.getFieldNumber();
|
|
8360
|
+
switch (field) {
|
|
8361
|
+
case 1:
|
|
8362
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8363
|
+
msg.addFlaggedCategories(value);
|
|
8364
|
+
break;
|
|
8365
|
+
case 2:
|
|
8366
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8367
|
+
msg.setHasPii(value);
|
|
8368
|
+
break;
|
|
8369
|
+
case 3:
|
|
8370
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8371
|
+
msg.setHasInjectionAttempt(value);
|
|
8372
|
+
break;
|
|
8373
|
+
case 4:
|
|
8374
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8375
|
+
msg.setHasJailbreakAttempt(value);
|
|
8376
|
+
break;
|
|
8377
|
+
case 5:
|
|
8378
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
8379
|
+
msg.setSafetyScore(value);
|
|
8380
|
+
break;
|
|
8381
|
+
case 6:
|
|
8382
|
+
var value = new proto.ondewo.nlu.LlmSafetyFinding;
|
|
8383
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader);
|
|
8384
|
+
msg.addFindings(value);
|
|
8385
|
+
break;
|
|
8386
|
+
default:
|
|
8387
|
+
reader.skipField();
|
|
8388
|
+
break;
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
return msg;
|
|
8392
|
+
};
|
|
8393
|
+
|
|
8394
|
+
|
|
8395
|
+
/**
|
|
8396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8397
|
+
* @return {!Uint8Array}
|
|
8398
|
+
*/
|
|
8399
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.serializeBinary = function() {
|
|
8400
|
+
var writer = new jspb.BinaryWriter();
|
|
8401
|
+
proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter(this, writer);
|
|
8402
|
+
return writer.getResultBuffer();
|
|
8403
|
+
};
|
|
8404
|
+
|
|
8405
|
+
|
|
8406
|
+
/**
|
|
8407
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8408
|
+
* format), writing to the given BinaryWriter.
|
|
8409
|
+
* @param {!proto.ondewo.nlu.LlmSafetyAssessment} message
|
|
8410
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8412
|
+
*/
|
|
8413
|
+
proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter = function(message, writer) {
|
|
8414
|
+
var f = undefined;
|
|
8415
|
+
f = message.getFlaggedCategoriesList();
|
|
8416
|
+
if (f.length > 0) {
|
|
8417
|
+
writer.writeRepeatedString(
|
|
8418
|
+
1,
|
|
8419
|
+
f
|
|
8420
|
+
);
|
|
8421
|
+
}
|
|
8422
|
+
f = message.getHasPii();
|
|
8423
|
+
if (f) {
|
|
8424
|
+
writer.writeBool(
|
|
8425
|
+
2,
|
|
8426
|
+
f
|
|
8427
|
+
);
|
|
8428
|
+
}
|
|
8429
|
+
f = message.getHasInjectionAttempt();
|
|
8430
|
+
if (f) {
|
|
8431
|
+
writer.writeBool(
|
|
8432
|
+
3,
|
|
8433
|
+
f
|
|
8434
|
+
);
|
|
8435
|
+
}
|
|
8436
|
+
f = message.getHasJailbreakAttempt();
|
|
8437
|
+
if (f) {
|
|
8438
|
+
writer.writeBool(
|
|
8439
|
+
4,
|
|
8440
|
+
f
|
|
8441
|
+
);
|
|
8442
|
+
}
|
|
8443
|
+
f = message.getSafetyScore();
|
|
8444
|
+
if (f !== 0.0) {
|
|
8445
|
+
writer.writeDouble(
|
|
8446
|
+
5,
|
|
8447
|
+
f
|
|
8448
|
+
);
|
|
8449
|
+
}
|
|
8450
|
+
f = message.getFindingsList();
|
|
8451
|
+
if (f.length > 0) {
|
|
8452
|
+
writer.writeRepeatedMessage(
|
|
8453
|
+
6,
|
|
8454
|
+
f,
|
|
8455
|
+
proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter
|
|
8456
|
+
);
|
|
8457
|
+
}
|
|
8458
|
+
};
|
|
8459
|
+
|
|
8460
|
+
|
|
8461
|
+
/**
|
|
8462
|
+
* repeated string flagged_categories = 1;
|
|
8463
|
+
* @return {!Array<string>}
|
|
8464
|
+
*/
|
|
8465
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getFlaggedCategoriesList = function() {
|
|
8466
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
8467
|
+
};
|
|
8468
|
+
|
|
8469
|
+
|
|
8470
|
+
/**
|
|
8471
|
+
* @param {!Array<string>} value
|
|
8472
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8473
|
+
*/
|
|
8474
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setFlaggedCategoriesList = function(value) {
|
|
8475
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
8476
|
+
};
|
|
8477
|
+
|
|
8478
|
+
|
|
8479
|
+
/**
|
|
8480
|
+
* @param {string} value
|
|
8481
|
+
* @param {number=} opt_index
|
|
8482
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8483
|
+
*/
|
|
8484
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.addFlaggedCategories = function(value, opt_index) {
|
|
8485
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8486
|
+
};
|
|
8487
|
+
|
|
8488
|
+
|
|
8489
|
+
/**
|
|
8490
|
+
* Clears the list making it empty but non-null.
|
|
8491
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8492
|
+
*/
|
|
8493
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.clearFlaggedCategoriesList = function() {
|
|
8494
|
+
return this.setFlaggedCategoriesList([]);
|
|
8495
|
+
};
|
|
8496
|
+
|
|
8497
|
+
|
|
8498
|
+
/**
|
|
8499
|
+
* optional bool has_pii = 2;
|
|
8500
|
+
* @return {boolean}
|
|
8501
|
+
*/
|
|
8502
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasPii = function() {
|
|
8503
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
8504
|
+
};
|
|
8505
|
+
|
|
8506
|
+
|
|
8507
|
+
/**
|
|
8508
|
+
* @param {boolean} value
|
|
8509
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8510
|
+
*/
|
|
8511
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasPii = function(value) {
|
|
8512
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
8513
|
+
};
|
|
8514
|
+
|
|
8515
|
+
|
|
8516
|
+
/**
|
|
8517
|
+
* optional bool has_injection_attempt = 3;
|
|
8518
|
+
* @return {boolean}
|
|
8519
|
+
*/
|
|
8520
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasInjectionAttempt = function() {
|
|
8521
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
8522
|
+
};
|
|
8523
|
+
|
|
8524
|
+
|
|
8525
|
+
/**
|
|
8526
|
+
* @param {boolean} value
|
|
8527
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8528
|
+
*/
|
|
8529
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasInjectionAttempt = function(value) {
|
|
8530
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
8531
|
+
};
|
|
8532
|
+
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* optional bool has_jailbreak_attempt = 4;
|
|
8536
|
+
* @return {boolean}
|
|
8537
|
+
*/
|
|
8538
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasJailbreakAttempt = function() {
|
|
8539
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
8540
|
+
};
|
|
8541
|
+
|
|
8542
|
+
|
|
8543
|
+
/**
|
|
8544
|
+
* @param {boolean} value
|
|
8545
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8546
|
+
*/
|
|
8547
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasJailbreakAttempt = function(value) {
|
|
8548
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
8549
|
+
};
|
|
8550
|
+
|
|
8551
|
+
|
|
8552
|
+
/**
|
|
8553
|
+
* optional double safety_score = 5;
|
|
8554
|
+
* @return {number}
|
|
8555
|
+
*/
|
|
8556
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getSafetyScore = function() {
|
|
8557
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
8558
|
+
};
|
|
8559
|
+
|
|
8560
|
+
|
|
8561
|
+
/**
|
|
8562
|
+
* @param {number} value
|
|
8563
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8564
|
+
*/
|
|
8565
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setSafetyScore = function(value) {
|
|
8566
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
8567
|
+
};
|
|
8568
|
+
|
|
8569
|
+
|
|
8570
|
+
/**
|
|
8571
|
+
* repeated LlmSafetyFinding findings = 6;
|
|
8572
|
+
* @return {!Array<!proto.ondewo.nlu.LlmSafetyFinding>}
|
|
8573
|
+
*/
|
|
8574
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.getFindingsList = function() {
|
|
8575
|
+
return /** @type{!Array<!proto.ondewo.nlu.LlmSafetyFinding>} */ (
|
|
8576
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmSafetyFinding, 6));
|
|
8577
|
+
};
|
|
8578
|
+
|
|
8579
|
+
|
|
8580
|
+
/**
|
|
8581
|
+
* @param {!Array<!proto.ondewo.nlu.LlmSafetyFinding>} value
|
|
8582
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8583
|
+
*/
|
|
8584
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.setFindingsList = function(value) {
|
|
8585
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
8586
|
+
};
|
|
8587
|
+
|
|
8588
|
+
|
|
8589
|
+
/**
|
|
8590
|
+
* @param {!proto.ondewo.nlu.LlmSafetyFinding=} opt_value
|
|
8591
|
+
* @param {number=} opt_index
|
|
8592
|
+
* @return {!proto.ondewo.nlu.LlmSafetyFinding}
|
|
8593
|
+
*/
|
|
8594
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.addFindings = function(opt_value, opt_index) {
|
|
8595
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.ondewo.nlu.LlmSafetyFinding, opt_index);
|
|
8596
|
+
};
|
|
8597
|
+
|
|
8598
|
+
|
|
8599
|
+
/**
|
|
8600
|
+
* Clears the list making it empty but non-null.
|
|
8601
|
+
* @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
|
|
8602
|
+
*/
|
|
8603
|
+
proto.ondewo.nlu.LlmSafetyAssessment.prototype.clearFindingsList = function() {
|
|
8604
|
+
return this.setFindingsList([]);
|
|
8605
|
+
};
|
|
8606
|
+
|
|
8607
|
+
|
|
8608
|
+
|
|
8609
|
+
|
|
8610
|
+
|
|
8611
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8612
|
+
/**
|
|
8613
|
+
* Creates an object representation of this proto.
|
|
8614
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8615
|
+
* Optional fields that are not set will be set to undefined.
|
|
8616
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8617
|
+
* For the list of reserved names please see:
|
|
8618
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8619
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8620
|
+
* JSPB instance for transitional soy proto support:
|
|
8621
|
+
* http://goto/soy-param-migration
|
|
8622
|
+
* @return {!Object}
|
|
8623
|
+
*/
|
|
8624
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.toObject = function(opt_includeInstance) {
|
|
8625
|
+
return proto.ondewo.nlu.LlmRetrievedChunk.toObject(opt_includeInstance, this);
|
|
8626
|
+
};
|
|
8627
|
+
|
|
8628
|
+
|
|
8629
|
+
/**
|
|
8630
|
+
* Static version of the {@see toObject} method.
|
|
8631
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8632
|
+
* the JSPB instance for transitional soy proto support:
|
|
8633
|
+
* http://goto/soy-param-migration
|
|
8634
|
+
* @param {!proto.ondewo.nlu.LlmRetrievedChunk} msg The msg instance to transform.
|
|
8635
|
+
* @return {!Object}
|
|
8636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8637
|
+
*/
|
|
8638
|
+
proto.ondewo.nlu.LlmRetrievedChunk.toObject = function(includeInstance, msg) {
|
|
8639
|
+
var f, obj = {
|
|
8640
|
+
documentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8641
|
+
chunkId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8642
|
+
score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
8643
|
+
text: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8644
|
+
sourceUri: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
8645
|
+
rank: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
8646
|
+
};
|
|
8647
|
+
|
|
8648
|
+
if (includeInstance) {
|
|
8649
|
+
obj.$jspbMessageInstance = msg;
|
|
8650
|
+
}
|
|
8651
|
+
return obj;
|
|
8652
|
+
};
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8655
|
+
|
|
8656
|
+
/**
|
|
8657
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8658
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8659
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk}
|
|
8660
|
+
*/
|
|
8661
|
+
proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinary = function(bytes) {
|
|
8662
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8663
|
+
var msg = new proto.ondewo.nlu.LlmRetrievedChunk;
|
|
8664
|
+
return proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader(msg, reader);
|
|
8665
|
+
};
|
|
8666
|
+
|
|
8667
|
+
|
|
8668
|
+
/**
|
|
8669
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8670
|
+
* given reader into the given message object.
|
|
8671
|
+
* @param {!proto.ondewo.nlu.LlmRetrievedChunk} msg The message object to deserialize into.
|
|
8672
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8673
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk}
|
|
8674
|
+
*/
|
|
8675
|
+
proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader = function(msg, reader) {
|
|
8676
|
+
while (reader.nextField()) {
|
|
8677
|
+
if (reader.isEndGroup()) {
|
|
8678
|
+
break;
|
|
8679
|
+
}
|
|
8680
|
+
var field = reader.getFieldNumber();
|
|
8681
|
+
switch (field) {
|
|
8682
|
+
case 1:
|
|
8683
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8684
|
+
msg.setDocumentId(value);
|
|
8685
|
+
break;
|
|
8686
|
+
case 2:
|
|
8687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8688
|
+
msg.setChunkId(value);
|
|
8689
|
+
break;
|
|
8690
|
+
case 3:
|
|
8691
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
8692
|
+
msg.setScore(value);
|
|
8693
|
+
break;
|
|
8694
|
+
case 4:
|
|
8695
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8696
|
+
msg.setText(value);
|
|
8697
|
+
break;
|
|
8698
|
+
case 5:
|
|
8699
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8700
|
+
msg.setSourceUri(value);
|
|
8701
|
+
break;
|
|
8702
|
+
case 6:
|
|
8703
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8704
|
+
msg.setRank(value);
|
|
8705
|
+
break;
|
|
8706
|
+
default:
|
|
8707
|
+
reader.skipField();
|
|
8708
|
+
break;
|
|
8709
|
+
}
|
|
8710
|
+
}
|
|
8711
|
+
return msg;
|
|
8712
|
+
};
|
|
8713
|
+
|
|
8714
|
+
|
|
8715
|
+
/**
|
|
8716
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8717
|
+
* @return {!Uint8Array}
|
|
8718
|
+
*/
|
|
8719
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.serializeBinary = function() {
|
|
8720
|
+
var writer = new jspb.BinaryWriter();
|
|
8721
|
+
proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter(this, writer);
|
|
8722
|
+
return writer.getResultBuffer();
|
|
8723
|
+
};
|
|
8724
|
+
|
|
8725
|
+
|
|
8726
|
+
/**
|
|
8727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8728
|
+
* format), writing to the given BinaryWriter.
|
|
8729
|
+
* @param {!proto.ondewo.nlu.LlmRetrievedChunk} message
|
|
8730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8732
|
+
*/
|
|
8733
|
+
proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter = function(message, writer) {
|
|
8734
|
+
var f = undefined;
|
|
8735
|
+
f = message.getDocumentId();
|
|
8736
|
+
if (f.length > 0) {
|
|
8737
|
+
writer.writeString(
|
|
8738
|
+
1,
|
|
8739
|
+
f
|
|
8740
|
+
);
|
|
8741
|
+
}
|
|
8742
|
+
f = message.getChunkId();
|
|
8743
|
+
if (f.length > 0) {
|
|
8744
|
+
writer.writeString(
|
|
8745
|
+
2,
|
|
8746
|
+
f
|
|
8747
|
+
);
|
|
8748
|
+
}
|
|
8749
|
+
f = message.getScore();
|
|
8750
|
+
if (f !== 0.0) {
|
|
8751
|
+
writer.writeDouble(
|
|
8752
|
+
3,
|
|
8753
|
+
f
|
|
8754
|
+
);
|
|
8755
|
+
}
|
|
8756
|
+
f = message.getText();
|
|
8757
|
+
if (f.length > 0) {
|
|
8758
|
+
writer.writeString(
|
|
8759
|
+
4,
|
|
8760
|
+
f
|
|
8761
|
+
);
|
|
8762
|
+
}
|
|
8763
|
+
f = message.getSourceUri();
|
|
8764
|
+
if (f.length > 0) {
|
|
8765
|
+
writer.writeString(
|
|
8766
|
+
5,
|
|
8767
|
+
f
|
|
8768
|
+
);
|
|
8769
|
+
}
|
|
8770
|
+
f = message.getRank();
|
|
8771
|
+
if (f !== 0) {
|
|
8772
|
+
writer.writeInt32(
|
|
8773
|
+
6,
|
|
8774
|
+
f
|
|
8775
|
+
);
|
|
8776
|
+
}
|
|
8777
|
+
};
|
|
8778
|
+
|
|
8779
|
+
|
|
8780
|
+
/**
|
|
8781
|
+
* optional string document_id = 1;
|
|
8782
|
+
* @return {string}
|
|
8783
|
+
*/
|
|
8784
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getDocumentId = function() {
|
|
8785
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8786
|
+
};
|
|
8787
|
+
|
|
8788
|
+
|
|
8789
|
+
/**
|
|
8790
|
+
* @param {string} value
|
|
8791
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8792
|
+
*/
|
|
8793
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setDocumentId = function(value) {
|
|
8794
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8795
|
+
};
|
|
8796
|
+
|
|
8797
|
+
|
|
8798
|
+
/**
|
|
8799
|
+
* optional string chunk_id = 2;
|
|
8800
|
+
* @return {string}
|
|
8801
|
+
*/
|
|
8802
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getChunkId = function() {
|
|
8803
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8804
|
+
};
|
|
8805
|
+
|
|
8806
|
+
|
|
8807
|
+
/**
|
|
8808
|
+
* @param {string} value
|
|
8809
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8810
|
+
*/
|
|
8811
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setChunkId = function(value) {
|
|
8812
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8813
|
+
};
|
|
8814
|
+
|
|
8815
|
+
|
|
8816
|
+
/**
|
|
8817
|
+
* optional double score = 3;
|
|
8818
|
+
* @return {number}
|
|
8819
|
+
*/
|
|
8820
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getScore = function() {
|
|
8821
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
8822
|
+
};
|
|
8823
|
+
|
|
8824
|
+
|
|
8825
|
+
/**
|
|
8826
|
+
* @param {number} value
|
|
8827
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8828
|
+
*/
|
|
8829
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setScore = function(value) {
|
|
8830
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
8831
|
+
};
|
|
8832
|
+
|
|
8833
|
+
|
|
8834
|
+
/**
|
|
8835
|
+
* optional string text = 4;
|
|
8836
|
+
* @return {string}
|
|
8837
|
+
*/
|
|
8838
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getText = function() {
|
|
8839
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8840
|
+
};
|
|
8841
|
+
|
|
8842
|
+
|
|
8843
|
+
/**
|
|
8844
|
+
* @param {string} value
|
|
8845
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8846
|
+
*/
|
|
8847
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setText = function(value) {
|
|
8848
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8849
|
+
};
|
|
8850
|
+
|
|
8851
|
+
|
|
8852
|
+
/**
|
|
8853
|
+
* optional string source_uri = 5;
|
|
8854
|
+
* @return {string}
|
|
8855
|
+
*/
|
|
8856
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getSourceUri = function() {
|
|
8857
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
8858
|
+
};
|
|
8859
|
+
|
|
8860
|
+
|
|
8861
|
+
/**
|
|
8862
|
+
* @param {string} value
|
|
8863
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8864
|
+
*/
|
|
8865
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setSourceUri = function(value) {
|
|
8866
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
8867
|
+
};
|
|
8868
|
+
|
|
8869
|
+
|
|
8870
|
+
/**
|
|
8871
|
+
* optional int32 rank = 6;
|
|
8872
|
+
* @return {number}
|
|
8873
|
+
*/
|
|
8874
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.getRank = function() {
|
|
8875
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
8876
|
+
};
|
|
8877
|
+
|
|
8878
|
+
|
|
8879
|
+
/**
|
|
8880
|
+
* @param {number} value
|
|
8881
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
|
|
8882
|
+
*/
|
|
8883
|
+
proto.ondewo.nlu.LlmRetrievedChunk.prototype.setRank = function(value) {
|
|
8884
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
8885
|
+
};
|
|
8886
|
+
|
|
8887
|
+
|
|
8888
|
+
|
|
8889
|
+
/**
|
|
8890
|
+
* List of repeated fields within this message type.
|
|
8891
|
+
* @private {!Array<number>}
|
|
8892
|
+
* @const
|
|
8893
|
+
*/
|
|
8894
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.repeatedFields_ = [1];
|
|
8895
|
+
|
|
8896
|
+
|
|
8897
|
+
|
|
8898
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8899
|
+
/**
|
|
8900
|
+
* Creates an object representation of this proto.
|
|
8901
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8902
|
+
* Optional fields that are not set will be set to undefined.
|
|
8903
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8904
|
+
* For the list of reserved names please see:
|
|
8905
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8906
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8907
|
+
* JSPB instance for transitional soy proto support:
|
|
8908
|
+
* http://goto/soy-param-migration
|
|
8909
|
+
* @return {!Object}
|
|
8910
|
+
*/
|
|
8911
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
8912
|
+
return proto.ondewo.nlu.LlmRetrievalMetadata.toObject(opt_includeInstance, this);
|
|
8913
|
+
};
|
|
8914
|
+
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* Static version of the {@see toObject} method.
|
|
8918
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8919
|
+
* the JSPB instance for transitional soy proto support:
|
|
8920
|
+
* http://goto/soy-param-migration
|
|
8921
|
+
* @param {!proto.ondewo.nlu.LlmRetrievalMetadata} msg The msg instance to transform.
|
|
8922
|
+
* @return {!Object}
|
|
8923
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8924
|
+
*/
|
|
8925
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.toObject = function(includeInstance, msg) {
|
|
8926
|
+
var f, obj = {
|
|
8927
|
+
chunksList: jspb.Message.toObjectList(msg.getChunksList(),
|
|
8928
|
+
proto.ondewo.nlu.LlmRetrievedChunk.toObject, includeInstance)
|
|
8929
|
+
};
|
|
8930
|
+
|
|
8931
|
+
if (includeInstance) {
|
|
8932
|
+
obj.$jspbMessageInstance = msg;
|
|
8933
|
+
}
|
|
8934
|
+
return obj;
|
|
8935
|
+
};
|
|
8936
|
+
}
|
|
8937
|
+
|
|
8938
|
+
|
|
8939
|
+
/**
|
|
8940
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8941
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8942
|
+
* @return {!proto.ondewo.nlu.LlmRetrievalMetadata}
|
|
8943
|
+
*/
|
|
8944
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinary = function(bytes) {
|
|
8945
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8946
|
+
var msg = new proto.ondewo.nlu.LlmRetrievalMetadata;
|
|
8947
|
+
return proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader(msg, reader);
|
|
8948
|
+
};
|
|
8949
|
+
|
|
8950
|
+
|
|
8951
|
+
/**
|
|
8952
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8953
|
+
* given reader into the given message object.
|
|
8954
|
+
* @param {!proto.ondewo.nlu.LlmRetrievalMetadata} msg The message object to deserialize into.
|
|
8955
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8956
|
+
* @return {!proto.ondewo.nlu.LlmRetrievalMetadata}
|
|
8957
|
+
*/
|
|
8958
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
8959
|
+
while (reader.nextField()) {
|
|
8960
|
+
if (reader.isEndGroup()) {
|
|
8961
|
+
break;
|
|
8962
|
+
}
|
|
8963
|
+
var field = reader.getFieldNumber();
|
|
8964
|
+
switch (field) {
|
|
8965
|
+
case 1:
|
|
8966
|
+
var value = new proto.ondewo.nlu.LlmRetrievedChunk;
|
|
8967
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader);
|
|
8968
|
+
msg.addChunks(value);
|
|
8969
|
+
break;
|
|
8970
|
+
default:
|
|
8971
|
+
reader.skipField();
|
|
8972
|
+
break;
|
|
8973
|
+
}
|
|
8974
|
+
}
|
|
8975
|
+
return msg;
|
|
8976
|
+
};
|
|
8977
|
+
|
|
8978
|
+
|
|
8979
|
+
/**
|
|
8980
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8981
|
+
* @return {!Uint8Array}
|
|
8982
|
+
*/
|
|
8983
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.serializeBinary = function() {
|
|
8984
|
+
var writer = new jspb.BinaryWriter();
|
|
8985
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter(this, writer);
|
|
8986
|
+
return writer.getResultBuffer();
|
|
8987
|
+
};
|
|
8988
|
+
|
|
8989
|
+
|
|
8990
|
+
/**
|
|
8991
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8992
|
+
* format), writing to the given BinaryWriter.
|
|
8993
|
+
* @param {!proto.ondewo.nlu.LlmRetrievalMetadata} message
|
|
8994
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8995
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8996
|
+
*/
|
|
8997
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
8998
|
+
var f = undefined;
|
|
8999
|
+
f = message.getChunksList();
|
|
9000
|
+
if (f.length > 0) {
|
|
9001
|
+
writer.writeRepeatedMessage(
|
|
9002
|
+
1,
|
|
9003
|
+
f,
|
|
9004
|
+
proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter
|
|
9005
|
+
);
|
|
9006
|
+
}
|
|
9007
|
+
};
|
|
9008
|
+
|
|
9009
|
+
|
|
9010
|
+
/**
|
|
9011
|
+
* repeated LlmRetrievedChunk chunks = 1;
|
|
9012
|
+
* @return {!Array<!proto.ondewo.nlu.LlmRetrievedChunk>}
|
|
9013
|
+
*/
|
|
9014
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.getChunksList = function() {
|
|
9015
|
+
return /** @type{!Array<!proto.ondewo.nlu.LlmRetrievedChunk>} */ (
|
|
9016
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmRetrievedChunk, 1));
|
|
9017
|
+
};
|
|
9018
|
+
|
|
9019
|
+
|
|
9020
|
+
/**
|
|
9021
|
+
* @param {!Array<!proto.ondewo.nlu.LlmRetrievedChunk>} value
|
|
9022
|
+
* @return {!proto.ondewo.nlu.LlmRetrievalMetadata} returns this
|
|
9023
|
+
*/
|
|
9024
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.setChunksList = function(value) {
|
|
9025
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
9026
|
+
};
|
|
9027
|
+
|
|
9028
|
+
|
|
9029
|
+
/**
|
|
9030
|
+
* @param {!proto.ondewo.nlu.LlmRetrievedChunk=} opt_value
|
|
9031
|
+
* @param {number=} opt_index
|
|
9032
|
+
* @return {!proto.ondewo.nlu.LlmRetrievedChunk}
|
|
9033
|
+
*/
|
|
9034
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.addChunks = function(opt_value, opt_index) {
|
|
9035
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.LlmRetrievedChunk, opt_index);
|
|
9036
|
+
};
|
|
9037
|
+
|
|
9038
|
+
|
|
9039
|
+
/**
|
|
9040
|
+
* Clears the list making it empty but non-null.
|
|
9041
|
+
* @return {!proto.ondewo.nlu.LlmRetrievalMetadata} returns this
|
|
9042
|
+
*/
|
|
9043
|
+
proto.ondewo.nlu.LlmRetrievalMetadata.prototype.clearChunksList = function() {
|
|
9044
|
+
return this.setChunksList([]);
|
|
9045
|
+
};
|
|
9046
|
+
|
|
9047
|
+
|
|
7802
9048
|
|
|
7803
9049
|
|
|
7804
9050
|
|
|
@@ -11263,7 +12509,8 @@ reasoningEffortDistributionList: jspb.Message.toObjectList(msg.getReasoningEffor
|
|
|
11263
12509
|
thinkingTokensTotal: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
11264
12510
|
thinkingDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
|
|
11265
12511
|
toolCallTokensTotal: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
11266
|
-
toolCallDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0)
|
|
12512
|
+
toolCallDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0),
|
|
12513
|
+
safetyStats: (f = msg.getSafetyStats()) && proto.ondewo.nlu.LlmSafetyStats.toObject(includeInstance, f)
|
|
11267
12514
|
};
|
|
11268
12515
|
|
|
11269
12516
|
if (includeInstance) {
|
|
@@ -11388,6 +12635,11 @@ proto.ondewo.nlu.LlmTelemetryReport.deserializeBinaryFromReader = function(msg,
|
|
|
11388
12635
|
var value = /** @type {number} */ (reader.readDouble());
|
|
11389
12636
|
msg.setToolCallDurationSecondsTotal(value);
|
|
11390
12637
|
break;
|
|
12638
|
+
case 20:
|
|
12639
|
+
var value = new proto.ondewo.nlu.LlmSafetyStats;
|
|
12640
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader);
|
|
12641
|
+
msg.setSafetyStats(value);
|
|
12642
|
+
break;
|
|
11391
12643
|
default:
|
|
11392
12644
|
reader.skipField();
|
|
11393
12645
|
break;
|
|
@@ -11562,6 +12814,14 @@ proto.ondewo.nlu.LlmTelemetryReport.serializeBinaryToWriter = function(message,
|
|
|
11562
12814
|
f
|
|
11563
12815
|
);
|
|
11564
12816
|
}
|
|
12817
|
+
f = message.getSafetyStats();
|
|
12818
|
+
if (f != null) {
|
|
12819
|
+
writer.writeMessage(
|
|
12820
|
+
20,
|
|
12821
|
+
f,
|
|
12822
|
+
proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter
|
|
12823
|
+
);
|
|
12824
|
+
}
|
|
11565
12825
|
};
|
|
11566
12826
|
|
|
11567
12827
|
|
|
@@ -12143,6 +13403,483 @@ proto.ondewo.nlu.LlmTelemetryReport.prototype.setToolCallDurationSecondsTotal =
|
|
|
12143
13403
|
};
|
|
12144
13404
|
|
|
12145
13405
|
|
|
13406
|
+
/**
|
|
13407
|
+
* optional LlmSafetyStats safety_stats = 20;
|
|
13408
|
+
* @return {?proto.ondewo.nlu.LlmSafetyStats}
|
|
13409
|
+
*/
|
|
13410
|
+
proto.ondewo.nlu.LlmTelemetryReport.prototype.getSafetyStats = function() {
|
|
13411
|
+
return /** @type{?proto.ondewo.nlu.LlmSafetyStats} */ (
|
|
13412
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmSafetyStats, 20));
|
|
13413
|
+
};
|
|
13414
|
+
|
|
13415
|
+
|
|
13416
|
+
/**
|
|
13417
|
+
* @param {?proto.ondewo.nlu.LlmSafetyStats|undefined} value
|
|
13418
|
+
* @return {!proto.ondewo.nlu.LlmTelemetryReport} returns this
|
|
13419
|
+
*/
|
|
13420
|
+
proto.ondewo.nlu.LlmTelemetryReport.prototype.setSafetyStats = function(value) {
|
|
13421
|
+
return jspb.Message.setWrapperField(this, 20, value);
|
|
13422
|
+
};
|
|
13423
|
+
|
|
13424
|
+
|
|
13425
|
+
/**
|
|
13426
|
+
* Clears the message field making it undefined.
|
|
13427
|
+
* @return {!proto.ondewo.nlu.LlmTelemetryReport} returns this
|
|
13428
|
+
*/
|
|
13429
|
+
proto.ondewo.nlu.LlmTelemetryReport.prototype.clearSafetyStats = function() {
|
|
13430
|
+
return this.setSafetyStats(undefined);
|
|
13431
|
+
};
|
|
13432
|
+
|
|
13433
|
+
|
|
13434
|
+
/**
|
|
13435
|
+
* Returns whether this field is set.
|
|
13436
|
+
* @return {boolean}
|
|
13437
|
+
*/
|
|
13438
|
+
proto.ondewo.nlu.LlmTelemetryReport.prototype.hasSafetyStats = function() {
|
|
13439
|
+
return jspb.Message.getField(this, 20) != null;
|
|
13440
|
+
};
|
|
13441
|
+
|
|
13442
|
+
|
|
13443
|
+
|
|
13444
|
+
|
|
13445
|
+
|
|
13446
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13447
|
+
/**
|
|
13448
|
+
* Creates an object representation of this proto.
|
|
13449
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13450
|
+
* Optional fields that are not set will be set to undefined.
|
|
13451
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13452
|
+
* For the list of reserved names please see:
|
|
13453
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13454
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13455
|
+
* JSPB instance for transitional soy proto support:
|
|
13456
|
+
* http://goto/soy-param-migration
|
|
13457
|
+
* @return {!Object}
|
|
13458
|
+
*/
|
|
13459
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.toObject = function(opt_includeInstance) {
|
|
13460
|
+
return proto.ondewo.nlu.LlmSafetyCategoryStat.toObject(opt_includeInstance, this);
|
|
13461
|
+
};
|
|
13462
|
+
|
|
13463
|
+
|
|
13464
|
+
/**
|
|
13465
|
+
* Static version of the {@see toObject} method.
|
|
13466
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13467
|
+
* the JSPB instance for transitional soy proto support:
|
|
13468
|
+
* http://goto/soy-param-migration
|
|
13469
|
+
* @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} msg The msg instance to transform.
|
|
13470
|
+
* @return {!Object}
|
|
13471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13472
|
+
*/
|
|
13473
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.toObject = function(includeInstance, msg) {
|
|
13474
|
+
var f, obj = {
|
|
13475
|
+
category: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
13476
|
+
count: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
13477
|
+
rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
13478
|
+
};
|
|
13479
|
+
|
|
13480
|
+
if (includeInstance) {
|
|
13481
|
+
obj.$jspbMessageInstance = msg;
|
|
13482
|
+
}
|
|
13483
|
+
return obj;
|
|
13484
|
+
};
|
|
13485
|
+
}
|
|
13486
|
+
|
|
13487
|
+
|
|
13488
|
+
/**
|
|
13489
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13490
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13491
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
|
|
13492
|
+
*/
|
|
13493
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinary = function(bytes) {
|
|
13494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13495
|
+
var msg = new proto.ondewo.nlu.LlmSafetyCategoryStat;
|
|
13496
|
+
return proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader(msg, reader);
|
|
13497
|
+
};
|
|
13498
|
+
|
|
13499
|
+
|
|
13500
|
+
/**
|
|
13501
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13502
|
+
* given reader into the given message object.
|
|
13503
|
+
* @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} msg The message object to deserialize into.
|
|
13504
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13505
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
|
|
13506
|
+
*/
|
|
13507
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader = function(msg, reader) {
|
|
13508
|
+
while (reader.nextField()) {
|
|
13509
|
+
if (reader.isEndGroup()) {
|
|
13510
|
+
break;
|
|
13511
|
+
}
|
|
13512
|
+
var field = reader.getFieldNumber();
|
|
13513
|
+
switch (field) {
|
|
13514
|
+
case 1:
|
|
13515
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13516
|
+
msg.setCategory(value);
|
|
13517
|
+
break;
|
|
13518
|
+
case 2:
|
|
13519
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
13520
|
+
msg.setCount(value);
|
|
13521
|
+
break;
|
|
13522
|
+
case 3:
|
|
13523
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
13524
|
+
msg.setRate(value);
|
|
13525
|
+
break;
|
|
13526
|
+
default:
|
|
13527
|
+
reader.skipField();
|
|
13528
|
+
break;
|
|
13529
|
+
}
|
|
13530
|
+
}
|
|
13531
|
+
return msg;
|
|
13532
|
+
};
|
|
13533
|
+
|
|
13534
|
+
|
|
13535
|
+
/**
|
|
13536
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13537
|
+
* @return {!Uint8Array}
|
|
13538
|
+
*/
|
|
13539
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.serializeBinary = function() {
|
|
13540
|
+
var writer = new jspb.BinaryWriter();
|
|
13541
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter(this, writer);
|
|
13542
|
+
return writer.getResultBuffer();
|
|
13543
|
+
};
|
|
13544
|
+
|
|
13545
|
+
|
|
13546
|
+
/**
|
|
13547
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13548
|
+
* format), writing to the given BinaryWriter.
|
|
13549
|
+
* @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} message
|
|
13550
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13551
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13552
|
+
*/
|
|
13553
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter = function(message, writer) {
|
|
13554
|
+
var f = undefined;
|
|
13555
|
+
f = message.getCategory();
|
|
13556
|
+
if (f.length > 0) {
|
|
13557
|
+
writer.writeString(
|
|
13558
|
+
1,
|
|
13559
|
+
f
|
|
13560
|
+
);
|
|
13561
|
+
}
|
|
13562
|
+
f = message.getCount();
|
|
13563
|
+
if (f !== 0) {
|
|
13564
|
+
writer.writeInt64(
|
|
13565
|
+
2,
|
|
13566
|
+
f
|
|
13567
|
+
);
|
|
13568
|
+
}
|
|
13569
|
+
f = message.getRate();
|
|
13570
|
+
if (f !== 0.0) {
|
|
13571
|
+
writer.writeDouble(
|
|
13572
|
+
3,
|
|
13573
|
+
f
|
|
13574
|
+
);
|
|
13575
|
+
}
|
|
13576
|
+
};
|
|
13577
|
+
|
|
13578
|
+
|
|
13579
|
+
/**
|
|
13580
|
+
* optional string category = 1;
|
|
13581
|
+
* @return {string}
|
|
13582
|
+
*/
|
|
13583
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getCategory = function() {
|
|
13584
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13585
|
+
};
|
|
13586
|
+
|
|
13587
|
+
|
|
13588
|
+
/**
|
|
13589
|
+
* @param {string} value
|
|
13590
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
|
|
13591
|
+
*/
|
|
13592
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setCategory = function(value) {
|
|
13593
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13594
|
+
};
|
|
13595
|
+
|
|
13596
|
+
|
|
13597
|
+
/**
|
|
13598
|
+
* optional int64 count = 2;
|
|
13599
|
+
* @return {number}
|
|
13600
|
+
*/
|
|
13601
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getCount = function() {
|
|
13602
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
13603
|
+
};
|
|
13604
|
+
|
|
13605
|
+
|
|
13606
|
+
/**
|
|
13607
|
+
* @param {number} value
|
|
13608
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
|
|
13609
|
+
*/
|
|
13610
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setCount = function(value) {
|
|
13611
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
13612
|
+
};
|
|
13613
|
+
|
|
13614
|
+
|
|
13615
|
+
/**
|
|
13616
|
+
* optional double rate = 3;
|
|
13617
|
+
* @return {number}
|
|
13618
|
+
*/
|
|
13619
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getRate = function() {
|
|
13620
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
13621
|
+
};
|
|
13622
|
+
|
|
13623
|
+
|
|
13624
|
+
/**
|
|
13625
|
+
* @param {number} value
|
|
13626
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
|
|
13627
|
+
*/
|
|
13628
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setRate = function(value) {
|
|
13629
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
13630
|
+
};
|
|
13631
|
+
|
|
13632
|
+
|
|
13633
|
+
|
|
13634
|
+
/**
|
|
13635
|
+
* List of repeated fields within this message type.
|
|
13636
|
+
* @private {!Array<number>}
|
|
13637
|
+
* @const
|
|
13638
|
+
*/
|
|
13639
|
+
proto.ondewo.nlu.LlmSafetyStats.repeatedFields_ = [4];
|
|
13640
|
+
|
|
13641
|
+
|
|
13642
|
+
|
|
13643
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13644
|
+
/**
|
|
13645
|
+
* Creates an object representation of this proto.
|
|
13646
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13647
|
+
* Optional fields that are not set will be set to undefined.
|
|
13648
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13649
|
+
* For the list of reserved names please see:
|
|
13650
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13651
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13652
|
+
* JSPB instance for transitional soy proto support:
|
|
13653
|
+
* http://goto/soy-param-migration
|
|
13654
|
+
* @return {!Object}
|
|
13655
|
+
*/
|
|
13656
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.toObject = function(opt_includeInstance) {
|
|
13657
|
+
return proto.ondewo.nlu.LlmSafetyStats.toObject(opt_includeInstance, this);
|
|
13658
|
+
};
|
|
13659
|
+
|
|
13660
|
+
|
|
13661
|
+
/**
|
|
13662
|
+
* Static version of the {@see toObject} method.
|
|
13663
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13664
|
+
* the JSPB instance for transitional soy proto support:
|
|
13665
|
+
* http://goto/soy-param-migration
|
|
13666
|
+
* @param {!proto.ondewo.nlu.LlmSafetyStats} msg The msg instance to transform.
|
|
13667
|
+
* @return {!Object}
|
|
13668
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13669
|
+
*/
|
|
13670
|
+
proto.ondewo.nlu.LlmSafetyStats.toObject = function(includeInstance, msg) {
|
|
13671
|
+
var f, obj = {
|
|
13672
|
+
totalAssessed: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13673
|
+
flaggedCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
13674
|
+
overallSafetyScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
13675
|
+
categoryStatsList: jspb.Message.toObjectList(msg.getCategoryStatsList(),
|
|
13676
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.toObject, includeInstance)
|
|
13677
|
+
};
|
|
13678
|
+
|
|
13679
|
+
if (includeInstance) {
|
|
13680
|
+
obj.$jspbMessageInstance = msg;
|
|
13681
|
+
}
|
|
13682
|
+
return obj;
|
|
13683
|
+
};
|
|
13684
|
+
}
|
|
13685
|
+
|
|
13686
|
+
|
|
13687
|
+
/**
|
|
13688
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13689
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13690
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats}
|
|
13691
|
+
*/
|
|
13692
|
+
proto.ondewo.nlu.LlmSafetyStats.deserializeBinary = function(bytes) {
|
|
13693
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13694
|
+
var msg = new proto.ondewo.nlu.LlmSafetyStats;
|
|
13695
|
+
return proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader(msg, reader);
|
|
13696
|
+
};
|
|
13697
|
+
|
|
13698
|
+
|
|
13699
|
+
/**
|
|
13700
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13701
|
+
* given reader into the given message object.
|
|
13702
|
+
* @param {!proto.ondewo.nlu.LlmSafetyStats} msg The message object to deserialize into.
|
|
13703
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13704
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats}
|
|
13705
|
+
*/
|
|
13706
|
+
proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader = function(msg, reader) {
|
|
13707
|
+
while (reader.nextField()) {
|
|
13708
|
+
if (reader.isEndGroup()) {
|
|
13709
|
+
break;
|
|
13710
|
+
}
|
|
13711
|
+
var field = reader.getFieldNumber();
|
|
13712
|
+
switch (field) {
|
|
13713
|
+
case 1:
|
|
13714
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
13715
|
+
msg.setTotalAssessed(value);
|
|
13716
|
+
break;
|
|
13717
|
+
case 2:
|
|
13718
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
13719
|
+
msg.setFlaggedCount(value);
|
|
13720
|
+
break;
|
|
13721
|
+
case 3:
|
|
13722
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
13723
|
+
msg.setOverallSafetyScore(value);
|
|
13724
|
+
break;
|
|
13725
|
+
case 4:
|
|
13726
|
+
var value = new proto.ondewo.nlu.LlmSafetyCategoryStat;
|
|
13727
|
+
reader.readMessage(value,proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader);
|
|
13728
|
+
msg.addCategoryStats(value);
|
|
13729
|
+
break;
|
|
13730
|
+
default:
|
|
13731
|
+
reader.skipField();
|
|
13732
|
+
break;
|
|
13733
|
+
}
|
|
13734
|
+
}
|
|
13735
|
+
return msg;
|
|
13736
|
+
};
|
|
13737
|
+
|
|
13738
|
+
|
|
13739
|
+
/**
|
|
13740
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13741
|
+
* @return {!Uint8Array}
|
|
13742
|
+
*/
|
|
13743
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.serializeBinary = function() {
|
|
13744
|
+
var writer = new jspb.BinaryWriter();
|
|
13745
|
+
proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter(this, writer);
|
|
13746
|
+
return writer.getResultBuffer();
|
|
13747
|
+
};
|
|
13748
|
+
|
|
13749
|
+
|
|
13750
|
+
/**
|
|
13751
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13752
|
+
* format), writing to the given BinaryWriter.
|
|
13753
|
+
* @param {!proto.ondewo.nlu.LlmSafetyStats} message
|
|
13754
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13755
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13756
|
+
*/
|
|
13757
|
+
proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter = function(message, writer) {
|
|
13758
|
+
var f = undefined;
|
|
13759
|
+
f = message.getTotalAssessed();
|
|
13760
|
+
if (f !== 0) {
|
|
13761
|
+
writer.writeInt64(
|
|
13762
|
+
1,
|
|
13763
|
+
f
|
|
13764
|
+
);
|
|
13765
|
+
}
|
|
13766
|
+
f = message.getFlaggedCount();
|
|
13767
|
+
if (f !== 0) {
|
|
13768
|
+
writer.writeInt64(
|
|
13769
|
+
2,
|
|
13770
|
+
f
|
|
13771
|
+
);
|
|
13772
|
+
}
|
|
13773
|
+
f = message.getOverallSafetyScore();
|
|
13774
|
+
if (f !== 0.0) {
|
|
13775
|
+
writer.writeDouble(
|
|
13776
|
+
3,
|
|
13777
|
+
f
|
|
13778
|
+
);
|
|
13779
|
+
}
|
|
13780
|
+
f = message.getCategoryStatsList();
|
|
13781
|
+
if (f.length > 0) {
|
|
13782
|
+
writer.writeRepeatedMessage(
|
|
13783
|
+
4,
|
|
13784
|
+
f,
|
|
13785
|
+
proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter
|
|
13786
|
+
);
|
|
13787
|
+
}
|
|
13788
|
+
};
|
|
13789
|
+
|
|
13790
|
+
|
|
13791
|
+
/**
|
|
13792
|
+
* optional int64 total_assessed = 1;
|
|
13793
|
+
* @return {number}
|
|
13794
|
+
*/
|
|
13795
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.getTotalAssessed = function() {
|
|
13796
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
13797
|
+
};
|
|
13798
|
+
|
|
13799
|
+
|
|
13800
|
+
/**
|
|
13801
|
+
* @param {number} value
|
|
13802
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
|
|
13803
|
+
*/
|
|
13804
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.setTotalAssessed = function(value) {
|
|
13805
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
13806
|
+
};
|
|
13807
|
+
|
|
13808
|
+
|
|
13809
|
+
/**
|
|
13810
|
+
* optional int64 flagged_count = 2;
|
|
13811
|
+
* @return {number}
|
|
13812
|
+
*/
|
|
13813
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.getFlaggedCount = function() {
|
|
13814
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
13815
|
+
};
|
|
13816
|
+
|
|
13817
|
+
|
|
13818
|
+
/**
|
|
13819
|
+
* @param {number} value
|
|
13820
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
|
|
13821
|
+
*/
|
|
13822
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.setFlaggedCount = function(value) {
|
|
13823
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
13824
|
+
};
|
|
13825
|
+
|
|
13826
|
+
|
|
13827
|
+
/**
|
|
13828
|
+
* optional double overall_safety_score = 3;
|
|
13829
|
+
* @return {number}
|
|
13830
|
+
*/
|
|
13831
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.getOverallSafetyScore = function() {
|
|
13832
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
13833
|
+
};
|
|
13834
|
+
|
|
13835
|
+
|
|
13836
|
+
/**
|
|
13837
|
+
* @param {number} value
|
|
13838
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
|
|
13839
|
+
*/
|
|
13840
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.setOverallSafetyScore = function(value) {
|
|
13841
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
13842
|
+
};
|
|
13843
|
+
|
|
13844
|
+
|
|
13845
|
+
/**
|
|
13846
|
+
* repeated LlmSafetyCategoryStat category_stats = 4;
|
|
13847
|
+
* @return {!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>}
|
|
13848
|
+
*/
|
|
13849
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.getCategoryStatsList = function() {
|
|
13850
|
+
return /** @type{!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>} */ (
|
|
13851
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmSafetyCategoryStat, 4));
|
|
13852
|
+
};
|
|
13853
|
+
|
|
13854
|
+
|
|
13855
|
+
/**
|
|
13856
|
+
* @param {!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>} value
|
|
13857
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
|
|
13858
|
+
*/
|
|
13859
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.setCategoryStatsList = function(value) {
|
|
13860
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
13861
|
+
};
|
|
13862
|
+
|
|
13863
|
+
|
|
13864
|
+
/**
|
|
13865
|
+
* @param {!proto.ondewo.nlu.LlmSafetyCategoryStat=} opt_value
|
|
13866
|
+
* @param {number=} opt_index
|
|
13867
|
+
* @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
|
|
13868
|
+
*/
|
|
13869
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.addCategoryStats = function(opt_value, opt_index) {
|
|
13870
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ondewo.nlu.LlmSafetyCategoryStat, opt_index);
|
|
13871
|
+
};
|
|
13872
|
+
|
|
13873
|
+
|
|
13874
|
+
/**
|
|
13875
|
+
* Clears the list making it empty but non-null.
|
|
13876
|
+
* @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
|
|
13877
|
+
*/
|
|
13878
|
+
proto.ondewo.nlu.LlmSafetyStats.prototype.clearCategoryStatsList = function() {
|
|
13879
|
+
return this.setCategoryStatsList([]);
|
|
13880
|
+
};
|
|
13881
|
+
|
|
13882
|
+
|
|
12146
13883
|
|
|
12147
13884
|
|
|
12148
13885
|
|
|
@@ -13734,12 +15471,382 @@ proto.ondewo.nlu.LlmTokenUsageUpdateEvent.prototype.hasLlmTokenUsage = function(
|
|
|
13734
15471
|
|
|
13735
15472
|
|
|
13736
15473
|
|
|
15474
|
+
|
|
15475
|
+
|
|
15476
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15477
|
+
/**
|
|
15478
|
+
* Creates an object representation of this proto.
|
|
15479
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15480
|
+
* Optional fields that are not set will be set to undefined.
|
|
15481
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15482
|
+
* For the list of reserved names please see:
|
|
15483
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15484
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15485
|
+
* JSPB instance for transitional soy proto support:
|
|
15486
|
+
* http://goto/soy-param-migration
|
|
15487
|
+
* @return {!Object}
|
|
15488
|
+
*/
|
|
15489
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.toObject = function(opt_includeInstance) {
|
|
15490
|
+
return proto.ondewo.nlu.ReferencedChunk.toObject(opt_includeInstance, this);
|
|
15491
|
+
};
|
|
15492
|
+
|
|
15493
|
+
|
|
15494
|
+
/**
|
|
15495
|
+
* Static version of the {@see toObject} method.
|
|
15496
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15497
|
+
* the JSPB instance for transitional soy proto support:
|
|
15498
|
+
* http://goto/soy-param-migration
|
|
15499
|
+
* @param {!proto.ondewo.nlu.ReferencedChunk} msg The msg instance to transform.
|
|
15500
|
+
* @return {!Object}
|
|
15501
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15502
|
+
*/
|
|
15503
|
+
proto.ondewo.nlu.ReferencedChunk.toObject = function(includeInstance, msg) {
|
|
15504
|
+
var f, obj = {
|
|
15505
|
+
referenceIndex: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
15506
|
+
datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
15507
|
+
documentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
15508
|
+
chunkId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
15509
|
+
documentName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
15510
|
+
content: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
15511
|
+
similarity: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
15512
|
+
documentUrl: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
15513
|
+
deepLinkUrl: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
15514
|
+
};
|
|
15515
|
+
|
|
15516
|
+
if (includeInstance) {
|
|
15517
|
+
obj.$jspbMessageInstance = msg;
|
|
15518
|
+
}
|
|
15519
|
+
return obj;
|
|
15520
|
+
};
|
|
15521
|
+
}
|
|
15522
|
+
|
|
15523
|
+
|
|
15524
|
+
/**
|
|
15525
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15526
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15527
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk}
|
|
15528
|
+
*/
|
|
15529
|
+
proto.ondewo.nlu.ReferencedChunk.deserializeBinary = function(bytes) {
|
|
15530
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15531
|
+
var msg = new proto.ondewo.nlu.ReferencedChunk;
|
|
15532
|
+
return proto.ondewo.nlu.ReferencedChunk.deserializeBinaryFromReader(msg, reader);
|
|
15533
|
+
};
|
|
15534
|
+
|
|
15535
|
+
|
|
15536
|
+
/**
|
|
15537
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15538
|
+
* given reader into the given message object.
|
|
15539
|
+
* @param {!proto.ondewo.nlu.ReferencedChunk} msg The message object to deserialize into.
|
|
15540
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15541
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk}
|
|
15542
|
+
*/
|
|
15543
|
+
proto.ondewo.nlu.ReferencedChunk.deserializeBinaryFromReader = function(msg, reader) {
|
|
15544
|
+
while (reader.nextField()) {
|
|
15545
|
+
if (reader.isEndGroup()) {
|
|
15546
|
+
break;
|
|
15547
|
+
}
|
|
15548
|
+
var field = reader.getFieldNumber();
|
|
15549
|
+
switch (field) {
|
|
15550
|
+
case 1:
|
|
15551
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
15552
|
+
msg.setReferenceIndex(value);
|
|
15553
|
+
break;
|
|
15554
|
+
case 2:
|
|
15555
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15556
|
+
msg.setDatasetId(value);
|
|
15557
|
+
break;
|
|
15558
|
+
case 3:
|
|
15559
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15560
|
+
msg.setDocumentId(value);
|
|
15561
|
+
break;
|
|
15562
|
+
case 4:
|
|
15563
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15564
|
+
msg.setChunkId(value);
|
|
15565
|
+
break;
|
|
15566
|
+
case 5:
|
|
15567
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15568
|
+
msg.setDocumentName(value);
|
|
15569
|
+
break;
|
|
15570
|
+
case 6:
|
|
15571
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15572
|
+
msg.setContent(value);
|
|
15573
|
+
break;
|
|
15574
|
+
case 7:
|
|
15575
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
15576
|
+
msg.setSimilarity(value);
|
|
15577
|
+
break;
|
|
15578
|
+
case 8:
|
|
15579
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15580
|
+
msg.setDocumentUrl(value);
|
|
15581
|
+
break;
|
|
15582
|
+
case 9:
|
|
15583
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15584
|
+
msg.setDeepLinkUrl(value);
|
|
15585
|
+
break;
|
|
15586
|
+
default:
|
|
15587
|
+
reader.skipField();
|
|
15588
|
+
break;
|
|
15589
|
+
}
|
|
15590
|
+
}
|
|
15591
|
+
return msg;
|
|
15592
|
+
};
|
|
15593
|
+
|
|
15594
|
+
|
|
15595
|
+
/**
|
|
15596
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15597
|
+
* @return {!Uint8Array}
|
|
15598
|
+
*/
|
|
15599
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.serializeBinary = function() {
|
|
15600
|
+
var writer = new jspb.BinaryWriter();
|
|
15601
|
+
proto.ondewo.nlu.ReferencedChunk.serializeBinaryToWriter(this, writer);
|
|
15602
|
+
return writer.getResultBuffer();
|
|
15603
|
+
};
|
|
15604
|
+
|
|
15605
|
+
|
|
15606
|
+
/**
|
|
15607
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15608
|
+
* format), writing to the given BinaryWriter.
|
|
15609
|
+
* @param {!proto.ondewo.nlu.ReferencedChunk} message
|
|
15610
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15611
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15612
|
+
*/
|
|
15613
|
+
proto.ondewo.nlu.ReferencedChunk.serializeBinaryToWriter = function(message, writer) {
|
|
15614
|
+
var f = undefined;
|
|
15615
|
+
f = message.getReferenceIndex();
|
|
15616
|
+
if (f !== 0) {
|
|
15617
|
+
writer.writeInt32(
|
|
15618
|
+
1,
|
|
15619
|
+
f
|
|
15620
|
+
);
|
|
15621
|
+
}
|
|
15622
|
+
f = message.getDatasetId();
|
|
15623
|
+
if (f.length > 0) {
|
|
15624
|
+
writer.writeString(
|
|
15625
|
+
2,
|
|
15626
|
+
f
|
|
15627
|
+
);
|
|
15628
|
+
}
|
|
15629
|
+
f = message.getDocumentId();
|
|
15630
|
+
if (f.length > 0) {
|
|
15631
|
+
writer.writeString(
|
|
15632
|
+
3,
|
|
15633
|
+
f
|
|
15634
|
+
);
|
|
15635
|
+
}
|
|
15636
|
+
f = message.getChunkId();
|
|
15637
|
+
if (f.length > 0) {
|
|
15638
|
+
writer.writeString(
|
|
15639
|
+
4,
|
|
15640
|
+
f
|
|
15641
|
+
);
|
|
15642
|
+
}
|
|
15643
|
+
f = message.getDocumentName();
|
|
15644
|
+
if (f.length > 0) {
|
|
15645
|
+
writer.writeString(
|
|
15646
|
+
5,
|
|
15647
|
+
f
|
|
15648
|
+
);
|
|
15649
|
+
}
|
|
15650
|
+
f = message.getContent();
|
|
15651
|
+
if (f.length > 0) {
|
|
15652
|
+
writer.writeString(
|
|
15653
|
+
6,
|
|
15654
|
+
f
|
|
15655
|
+
);
|
|
15656
|
+
}
|
|
15657
|
+
f = message.getSimilarity();
|
|
15658
|
+
if (f !== 0.0) {
|
|
15659
|
+
writer.writeFloat(
|
|
15660
|
+
7,
|
|
15661
|
+
f
|
|
15662
|
+
);
|
|
15663
|
+
}
|
|
15664
|
+
f = message.getDocumentUrl();
|
|
15665
|
+
if (f.length > 0) {
|
|
15666
|
+
writer.writeString(
|
|
15667
|
+
8,
|
|
15668
|
+
f
|
|
15669
|
+
);
|
|
15670
|
+
}
|
|
15671
|
+
f = message.getDeepLinkUrl();
|
|
15672
|
+
if (f.length > 0) {
|
|
15673
|
+
writer.writeString(
|
|
15674
|
+
9,
|
|
15675
|
+
f
|
|
15676
|
+
);
|
|
15677
|
+
}
|
|
15678
|
+
};
|
|
15679
|
+
|
|
15680
|
+
|
|
15681
|
+
/**
|
|
15682
|
+
* optional int32 reference_index = 1;
|
|
15683
|
+
* @return {number}
|
|
15684
|
+
*/
|
|
15685
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getReferenceIndex = function() {
|
|
15686
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
15687
|
+
};
|
|
15688
|
+
|
|
15689
|
+
|
|
15690
|
+
/**
|
|
15691
|
+
* @param {number} value
|
|
15692
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15693
|
+
*/
|
|
15694
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setReferenceIndex = function(value) {
|
|
15695
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
15696
|
+
};
|
|
15697
|
+
|
|
15698
|
+
|
|
15699
|
+
/**
|
|
15700
|
+
* optional string dataset_id = 2;
|
|
15701
|
+
* @return {string}
|
|
15702
|
+
*/
|
|
15703
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getDatasetId = function() {
|
|
15704
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
15705
|
+
};
|
|
15706
|
+
|
|
15707
|
+
|
|
15708
|
+
/**
|
|
15709
|
+
* @param {string} value
|
|
15710
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15711
|
+
*/
|
|
15712
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setDatasetId = function(value) {
|
|
15713
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
15714
|
+
};
|
|
15715
|
+
|
|
15716
|
+
|
|
15717
|
+
/**
|
|
15718
|
+
* optional string document_id = 3;
|
|
15719
|
+
* @return {string}
|
|
15720
|
+
*/
|
|
15721
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getDocumentId = function() {
|
|
15722
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
15723
|
+
};
|
|
15724
|
+
|
|
15725
|
+
|
|
15726
|
+
/**
|
|
15727
|
+
* @param {string} value
|
|
15728
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15729
|
+
*/
|
|
15730
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setDocumentId = function(value) {
|
|
15731
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
15732
|
+
};
|
|
15733
|
+
|
|
15734
|
+
|
|
15735
|
+
/**
|
|
15736
|
+
* optional string chunk_id = 4;
|
|
15737
|
+
* @return {string}
|
|
15738
|
+
*/
|
|
15739
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getChunkId = function() {
|
|
15740
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
15741
|
+
};
|
|
15742
|
+
|
|
15743
|
+
|
|
15744
|
+
/**
|
|
15745
|
+
* @param {string} value
|
|
15746
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15747
|
+
*/
|
|
15748
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setChunkId = function(value) {
|
|
15749
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
15750
|
+
};
|
|
15751
|
+
|
|
15752
|
+
|
|
15753
|
+
/**
|
|
15754
|
+
* optional string document_name = 5;
|
|
15755
|
+
* @return {string}
|
|
15756
|
+
*/
|
|
15757
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getDocumentName = function() {
|
|
15758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
15759
|
+
};
|
|
15760
|
+
|
|
15761
|
+
|
|
15762
|
+
/**
|
|
15763
|
+
* @param {string} value
|
|
15764
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15765
|
+
*/
|
|
15766
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setDocumentName = function(value) {
|
|
15767
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
15768
|
+
};
|
|
15769
|
+
|
|
15770
|
+
|
|
15771
|
+
/**
|
|
15772
|
+
* optional string content = 6;
|
|
15773
|
+
* @return {string}
|
|
15774
|
+
*/
|
|
15775
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getContent = function() {
|
|
15776
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
15777
|
+
};
|
|
15778
|
+
|
|
15779
|
+
|
|
15780
|
+
/**
|
|
15781
|
+
* @param {string} value
|
|
15782
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15783
|
+
*/
|
|
15784
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setContent = function(value) {
|
|
15785
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
15786
|
+
};
|
|
15787
|
+
|
|
15788
|
+
|
|
15789
|
+
/**
|
|
15790
|
+
* optional float similarity = 7;
|
|
15791
|
+
* @return {number}
|
|
15792
|
+
*/
|
|
15793
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getSimilarity = function() {
|
|
15794
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
15795
|
+
};
|
|
15796
|
+
|
|
15797
|
+
|
|
15798
|
+
/**
|
|
15799
|
+
* @param {number} value
|
|
15800
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15801
|
+
*/
|
|
15802
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setSimilarity = function(value) {
|
|
15803
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
15804
|
+
};
|
|
15805
|
+
|
|
15806
|
+
|
|
15807
|
+
/**
|
|
15808
|
+
* optional string document_url = 8;
|
|
15809
|
+
* @return {string}
|
|
15810
|
+
*/
|
|
15811
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getDocumentUrl = function() {
|
|
15812
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
15813
|
+
};
|
|
15814
|
+
|
|
15815
|
+
|
|
15816
|
+
/**
|
|
15817
|
+
* @param {string} value
|
|
15818
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15819
|
+
*/
|
|
15820
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setDocumentUrl = function(value) {
|
|
15821
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
15822
|
+
};
|
|
15823
|
+
|
|
15824
|
+
|
|
15825
|
+
/**
|
|
15826
|
+
* optional string deep_link_url = 9;
|
|
15827
|
+
* @return {string}
|
|
15828
|
+
*/
|
|
15829
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.getDeepLinkUrl = function() {
|
|
15830
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
15831
|
+
};
|
|
15832
|
+
|
|
15833
|
+
|
|
15834
|
+
/**
|
|
15835
|
+
* @param {string} value
|
|
15836
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk} returns this
|
|
15837
|
+
*/
|
|
15838
|
+
proto.ondewo.nlu.ReferencedChunk.prototype.setDeepLinkUrl = function(value) {
|
|
15839
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
15840
|
+
};
|
|
15841
|
+
|
|
15842
|
+
|
|
15843
|
+
|
|
13737
15844
|
/**
|
|
13738
15845
|
* List of repeated fields within this message type.
|
|
13739
15846
|
* @private {!Array<number>}
|
|
13740
15847
|
* @const
|
|
13741
15848
|
*/
|
|
13742
|
-
proto.ondewo.nlu.QueryResult.repeatedFields_ = [7,10,16];
|
|
15849
|
+
proto.ondewo.nlu.QueryResult.repeatedFields_ = [7,10,16,18];
|
|
13743
15850
|
|
|
13744
15851
|
|
|
13745
15852
|
|
|
@@ -13791,7 +15898,9 @@ diagnosticInfo: (f = msg.getDiagnosticInfo()) && google_protobuf_struct_pb.Struc
|
|
|
13791
15898
|
languageCode: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
13792
15899
|
fileResourcesList: jspb.Message.toObjectList(msg.getFileResourcesList(),
|
|
13793
15900
|
proto.ondewo.nlu.FileResource.toObject, includeInstance),
|
|
13794
|
-
llmTelemetryReport: (f = msg.getLlmTelemetryReport()) && proto.ondewo.nlu.LlmTelemetryReport.toObject(includeInstance, f)
|
|
15901
|
+
llmTelemetryReport: (f = msg.getLlmTelemetryReport()) && proto.ondewo.nlu.LlmTelemetryReport.toObject(includeInstance, f),
|
|
15902
|
+
referencedChunksList: jspb.Message.toObjectList(msg.getReferencedChunksList(),
|
|
15903
|
+
proto.ondewo.nlu.ReferencedChunk.toObject, includeInstance)
|
|
13795
15904
|
};
|
|
13796
15905
|
|
|
13797
15906
|
if (includeInstance) {
|
|
@@ -13904,6 +16013,11 @@ proto.ondewo.nlu.QueryResult.deserializeBinaryFromReader = function(msg, reader)
|
|
|
13904
16013
|
reader.readMessage(value,proto.ondewo.nlu.LlmTelemetryReport.deserializeBinaryFromReader);
|
|
13905
16014
|
msg.setLlmTelemetryReport(value);
|
|
13906
16015
|
break;
|
|
16016
|
+
case 18:
|
|
16017
|
+
var value = new proto.ondewo.nlu.ReferencedChunk;
|
|
16018
|
+
reader.readMessage(value,proto.ondewo.nlu.ReferencedChunk.deserializeBinaryFromReader);
|
|
16019
|
+
msg.addReferencedChunks(value);
|
|
16020
|
+
break;
|
|
13907
16021
|
default:
|
|
13908
16022
|
reader.skipField();
|
|
13909
16023
|
break;
|
|
@@ -14060,6 +16174,14 @@ proto.ondewo.nlu.QueryResult.serializeBinaryToWriter = function(message, writer)
|
|
|
14060
16174
|
proto.ondewo.nlu.LlmTelemetryReport.serializeBinaryToWriter
|
|
14061
16175
|
);
|
|
14062
16176
|
}
|
|
16177
|
+
f = message.getReferencedChunksList();
|
|
16178
|
+
if (f.length > 0) {
|
|
16179
|
+
writer.writeRepeatedMessage(
|
|
16180
|
+
18,
|
|
16181
|
+
f,
|
|
16182
|
+
proto.ondewo.nlu.ReferencedChunk.serializeBinaryToWriter
|
|
16183
|
+
);
|
|
16184
|
+
}
|
|
14063
16185
|
};
|
|
14064
16186
|
|
|
14065
16187
|
|
|
@@ -14524,6 +16646,44 @@ proto.ondewo.nlu.QueryResult.prototype.hasLlmTelemetryReport = function() {
|
|
|
14524
16646
|
};
|
|
14525
16647
|
|
|
14526
16648
|
|
|
16649
|
+
/**
|
|
16650
|
+
* repeated ReferencedChunk referenced_chunks = 18;
|
|
16651
|
+
* @return {!Array<!proto.ondewo.nlu.ReferencedChunk>}
|
|
16652
|
+
*/
|
|
16653
|
+
proto.ondewo.nlu.QueryResult.prototype.getReferencedChunksList = function() {
|
|
16654
|
+
return /** @type{!Array<!proto.ondewo.nlu.ReferencedChunk>} */ (
|
|
16655
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.ReferencedChunk, 18));
|
|
16656
|
+
};
|
|
16657
|
+
|
|
16658
|
+
|
|
16659
|
+
/**
|
|
16660
|
+
* @param {!Array<!proto.ondewo.nlu.ReferencedChunk>} value
|
|
16661
|
+
* @return {!proto.ondewo.nlu.QueryResult} returns this
|
|
16662
|
+
*/
|
|
16663
|
+
proto.ondewo.nlu.QueryResult.prototype.setReferencedChunksList = function(value) {
|
|
16664
|
+
return jspb.Message.setRepeatedWrapperField(this, 18, value);
|
|
16665
|
+
};
|
|
16666
|
+
|
|
16667
|
+
|
|
16668
|
+
/**
|
|
16669
|
+
* @param {!proto.ondewo.nlu.ReferencedChunk=} opt_value
|
|
16670
|
+
* @param {number=} opt_index
|
|
16671
|
+
* @return {!proto.ondewo.nlu.ReferencedChunk}
|
|
16672
|
+
*/
|
|
16673
|
+
proto.ondewo.nlu.QueryResult.prototype.addReferencedChunks = function(opt_value, opt_index) {
|
|
16674
|
+
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.ondewo.nlu.ReferencedChunk, opt_index);
|
|
16675
|
+
};
|
|
16676
|
+
|
|
16677
|
+
|
|
16678
|
+
/**
|
|
16679
|
+
* Clears the list making it empty but non-null.
|
|
16680
|
+
* @return {!proto.ondewo.nlu.QueryResult} returns this
|
|
16681
|
+
*/
|
|
16682
|
+
proto.ondewo.nlu.QueryResult.prototype.clearReferencedChunksList = function() {
|
|
16683
|
+
return this.setReferencedChunksList([]);
|
|
16684
|
+
};
|
|
16685
|
+
|
|
16686
|
+
|
|
14527
16687
|
|
|
14528
16688
|
|
|
14529
16689
|
|
|
@@ -36335,6 +38495,15 @@ proto.ondewo.nlu.ReasoningEffort = {
|
|
|
36335
38495
|
REASONING_EFFORT_HIGH: 4
|
|
36336
38496
|
};
|
|
36337
38497
|
|
|
38498
|
+
/**
|
|
38499
|
+
* @enum {number}
|
|
38500
|
+
*/
|
|
38501
|
+
proto.ondewo.nlu.LlmSafetyLocation = {
|
|
38502
|
+
LLM_SAFETY_LOCATION_UNSPECIFIED: 0,
|
|
38503
|
+
LLM_SAFETY_LOCATION_INPUT: 1,
|
|
38504
|
+
LLM_SAFETY_LOCATION_OUTPUT: 2
|
|
38505
|
+
};
|
|
38506
|
+
|
|
36338
38507
|
/**
|
|
36339
38508
|
* @enum {number}
|
|
36340
38509
|
*/
|