@ondewo/nlu-client-typescript 6.11.0 → 6.12.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 +211 -0
- package/api/ondewo/nlu/session_pb.js +1726 -2
- package/package.json +1 -1
|
@@ -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
|
|
|
@@ -4561,6 +4767,11 @@ export enum ReasoningEffort {
|
|
|
4561
4767
|
REASONING_EFFORT_MEDIUM = 3,
|
|
4562
4768
|
REASONING_EFFORT_HIGH = 4,
|
|
4563
4769
|
}
|
|
4770
|
+
export enum LlmSafetyLocation {
|
|
4771
|
+
LLM_SAFETY_LOCATION_UNSPECIFIED = 0,
|
|
4772
|
+
LLM_SAFETY_LOCATION_INPUT = 1,
|
|
4773
|
+
LLM_SAFETY_LOCATION_OUTPUT = 2,
|
|
4774
|
+
}
|
|
4564
4775
|
export enum AudioEncoding {
|
|
4565
4776
|
AUDIO_ENCODING_UNSPECIFIED = 0,
|
|
4566
4777
|
AUDIO_ENCODING_LINEAR_16 = 1,
|