@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
|
@@ -631,6 +631,16 @@ export class LlmTelemetry extends jspb.Message {
|
|
|
631
631
|
getCcaiServiceProvider(): ondewo_nlu_ccai_project_pb.CcaiServiceProvider;
|
|
632
632
|
setCcaiServiceProvider(value: ondewo_nlu_ccai_project_pb.CcaiServiceProvider): LlmTelemetry;
|
|
633
633
|
|
|
634
|
+
getLlmSafetyAssessment(): LlmSafetyAssessment | undefined;
|
|
635
|
+
setLlmSafetyAssessment(value?: LlmSafetyAssessment): LlmTelemetry;
|
|
636
|
+
hasLlmSafetyAssessment(): boolean;
|
|
637
|
+
clearLlmSafetyAssessment(): LlmTelemetry;
|
|
638
|
+
|
|
639
|
+
getLlmRetrievalMetadata(): LlmRetrievalMetadata | undefined;
|
|
640
|
+
setLlmRetrievalMetadata(value?: LlmRetrievalMetadata): LlmTelemetry;
|
|
641
|
+
hasLlmRetrievalMetadata(): boolean;
|
|
642
|
+
clearLlmRetrievalMetadata(): LlmTelemetry;
|
|
643
|
+
|
|
634
644
|
serializeBinary(): Uint8Array;
|
|
635
645
|
toObject(includeInstance?: boolean): LlmTelemetry.AsObject;
|
|
636
646
|
static toObject(includeInstance: boolean, msg: LlmTelemetry): LlmTelemetry.AsObject;
|
|
@@ -701,6 +711,8 @@ export namespace LlmTelemetry {
|
|
|
701
711
|
extraQuery?: google_protobuf_struct_pb.Struct.AsObject,
|
|
702
712
|
extraBody?: google_protobuf_struct_pb.Struct.AsObject,
|
|
703
713
|
ccaiServiceProvider: ondewo_nlu_ccai_project_pb.CcaiServiceProvider,
|
|
714
|
+
llmSafetyAssessment?: LlmSafetyAssessment.AsObject,
|
|
715
|
+
llmRetrievalMetadata?: LlmRetrievalMetadata.AsObject,
|
|
704
716
|
}
|
|
705
717
|
|
|
706
718
|
export enum DefaultHeadersCase {
|
|
@@ -764,6 +776,136 @@ export namespace LlmTelemetry {
|
|
|
764
776
|
}
|
|
765
777
|
}
|
|
766
778
|
|
|
779
|
+
export class LlmSafetyFinding extends jspb.Message {
|
|
780
|
+
getCategory(): string;
|
|
781
|
+
setCategory(value: string): LlmSafetyFinding;
|
|
782
|
+
|
|
783
|
+
getSeverity(): string;
|
|
784
|
+
setSeverity(value: string): LlmSafetyFinding;
|
|
785
|
+
|
|
786
|
+
getMatchedPattern(): string;
|
|
787
|
+
setMatchedPattern(value: string): LlmSafetyFinding;
|
|
788
|
+
|
|
789
|
+
getLocation(): LlmSafetyLocation;
|
|
790
|
+
setLocation(value: LlmSafetyLocation): LlmSafetyFinding;
|
|
791
|
+
|
|
792
|
+
serializeBinary(): Uint8Array;
|
|
793
|
+
toObject(includeInstance?: boolean): LlmSafetyFinding.AsObject;
|
|
794
|
+
static toObject(includeInstance: boolean, msg: LlmSafetyFinding): LlmSafetyFinding.AsObject;
|
|
795
|
+
static serializeBinaryToWriter(message: LlmSafetyFinding, writer: jspb.BinaryWriter): void;
|
|
796
|
+
static deserializeBinary(bytes: Uint8Array): LlmSafetyFinding;
|
|
797
|
+
static deserializeBinaryFromReader(message: LlmSafetyFinding, reader: jspb.BinaryReader): LlmSafetyFinding;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export namespace LlmSafetyFinding {
|
|
801
|
+
export type AsObject = {
|
|
802
|
+
category: string,
|
|
803
|
+
severity: string,
|
|
804
|
+
matchedPattern: string,
|
|
805
|
+
location: LlmSafetyLocation,
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export class LlmSafetyAssessment extends jspb.Message {
|
|
810
|
+
getFlaggedCategoriesList(): Array<string>;
|
|
811
|
+
setFlaggedCategoriesList(value: Array<string>): LlmSafetyAssessment;
|
|
812
|
+
clearFlaggedCategoriesList(): LlmSafetyAssessment;
|
|
813
|
+
addFlaggedCategories(value: string, index?: number): LlmSafetyAssessment;
|
|
814
|
+
|
|
815
|
+
getHasPii(): boolean;
|
|
816
|
+
setHasPii(value: boolean): LlmSafetyAssessment;
|
|
817
|
+
|
|
818
|
+
getHasInjectionAttempt(): boolean;
|
|
819
|
+
setHasInjectionAttempt(value: boolean): LlmSafetyAssessment;
|
|
820
|
+
|
|
821
|
+
getHasJailbreakAttempt(): boolean;
|
|
822
|
+
setHasJailbreakAttempt(value: boolean): LlmSafetyAssessment;
|
|
823
|
+
|
|
824
|
+
getSafetyScore(): number;
|
|
825
|
+
setSafetyScore(value: number): LlmSafetyAssessment;
|
|
826
|
+
|
|
827
|
+
getFindingsList(): Array<LlmSafetyFinding>;
|
|
828
|
+
setFindingsList(value: Array<LlmSafetyFinding>): LlmSafetyAssessment;
|
|
829
|
+
clearFindingsList(): LlmSafetyAssessment;
|
|
830
|
+
addFindings(value?: LlmSafetyFinding, index?: number): LlmSafetyFinding;
|
|
831
|
+
|
|
832
|
+
serializeBinary(): Uint8Array;
|
|
833
|
+
toObject(includeInstance?: boolean): LlmSafetyAssessment.AsObject;
|
|
834
|
+
static toObject(includeInstance: boolean, msg: LlmSafetyAssessment): LlmSafetyAssessment.AsObject;
|
|
835
|
+
static serializeBinaryToWriter(message: LlmSafetyAssessment, writer: jspb.BinaryWriter): void;
|
|
836
|
+
static deserializeBinary(bytes: Uint8Array): LlmSafetyAssessment;
|
|
837
|
+
static deserializeBinaryFromReader(message: LlmSafetyAssessment, reader: jspb.BinaryReader): LlmSafetyAssessment;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export namespace LlmSafetyAssessment {
|
|
841
|
+
export type AsObject = {
|
|
842
|
+
flaggedCategoriesList: Array<string>,
|
|
843
|
+
hasPii: boolean,
|
|
844
|
+
hasInjectionAttempt: boolean,
|
|
845
|
+
hasJailbreakAttempt: boolean,
|
|
846
|
+
safetyScore: number,
|
|
847
|
+
findingsList: Array<LlmSafetyFinding.AsObject>,
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
export class LlmRetrievedChunk extends jspb.Message {
|
|
852
|
+
getDocumentId(): string;
|
|
853
|
+
setDocumentId(value: string): LlmRetrievedChunk;
|
|
854
|
+
|
|
855
|
+
getChunkId(): string;
|
|
856
|
+
setChunkId(value: string): LlmRetrievedChunk;
|
|
857
|
+
|
|
858
|
+
getScore(): number;
|
|
859
|
+
setScore(value: number): LlmRetrievedChunk;
|
|
860
|
+
|
|
861
|
+
getText(): string;
|
|
862
|
+
setText(value: string): LlmRetrievedChunk;
|
|
863
|
+
|
|
864
|
+
getSourceUri(): string;
|
|
865
|
+
setSourceUri(value: string): LlmRetrievedChunk;
|
|
866
|
+
|
|
867
|
+
getRank(): number;
|
|
868
|
+
setRank(value: number): LlmRetrievedChunk;
|
|
869
|
+
|
|
870
|
+
serializeBinary(): Uint8Array;
|
|
871
|
+
toObject(includeInstance?: boolean): LlmRetrievedChunk.AsObject;
|
|
872
|
+
static toObject(includeInstance: boolean, msg: LlmRetrievedChunk): LlmRetrievedChunk.AsObject;
|
|
873
|
+
static serializeBinaryToWriter(message: LlmRetrievedChunk, writer: jspb.BinaryWriter): void;
|
|
874
|
+
static deserializeBinary(bytes: Uint8Array): LlmRetrievedChunk;
|
|
875
|
+
static deserializeBinaryFromReader(message: LlmRetrievedChunk, reader: jspb.BinaryReader): LlmRetrievedChunk;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export namespace LlmRetrievedChunk {
|
|
879
|
+
export type AsObject = {
|
|
880
|
+
documentId: string,
|
|
881
|
+
chunkId: string,
|
|
882
|
+
score: number,
|
|
883
|
+
text: string,
|
|
884
|
+
sourceUri: string,
|
|
885
|
+
rank: number,
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export class LlmRetrievalMetadata extends jspb.Message {
|
|
890
|
+
getChunksList(): Array<LlmRetrievedChunk>;
|
|
891
|
+
setChunksList(value: Array<LlmRetrievedChunk>): LlmRetrievalMetadata;
|
|
892
|
+
clearChunksList(): LlmRetrievalMetadata;
|
|
893
|
+
addChunks(value?: LlmRetrievedChunk, index?: number): LlmRetrievedChunk;
|
|
894
|
+
|
|
895
|
+
serializeBinary(): Uint8Array;
|
|
896
|
+
toObject(includeInstance?: boolean): LlmRetrievalMetadata.AsObject;
|
|
897
|
+
static toObject(includeInstance: boolean, msg: LlmRetrievalMetadata): LlmRetrievalMetadata.AsObject;
|
|
898
|
+
static serializeBinaryToWriter(message: LlmRetrievalMetadata, writer: jspb.BinaryWriter): void;
|
|
899
|
+
static deserializeBinary(bytes: Uint8Array): LlmRetrievalMetadata;
|
|
900
|
+
static deserializeBinaryFromReader(message: LlmRetrievalMetadata, reader: jspb.BinaryReader): LlmRetrievalMetadata;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
export namespace LlmRetrievalMetadata {
|
|
904
|
+
export type AsObject = {
|
|
905
|
+
chunksList: Array<LlmRetrievedChunk.AsObject>,
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
|
|
767
909
|
export class LlmLatencyStats extends jspb.Message {
|
|
768
910
|
getCallCount(): number;
|
|
769
911
|
setCallCount(value: number): LlmLatencyStats;
|
|
@@ -1296,6 +1438,11 @@ export class LlmTelemetryReport extends jspb.Message {
|
|
|
1296
1438
|
getToolCallDurationSecondsTotal(): number;
|
|
1297
1439
|
setToolCallDurationSecondsTotal(value: number): LlmTelemetryReport;
|
|
1298
1440
|
|
|
1441
|
+
getSafetyStats(): LlmSafetyStats | undefined;
|
|
1442
|
+
setSafetyStats(value?: LlmSafetyStats): LlmTelemetryReport;
|
|
1443
|
+
hasSafetyStats(): boolean;
|
|
1444
|
+
clearSafetyStats(): LlmTelemetryReport;
|
|
1445
|
+
|
|
1299
1446
|
serializeBinary(): Uint8Array;
|
|
1300
1447
|
toObject(includeInstance?: boolean): LlmTelemetryReport.AsObject;
|
|
1301
1448
|
static toObject(includeInstance: boolean, msg: LlmTelemetryReport): LlmTelemetryReport.AsObject;
|
|
@@ -1325,6 +1472,65 @@ export namespace LlmTelemetryReport {
|
|
|
1325
1472
|
thinkingDurationSecondsTotal: number,
|
|
1326
1473
|
toolCallTokensTotal: number,
|
|
1327
1474
|
toolCallDurationSecondsTotal: number,
|
|
1475
|
+
safetyStats?: LlmSafetyStats.AsObject,
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export class LlmSafetyCategoryStat extends jspb.Message {
|
|
1480
|
+
getCategory(): string;
|
|
1481
|
+
setCategory(value: string): LlmSafetyCategoryStat;
|
|
1482
|
+
|
|
1483
|
+
getCount(): number;
|
|
1484
|
+
setCount(value: number): LlmSafetyCategoryStat;
|
|
1485
|
+
|
|
1486
|
+
getRate(): number;
|
|
1487
|
+
setRate(value: number): LlmSafetyCategoryStat;
|
|
1488
|
+
|
|
1489
|
+
serializeBinary(): Uint8Array;
|
|
1490
|
+
toObject(includeInstance?: boolean): LlmSafetyCategoryStat.AsObject;
|
|
1491
|
+
static toObject(includeInstance: boolean, msg: LlmSafetyCategoryStat): LlmSafetyCategoryStat.AsObject;
|
|
1492
|
+
static serializeBinaryToWriter(message: LlmSafetyCategoryStat, writer: jspb.BinaryWriter): void;
|
|
1493
|
+
static deserializeBinary(bytes: Uint8Array): LlmSafetyCategoryStat;
|
|
1494
|
+
static deserializeBinaryFromReader(message: LlmSafetyCategoryStat, reader: jspb.BinaryReader): LlmSafetyCategoryStat;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
export namespace LlmSafetyCategoryStat {
|
|
1498
|
+
export type AsObject = {
|
|
1499
|
+
category: string,
|
|
1500
|
+
count: number,
|
|
1501
|
+
rate: number,
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
export class LlmSafetyStats extends jspb.Message {
|
|
1506
|
+
getTotalAssessed(): number;
|
|
1507
|
+
setTotalAssessed(value: number): LlmSafetyStats;
|
|
1508
|
+
|
|
1509
|
+
getFlaggedCount(): number;
|
|
1510
|
+
setFlaggedCount(value: number): LlmSafetyStats;
|
|
1511
|
+
|
|
1512
|
+
getOverallSafetyScore(): number;
|
|
1513
|
+
setOverallSafetyScore(value: number): LlmSafetyStats;
|
|
1514
|
+
|
|
1515
|
+
getCategoryStatsList(): Array<LlmSafetyCategoryStat>;
|
|
1516
|
+
setCategoryStatsList(value: Array<LlmSafetyCategoryStat>): LlmSafetyStats;
|
|
1517
|
+
clearCategoryStatsList(): LlmSafetyStats;
|
|
1518
|
+
addCategoryStats(value?: LlmSafetyCategoryStat, index?: number): LlmSafetyCategoryStat;
|
|
1519
|
+
|
|
1520
|
+
serializeBinary(): Uint8Array;
|
|
1521
|
+
toObject(includeInstance?: boolean): LlmSafetyStats.AsObject;
|
|
1522
|
+
static toObject(includeInstance: boolean, msg: LlmSafetyStats): LlmSafetyStats.AsObject;
|
|
1523
|
+
static serializeBinaryToWriter(message: LlmSafetyStats, writer: jspb.BinaryWriter): void;
|
|
1524
|
+
static deserializeBinary(bytes: Uint8Array): LlmSafetyStats;
|
|
1525
|
+
static deserializeBinaryFromReader(message: LlmSafetyStats, reader: jspb.BinaryReader): LlmSafetyStats;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export namespace LlmSafetyStats {
|
|
1529
|
+
export type AsObject = {
|
|
1530
|
+
totalAssessed: number,
|
|
1531
|
+
flaggedCount: number,
|
|
1532
|
+
overallSafetyScore: number,
|
|
1533
|
+
categoryStatsList: Array<LlmSafetyCategoryStat.AsObject>,
|
|
1328
1534
|
}
|
|
1329
1535
|
}
|
|
1330
1536
|
|
|
@@ -1536,6 +1742,56 @@ export namespace LlmTokenUsageUpdateEvent {
|
|
|
1536
1742
|
}
|
|
1537
1743
|
}
|
|
1538
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
|
+
|
|
1539
1795
|
export class QueryResult extends jspb.Message {
|
|
1540
1796
|
getQueryText(): string;
|
|
1541
1797
|
setQueryText(value: string): QueryResult;
|
|
@@ -1604,6 +1860,11 @@ export class QueryResult extends jspb.Message {
|
|
|
1604
1860
|
hasLlmTelemetryReport(): boolean;
|
|
1605
1861
|
clearLlmTelemetryReport(): QueryResult;
|
|
1606
1862
|
|
|
1863
|
+
getReferencedChunksList(): Array<ReferencedChunk>;
|
|
1864
|
+
setReferencedChunksList(value: Array<ReferencedChunk>): QueryResult;
|
|
1865
|
+
clearReferencedChunksList(): QueryResult;
|
|
1866
|
+
addReferencedChunks(value?: ReferencedChunk, index?: number): ReferencedChunk;
|
|
1867
|
+
|
|
1607
1868
|
serializeBinary(): Uint8Array;
|
|
1608
1869
|
toObject(includeInstance?: boolean): QueryResult.AsObject;
|
|
1609
1870
|
static toObject(includeInstance: boolean, msg: QueryResult): QueryResult.AsObject;
|
|
@@ -1631,6 +1892,7 @@ export namespace QueryResult {
|
|
|
1631
1892
|
languageCode: string,
|
|
1632
1893
|
fileResourcesList: Array<FileResource.AsObject>,
|
|
1633
1894
|
llmTelemetryReport?: LlmTelemetryReport.AsObject,
|
|
1895
|
+
referencedChunksList: Array<ReferencedChunk.AsObject>,
|
|
1634
1896
|
}
|
|
1635
1897
|
}
|
|
1636
1898
|
|
|
@@ -4561,6 +4823,11 @@ export enum ReasoningEffort {
|
|
|
4561
4823
|
REASONING_EFFORT_MEDIUM = 3,
|
|
4562
4824
|
REASONING_EFFORT_HIGH = 4,
|
|
4563
4825
|
}
|
|
4826
|
+
export enum LlmSafetyLocation {
|
|
4827
|
+
LLM_SAFETY_LOCATION_UNSPECIFIED = 0,
|
|
4828
|
+
LLM_SAFETY_LOCATION_INPUT = 1,
|
|
4829
|
+
LLM_SAFETY_LOCATION_OUTPUT = 2,
|
|
4830
|
+
}
|
|
4564
4831
|
export enum AudioEncoding {
|
|
4565
4832
|
AUDIO_ENCODING_UNSPECIFIED = 0,
|
|
4566
4833
|
AUDIO_ENCODING_LINEAR_16 = 1,
|