@ondewo/nlu-client-typescript 6.12.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/session_pb.d.ts +56 -0
- package/api/ondewo/nlu/session_pb.js +447 -2
- package/package.json +1 -1
- package/public-api.d.ts +31 -31
- package/public-api.js +28 -28
|
@@ -1742,6 +1742,56 @@ export namespace LlmTokenUsageUpdateEvent {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
1744
|
|
|
1745
|
+
export class ReferencedChunk extends jspb.Message {
|
|
1746
|
+
getReferenceIndex(): number;
|
|
1747
|
+
setReferenceIndex(value: number): ReferencedChunk;
|
|
1748
|
+
|
|
1749
|
+
getDatasetId(): string;
|
|
1750
|
+
setDatasetId(value: string): ReferencedChunk;
|
|
1751
|
+
|
|
1752
|
+
getDocumentId(): string;
|
|
1753
|
+
setDocumentId(value: string): ReferencedChunk;
|
|
1754
|
+
|
|
1755
|
+
getChunkId(): string;
|
|
1756
|
+
setChunkId(value: string): ReferencedChunk;
|
|
1757
|
+
|
|
1758
|
+
getDocumentName(): string;
|
|
1759
|
+
setDocumentName(value: string): ReferencedChunk;
|
|
1760
|
+
|
|
1761
|
+
getContent(): string;
|
|
1762
|
+
setContent(value: string): ReferencedChunk;
|
|
1763
|
+
|
|
1764
|
+
getSimilarity(): number;
|
|
1765
|
+
setSimilarity(value: number): ReferencedChunk;
|
|
1766
|
+
|
|
1767
|
+
getDocumentUrl(): string;
|
|
1768
|
+
setDocumentUrl(value: string): ReferencedChunk;
|
|
1769
|
+
|
|
1770
|
+
getDeepLinkUrl(): string;
|
|
1771
|
+
setDeepLinkUrl(value: string): ReferencedChunk;
|
|
1772
|
+
|
|
1773
|
+
serializeBinary(): Uint8Array;
|
|
1774
|
+
toObject(includeInstance?: boolean): ReferencedChunk.AsObject;
|
|
1775
|
+
static toObject(includeInstance: boolean, msg: ReferencedChunk): ReferencedChunk.AsObject;
|
|
1776
|
+
static serializeBinaryToWriter(message: ReferencedChunk, writer: jspb.BinaryWriter): void;
|
|
1777
|
+
static deserializeBinary(bytes: Uint8Array): ReferencedChunk;
|
|
1778
|
+
static deserializeBinaryFromReader(message: ReferencedChunk, reader: jspb.BinaryReader): ReferencedChunk;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
export namespace ReferencedChunk {
|
|
1782
|
+
export type AsObject = {
|
|
1783
|
+
referenceIndex: number,
|
|
1784
|
+
datasetId: string,
|
|
1785
|
+
documentId: string,
|
|
1786
|
+
chunkId: string,
|
|
1787
|
+
documentName: string,
|
|
1788
|
+
content: string,
|
|
1789
|
+
similarity: number,
|
|
1790
|
+
documentUrl: string,
|
|
1791
|
+
deepLinkUrl: string,
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1745
1795
|
export class QueryResult extends jspb.Message {
|
|
1746
1796
|
getQueryText(): string;
|
|
1747
1797
|
setQueryText(value: string): QueryResult;
|
|
@@ -1810,6 +1860,11 @@ export class QueryResult extends jspb.Message {
|
|
|
1810
1860
|
hasLlmTelemetryReport(): boolean;
|
|
1811
1861
|
clearLlmTelemetryReport(): QueryResult;
|
|
1812
1862
|
|
|
1863
|
+
getReferencedChunksList(): Array<ReferencedChunk>;
|
|
1864
|
+
setReferencedChunksList(value: Array<ReferencedChunk>): QueryResult;
|
|
1865
|
+
clearReferencedChunksList(): QueryResult;
|
|
1866
|
+
addReferencedChunks(value?: ReferencedChunk, index?: number): ReferencedChunk;
|
|
1867
|
+
|
|
1813
1868
|
serializeBinary(): Uint8Array;
|
|
1814
1869
|
toObject(includeInstance?: boolean): QueryResult.AsObject;
|
|
1815
1870
|
static toObject(includeInstance: boolean, msg: QueryResult): QueryResult.AsObject;
|
|
@@ -1837,6 +1892,7 @@ export namespace QueryResult {
|
|
|
1837
1892
|
languageCode: string,
|
|
1838
1893
|
fileResourcesList: Array<FileResource.AsObject>,
|
|
1839
1894
|
llmTelemetryReport?: LlmTelemetryReport.AsObject,
|
|
1895
|
+
referencedChunksList: Array<ReferencedChunk.AsObject>,
|
|
1840
1896
|
}
|
|
1841
1897
|
}
|
|
1842
1898
|
|
|
@@ -152,6 +152,7 @@ goog.exportSymbol('proto.ondewo.nlu.QueryInput.InputCase', null, global);
|
|
|
152
152
|
goog.exportSymbol('proto.ondewo.nlu.QueryParameters', null, global);
|
|
153
153
|
goog.exportSymbol('proto.ondewo.nlu.QueryResult', null, global);
|
|
154
154
|
goog.exportSymbol('proto.ondewo.nlu.ReasoningEffort', null, global);
|
|
155
|
+
goog.exportSymbol('proto.ondewo.nlu.ReferencedChunk', null, global);
|
|
155
156
|
goog.exportSymbol('proto.ondewo.nlu.ResourceView', null, global);
|
|
156
157
|
goog.exportSymbol('proto.ondewo.nlu.S2tTranscription', null, global);
|
|
157
158
|
goog.exportSymbol('proto.ondewo.nlu.Session', null, global);
|
|
@@ -866,6 +867,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
866
867
|
*/
|
|
867
868
|
proto.ondewo.nlu.LlmTokenUsageUpdateEvent.displayName = 'proto.ondewo.nlu.LlmTokenUsageUpdateEvent';
|
|
868
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
|
+
}
|
|
869
891
|
/**
|
|
870
892
|
* Generated by JsPbCodeGenerator.
|
|
871
893
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -15449,12 +15471,382 @@ proto.ondewo.nlu.LlmTokenUsageUpdateEvent.prototype.hasLlmTokenUsage = function(
|
|
|
15449
15471
|
|
|
15450
15472
|
|
|
15451
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
|
+
|
|
15452
15844
|
/**
|
|
15453
15845
|
* List of repeated fields within this message type.
|
|
15454
15846
|
* @private {!Array<number>}
|
|
15455
15847
|
* @const
|
|
15456
15848
|
*/
|
|
15457
|
-
proto.ondewo.nlu.QueryResult.repeatedFields_ = [7,10,16];
|
|
15849
|
+
proto.ondewo.nlu.QueryResult.repeatedFields_ = [7,10,16,18];
|
|
15458
15850
|
|
|
15459
15851
|
|
|
15460
15852
|
|
|
@@ -15506,7 +15898,9 @@ diagnosticInfo: (f = msg.getDiagnosticInfo()) && google_protobuf_struct_pb.Struc
|
|
|
15506
15898
|
languageCode: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
15507
15899
|
fileResourcesList: jspb.Message.toObjectList(msg.getFileResourcesList(),
|
|
15508
15900
|
proto.ondewo.nlu.FileResource.toObject, includeInstance),
|
|
15509
|
-
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)
|
|
15510
15904
|
};
|
|
15511
15905
|
|
|
15512
15906
|
if (includeInstance) {
|
|
@@ -15619,6 +16013,11 @@ proto.ondewo.nlu.QueryResult.deserializeBinaryFromReader = function(msg, reader)
|
|
|
15619
16013
|
reader.readMessage(value,proto.ondewo.nlu.LlmTelemetryReport.deserializeBinaryFromReader);
|
|
15620
16014
|
msg.setLlmTelemetryReport(value);
|
|
15621
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;
|
|
15622
16021
|
default:
|
|
15623
16022
|
reader.skipField();
|
|
15624
16023
|
break;
|
|
@@ -15775,6 +16174,14 @@ proto.ondewo.nlu.QueryResult.serializeBinaryToWriter = function(message, writer)
|
|
|
15775
16174
|
proto.ondewo.nlu.LlmTelemetryReport.serializeBinaryToWriter
|
|
15776
16175
|
);
|
|
15777
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
|
+
}
|
|
15778
16185
|
};
|
|
15779
16186
|
|
|
15780
16187
|
|
|
@@ -16239,6 +16646,44 @@ proto.ondewo.nlu.QueryResult.prototype.hasLlmTelemetryReport = function() {
|
|
|
16239
16646
|
};
|
|
16240
16647
|
|
|
16241
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
|
+
|
|
16242
16687
|
|
|
16243
16688
|
|
|
16244
16689
|
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export * from './api/ondewo/qa/qa_pb.d';
|
|
2
1
|
export * from './api/ondewo/qa/qa_grpc_web_pb.d';
|
|
3
|
-
export * from './api/ondewo/
|
|
4
|
-
export * from './api/ondewo/nlu/
|
|
2
|
+
export * from './api/ondewo/qa/qa_pb.d';
|
|
3
|
+
export * from './api/ondewo/nlu/session_grpc_web_pb.d';
|
|
5
4
|
export * from './api/ondewo/nlu/user_grpc_web_pb.d';
|
|
6
|
-
export * from './api/ondewo/nlu/
|
|
7
|
-
export * from './api/ondewo/nlu/
|
|
5
|
+
export * from './api/ondewo/nlu/project_role_grpc_web_pb.d';
|
|
6
|
+
export * from './api/ondewo/nlu/entity_type_pb.d';
|
|
8
7
|
export * from './api/ondewo/nlu/webhook_pb.d';
|
|
9
|
-
export * from './api/ondewo/nlu/
|
|
8
|
+
export * from './api/ondewo/nlu/agent_pb.d';
|
|
9
|
+
export * from './api/ondewo/nlu/session_pb.d';
|
|
10
|
+
export * from './api/ondewo/nlu/common_pb.d';
|
|
10
11
|
export * from './api/ondewo/nlu/operation_metadata_pb.d';
|
|
11
|
-
export * from './api/ondewo/nlu/
|
|
12
|
-
export * from './api/ondewo/nlu/
|
|
13
|
-
export * from './api/ondewo/nlu/llm_evaluation_pb.d';
|
|
14
|
-
export * from './api/ondewo/nlu/intent_grpc_web_pb.d';
|
|
15
|
-
export * from './api/ondewo/nlu/agent_grpc_web_pb.d';
|
|
16
|
-
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
17
|
-
export * from './api/ondewo/nlu/utility_pb.d';
|
|
18
|
-
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb.d';
|
|
19
|
-
export * from './api/ondewo/nlu/user_pb.d';
|
|
20
|
-
export * from './api/ondewo/nlu/entity_type_pb.d';
|
|
12
|
+
export * from './api/ondewo/nlu/rag_pb.d';
|
|
13
|
+
export * from './api/ondewo/nlu/server_statistics_pb.d';
|
|
21
14
|
export * from './api/ondewo/nlu/aiservices_pb.d';
|
|
22
|
-
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
23
15
|
export * from './api/ondewo/nlu/server_statistics_grpc_web_pb.d';
|
|
24
|
-
export * from './api/ondewo/nlu/
|
|
25
|
-
export * from './api/ondewo/nlu/
|
|
16
|
+
export * from './api/ondewo/nlu/context_grpc_web_pb.d';
|
|
17
|
+
export * from './api/ondewo/nlu/operations_pb.d';
|
|
18
|
+
export * from './api/ondewo/nlu/aiservices_grpc_web_pb.d';
|
|
19
|
+
export * from './api/ondewo/nlu/llm_evaluation_grpc_web_pb.d';
|
|
20
|
+
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb.d';
|
|
21
|
+
export * from './api/ondewo/nlu/rag_grpc_web_pb.d';
|
|
22
|
+
export * from './api/ondewo/nlu/context_pb.d';
|
|
26
23
|
export * from './api/ondewo/nlu/intent_pb.d';
|
|
24
|
+
export * from './api/ondewo/nlu/utility_pb.d';
|
|
25
|
+
export * from './api/ondewo/nlu/operations_grpc_web_pb.d';
|
|
26
|
+
export * from './api/ondewo/nlu/ccai_project_pb.d';
|
|
27
|
+
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
27
28
|
export * from './api/ondewo/nlu/project_role_pb.d';
|
|
28
|
-
export * from './api/ondewo/nlu/
|
|
29
|
-
export * from './api/ondewo/nlu/
|
|
30
|
-
export * from './api/ondewo/nlu/session_pb.d';
|
|
31
|
-
export * from './api/ondewo/nlu/project_role_grpc_web_pb.d';
|
|
32
|
-
export * from './api/ondewo/nlu/common_pb.d';
|
|
33
|
-
export * from './api/ondewo/nlu/aiservices_grpc_web_pb.d';
|
|
34
|
-
export * from './api/ondewo/nlu/rag_pb.d';
|
|
35
|
-
export * from './api/ondewo/nlu/session_grpc_web_pb.d';
|
|
29
|
+
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
30
|
+
export * from './api/ondewo/nlu/utility_grpc_web_pb.d';
|
|
36
31
|
export * from './api/ondewo/nlu/project_statistics_pb.d';
|
|
32
|
+
export * from './api/ondewo/nlu/ccai_project_grpc_web_pb.d';
|
|
33
|
+
export * from './api/ondewo/nlu/user_pb.d';
|
|
34
|
+
export * from './api/ondewo/nlu/llm_evaluation_pb.d';
|
|
35
|
+
export * from './api/ondewo/nlu/intent_grpc_web_pb.d';
|
|
36
|
+
export * from './api/ondewo/nlu/agent_grpc_web_pb.d';
|
|
37
37
|
export * from './api/google/api/annotations_pb.d';
|
|
38
|
+
export * from './api/google/type/latlng_pb.d';
|
|
38
39
|
export * from './api/google/rpc/status_pb.d';
|
|
39
|
-
export * from './api/google/protobuf/empty_pb.d';
|
|
40
|
-
export * from './api/google/protobuf/field_mask_pb.d';
|
|
41
|
-
export * from './api/google/protobuf/timestamp_pb.d';
|
|
42
40
|
export * from './api/google/protobuf/any_pb.d';
|
|
41
|
+
export * from './api/google/protobuf/field_mask_pb.d';
|
|
43
42
|
export * from './api/google/protobuf/struct_pb.d';
|
|
44
|
-
export * from './api/google/
|
|
43
|
+
export * from './api/google/protobuf/timestamp_pb.d';
|
|
44
|
+
export * from './api/google/protobuf/empty_pb.d';
|
package/public-api.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export * from './api/ondewo/qa/qa_pb';
|
|
2
1
|
export * from './api/ondewo/qa/qa_grpc_web_pb';
|
|
2
|
+
export * from './api/ondewo/qa/qa_pb';
|
|
3
|
+
export * from './api/ondewo/nlu/common_pb';
|
|
3
4
|
export * from './api/ondewo/nlu/project_role_pb';
|
|
4
|
-
export * from './api/ondewo/nlu/
|
|
5
|
-
export * from './api/ondewo/nlu/
|
|
6
|
-
export * from './api/ondewo/nlu/
|
|
7
|
-
export * from './api/ondewo/nlu/
|
|
8
|
-
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb';
|
|
9
|
-
export * from './api/ondewo/nlu/rag_pb';
|
|
10
|
-
export * from './api/ondewo/nlu/session_pb';
|
|
5
|
+
export * from './api/ondewo/nlu/rag_grpc_web_pb';
|
|
6
|
+
export * from './api/ondewo/nlu/utility_grpc_web_pb';
|
|
7
|
+
export * from './api/ondewo/nlu/operations_pb';
|
|
8
|
+
export * from './api/ondewo/nlu/project_statistics_pb';
|
|
11
9
|
export * from './api/ondewo/nlu/server_statistics_grpc_web_pb';
|
|
12
|
-
export * from './api/ondewo/nlu/context_pb';
|
|
13
10
|
export * from './api/ondewo/nlu/ccai_project_grpc_web_pb';
|
|
14
|
-
export * from './api/ondewo/nlu/
|
|
15
|
-
export * from './api/ondewo/nlu/webhook_pb';
|
|
16
|
-
export * from './api/ondewo/nlu/aiservices_grpc_web_pb';
|
|
11
|
+
export * from './api/ondewo/nlu/server_statistics_pb';
|
|
17
12
|
export * from './api/ondewo/nlu/intent_pb';
|
|
18
|
-
export * from './api/ondewo/nlu/
|
|
19
|
-
export * from './api/ondewo/nlu/
|
|
20
|
-
export * from './api/ondewo/nlu/
|
|
21
|
-
export * from './api/ondewo/nlu/
|
|
13
|
+
export * from './api/ondewo/nlu/session_grpc_web_pb';
|
|
14
|
+
export * from './api/ondewo/nlu/entity_type_grpc_web_pb';
|
|
15
|
+
export * from './api/ondewo/nlu/context_grpc_web_pb';
|
|
16
|
+
export * from './api/ondewo/nlu/context_pb';
|
|
22
17
|
export * from './api/ondewo/nlu/llm_evaluation_pb';
|
|
23
|
-
export * from './api/ondewo/nlu/
|
|
24
|
-
export * from './api/ondewo/nlu/ccai_project_pb';
|
|
25
|
-
export * from './api/ondewo/nlu/user_grpc_web_pb';
|
|
26
|
-
export * from './api/ondewo/nlu/intent_grpc_web_pb';
|
|
18
|
+
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb';
|
|
27
19
|
export * from './api/ondewo/nlu/utility_pb';
|
|
28
|
-
export * from './api/ondewo/nlu/
|
|
20
|
+
export * from './api/ondewo/nlu/project_role_grpc_web_pb';
|
|
21
|
+
export * from './api/ondewo/nlu/ccai_project_pb';
|
|
22
|
+
export * from './api/ondewo/nlu/session_pb';
|
|
23
|
+
export * from './api/ondewo/nlu/entity_type_pb';
|
|
24
|
+
export * from './api/ondewo/nlu/operations_grpc_web_pb';
|
|
25
|
+
export * from './api/ondewo/nlu/agent_pb';
|
|
29
26
|
export * from './api/ondewo/nlu/webhook_grpc_web_pb';
|
|
30
|
-
export * from './api/ondewo/nlu/
|
|
31
|
-
export * from './api/ondewo/nlu/
|
|
32
|
-
export * from './api/ondewo/nlu/
|
|
33
|
-
export * from './api/ondewo/nlu/
|
|
34
|
-
export * from './api/ondewo/nlu/
|
|
27
|
+
export * from './api/ondewo/nlu/aiservices_grpc_web_pb';
|
|
28
|
+
export * from './api/ondewo/nlu/operation_metadata_pb';
|
|
29
|
+
export * from './api/ondewo/nlu/agent_grpc_web_pb';
|
|
30
|
+
export * from './api/ondewo/nlu/rag_pb';
|
|
31
|
+
export * from './api/ondewo/nlu/webhook_pb';
|
|
32
|
+
export * from './api/ondewo/nlu/aiservices_pb';
|
|
33
|
+
export * from './api/ondewo/nlu/intent_grpc_web_pb';
|
|
35
34
|
export * from './api/ondewo/nlu/llm_evaluation_grpc_web_pb';
|
|
36
|
-
export * from './api/ondewo/nlu/
|
|
35
|
+
export * from './api/ondewo/nlu/user_pb';
|
|
36
|
+
export * from './api/ondewo/nlu/user_grpc_web_pb';
|
|
37
37
|
export * from './api/google/api/annotations_pb';
|
|
38
|
+
export * from './api/google/type/latlng_pb';
|
|
38
39
|
export * from './api/google/rpc/status_pb';
|
|
39
40
|
export * from './api/google/protobuf/field_mask_pb';
|
|
40
41
|
export * from './api/google/protobuf/any_pb';
|
|
41
42
|
export * from './api/google/protobuf/timestamp_pb';
|
|
42
43
|
export * from './api/google/protobuf/empty_pb';
|
|
43
44
|
export * from './api/google/protobuf/struct_pb';
|
|
44
|
-
export * from './api/google/type/latlng_pb';
|