@aws-sdk/client-bedrock 3.699.0 → 3.703.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/dist-cjs/index.js +667 -33
- package/dist-es/models/models_0.js +214 -24
- package/dist-es/protocols/Aws_restJson1.js +407 -3
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -1
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +156 -2
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +156 -3
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +10 -2
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1171 -146
- package/dist-types/ts3.4/models/models_0.d.ts +549 -52
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ApplicationType: () => ApplicationType,
|
|
25
26
|
AutomatedEvaluationConfigFilterSensitiveLog: () => AutomatedEvaluationConfigFilterSensitiveLog,
|
|
26
27
|
BatchDeleteEvaluationJobCommand: () => BatchDeleteEvaluationJobCommand,
|
|
27
28
|
BatchDeleteEvaluationJobErrorFilterSensitiveLog: () => BatchDeleteEvaluationJobErrorFilterSensitiveLog,
|
|
@@ -31,6 +32,7 @@ __export(src_exports, {
|
|
|
31
32
|
Bedrock: () => Bedrock,
|
|
32
33
|
BedrockClient: () => BedrockClient,
|
|
33
34
|
BedrockServiceException: () => BedrockServiceException,
|
|
35
|
+
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
34
36
|
CommitmentDuration: () => CommitmentDuration,
|
|
35
37
|
ConflictException: () => ConflictException,
|
|
36
38
|
CreateEvaluationJobCommand: () => CreateEvaluationJobCommand,
|
|
@@ -66,8 +68,14 @@ __export(src_exports, {
|
|
|
66
68
|
EvaluationModelConfig: () => EvaluationModelConfig,
|
|
67
69
|
EvaluationModelConfigFilterSensitiveLog: () => EvaluationModelConfigFilterSensitiveLog,
|
|
68
70
|
EvaluationTaskType: () => EvaluationTaskType,
|
|
71
|
+
EvaluatorModelConfig: () => EvaluatorModelConfig,
|
|
72
|
+
ExternalSourceFilterSensitiveLog: () => ExternalSourceFilterSensitiveLog,
|
|
73
|
+
ExternalSourceType: () => ExternalSourceType,
|
|
74
|
+
ExternalSourcesGenerationConfigurationFilterSensitiveLog: () => ExternalSourcesGenerationConfigurationFilterSensitiveLog,
|
|
75
|
+
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: () => ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
69
76
|
FineTuningJobStatus: () => FineTuningJobStatus,
|
|
70
77
|
FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
|
|
78
|
+
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
71
79
|
GetCustomModelCommand: () => GetCustomModelCommand,
|
|
72
80
|
GetEvaluationJobCommand: () => GetEvaluationJobCommand,
|
|
73
81
|
GetEvaluationJobRequestFilterSensitiveLog: () => GetEvaluationJobRequestFilterSensitiveLog,
|
|
@@ -107,6 +115,11 @@ __export(src_exports, {
|
|
|
107
115
|
InferenceProfileType: () => InferenceProfileType,
|
|
108
116
|
InferenceType: () => InferenceType,
|
|
109
117
|
InternalServerException: () => InternalServerException,
|
|
118
|
+
KnowledgeBaseConfig: () => KnowledgeBaseConfig,
|
|
119
|
+
KnowledgeBaseConfigFilterSensitiveLog: () => KnowledgeBaseConfigFilterSensitiveLog,
|
|
120
|
+
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
121
|
+
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
122
|
+
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: () => KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
110
123
|
ListCustomModelsCommand: () => ListCustomModelsCommand,
|
|
111
124
|
ListEvaluationJobsCommand: () => ListEvaluationJobsCommand,
|
|
112
125
|
ListFoundationModelsCommand: () => ListFoundationModelsCommand,
|
|
@@ -132,10 +145,20 @@ __export(src_exports, {
|
|
|
132
145
|
ModelInvocationJobStatus: () => ModelInvocationJobStatus,
|
|
133
146
|
ModelInvocationJobSummaryFilterSensitiveLog: () => ModelInvocationJobSummaryFilterSensitiveLog,
|
|
134
147
|
ModelModality: () => ModelModality,
|
|
148
|
+
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
135
149
|
ProvisionedModelStatus: () => ProvisionedModelStatus,
|
|
136
150
|
PutModelInvocationLoggingConfigurationCommand: () => PutModelInvocationLoggingConfigurationCommand,
|
|
151
|
+
QueryTransformationType: () => QueryTransformationType,
|
|
152
|
+
RAGConfig: () => RAGConfig,
|
|
153
|
+
RAGConfigFilterSensitiveLog: () => RAGConfigFilterSensitiveLog,
|
|
137
154
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
155
|
+
RetrievalFilter: () => RetrievalFilter,
|
|
156
|
+
RetrievalFilterFilterSensitiveLog: () => RetrievalFilterFilterSensitiveLog,
|
|
157
|
+
RetrieveAndGenerateConfigurationFilterSensitiveLog: () => RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
158
|
+
RetrieveAndGenerateType: () => RetrieveAndGenerateType,
|
|
159
|
+
RetrieveConfigFilterSensitiveLog: () => RetrieveConfigFilterSensitiveLog,
|
|
138
160
|
S3InputFormat: () => S3InputFormat,
|
|
161
|
+
SearchType: () => SearchType,
|
|
139
162
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
140
163
|
SortByProvisionedModels: () => SortByProvisionedModels,
|
|
141
164
|
SortJobsBy: () => SortJobsBy,
|
|
@@ -440,6 +463,10 @@ var _ValidationException = class _ValidationException extends BedrockServiceExce
|
|
|
440
463
|
};
|
|
441
464
|
__name(_ValidationException, "ValidationException");
|
|
442
465
|
var ValidationException = _ValidationException;
|
|
466
|
+
var ApplicationType = {
|
|
467
|
+
MODEL_EVALUATION: "ModelEvaluation",
|
|
468
|
+
RAG_EVALUATION: "RagEvaluation"
|
|
469
|
+
};
|
|
443
470
|
var EvaluationDatasetLocation;
|
|
444
471
|
((EvaluationDatasetLocation3) => {
|
|
445
472
|
EvaluationDatasetLocation3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -455,6 +482,14 @@ var EvaluationTaskType = {
|
|
|
455
482
|
QUESTION_AND_ANSWER: "QuestionAndAnswer",
|
|
456
483
|
SUMMARIZATION: "Summarization"
|
|
457
484
|
};
|
|
485
|
+
var EvaluatorModelConfig;
|
|
486
|
+
((EvaluatorModelConfig3) => {
|
|
487
|
+
EvaluatorModelConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
488
|
+
if (value.bedrockEvaluatorModels !== void 0)
|
|
489
|
+
return visitor.bedrockEvaluatorModels(value.bedrockEvaluatorModels);
|
|
490
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
491
|
+
}, "visit");
|
|
492
|
+
})(EvaluatorModelConfig || (EvaluatorModelConfig = {}));
|
|
458
493
|
var EvaluationConfig;
|
|
459
494
|
((EvaluationConfig3) => {
|
|
460
495
|
EvaluationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -473,14 +508,21 @@ var EvaluationModelConfig;
|
|
|
473
508
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
474
509
|
}, "visit");
|
|
475
510
|
})(EvaluationModelConfig || (EvaluationModelConfig = {}));
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
511
|
+
var ExternalSourceType = {
|
|
512
|
+
BYTE_CONTENT: "BYTE_CONTENT",
|
|
513
|
+
S3: "S3"
|
|
514
|
+
};
|
|
515
|
+
var QueryTransformationType = {
|
|
516
|
+
QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION"
|
|
517
|
+
};
|
|
518
|
+
var SearchType = {
|
|
519
|
+
HYBRID: "HYBRID",
|
|
520
|
+
SEMANTIC: "SEMANTIC"
|
|
521
|
+
};
|
|
522
|
+
var RetrieveAndGenerateType = {
|
|
523
|
+
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
524
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
525
|
+
};
|
|
484
526
|
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
|
|
485
527
|
/**
|
|
486
528
|
* @internal
|
|
@@ -711,6 +753,66 @@ var FineTuningJobStatus = {
|
|
|
711
753
|
STOPPED: "Stopped",
|
|
712
754
|
STOPPING: "Stopping"
|
|
713
755
|
};
|
|
756
|
+
var RetrievalFilter;
|
|
757
|
+
((RetrievalFilter2) => {
|
|
758
|
+
RetrievalFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
759
|
+
if (value.equals !== void 0)
|
|
760
|
+
return visitor.equals(value.equals);
|
|
761
|
+
if (value.notEquals !== void 0)
|
|
762
|
+
return visitor.notEquals(value.notEquals);
|
|
763
|
+
if (value.greaterThan !== void 0)
|
|
764
|
+
return visitor.greaterThan(value.greaterThan);
|
|
765
|
+
if (value.greaterThanOrEquals !== void 0)
|
|
766
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
767
|
+
if (value.lessThan !== void 0)
|
|
768
|
+
return visitor.lessThan(value.lessThan);
|
|
769
|
+
if (value.lessThanOrEquals !== void 0)
|
|
770
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
771
|
+
if (value.in !== void 0)
|
|
772
|
+
return visitor.in(value.in);
|
|
773
|
+
if (value.notIn !== void 0)
|
|
774
|
+
return visitor.notIn(value.notIn);
|
|
775
|
+
if (value.startsWith !== void 0)
|
|
776
|
+
return visitor.startsWith(value.startsWith);
|
|
777
|
+
if (value.listContains !== void 0)
|
|
778
|
+
return visitor.listContains(value.listContains);
|
|
779
|
+
if (value.stringContains !== void 0)
|
|
780
|
+
return visitor.stringContains(value.stringContains);
|
|
781
|
+
if (value.andAll !== void 0)
|
|
782
|
+
return visitor.andAll(value.andAll);
|
|
783
|
+
if (value.orAll !== void 0)
|
|
784
|
+
return visitor.orAll(value.orAll);
|
|
785
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
786
|
+
}, "visit");
|
|
787
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
788
|
+
var KnowledgeBaseConfig;
|
|
789
|
+
((KnowledgeBaseConfig2) => {
|
|
790
|
+
KnowledgeBaseConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
791
|
+
if (value.retrieveConfig !== void 0)
|
|
792
|
+
return visitor.retrieveConfig(value.retrieveConfig);
|
|
793
|
+
if (value.retrieveAndGenerateConfig !== void 0)
|
|
794
|
+
return visitor.retrieveAndGenerateConfig(value.retrieveAndGenerateConfig);
|
|
795
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
796
|
+
}, "visit");
|
|
797
|
+
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
798
|
+
var RAGConfig;
|
|
799
|
+
((RAGConfig2) => {
|
|
800
|
+
RAGConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
801
|
+
if (value.knowledgeBaseConfig !== void 0)
|
|
802
|
+
return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
803
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
804
|
+
}, "visit");
|
|
805
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
806
|
+
var EvaluationInferenceConfig;
|
|
807
|
+
((EvaluationInferenceConfig2) => {
|
|
808
|
+
EvaluationInferenceConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
809
|
+
if (value.models !== void 0)
|
|
810
|
+
return visitor.models(value.models);
|
|
811
|
+
if (value.ragConfigs !== void 0)
|
|
812
|
+
return visitor.ragConfigs(value.ragConfigs);
|
|
813
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
814
|
+
}, "visit");
|
|
815
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
714
816
|
var BatchDeleteEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
715
817
|
...obj,
|
|
716
818
|
...obj.jobIdentifiers && { jobIdentifiers: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -744,7 +846,8 @@ var AutomatedEvaluationConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
744
846
|
...obj,
|
|
745
847
|
...obj.datasetMetricConfigs && {
|
|
746
848
|
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item))
|
|
747
|
-
}
|
|
849
|
+
},
|
|
850
|
+
...obj.evaluatorModelConfig && { evaluatorModelConfig: obj.evaluatorModelConfig }
|
|
748
851
|
}), "AutomatedEvaluationConfigFilterSensitiveLog");
|
|
749
852
|
var HumanEvaluationCustomMetricFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
750
853
|
...obj,
|
|
@@ -785,28 +888,38 @@ var EvaluationModelConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
785
888
|
if (obj.$unknown !== void 0)
|
|
786
889
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
787
890
|
}, "EvaluationModelConfigFilterSensitiveLog");
|
|
788
|
-
var
|
|
789
|
-
if (obj.models !== void 0)
|
|
790
|
-
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
791
|
-
if (obj.$unknown !== void 0)
|
|
792
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
793
|
-
}, "EvaluationInferenceConfigFilterSensitiveLog");
|
|
794
|
-
var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
891
|
+
var PromptTemplateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
795
892
|
...obj,
|
|
796
|
-
...obj.
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
893
|
+
...obj.textPromptTemplate && { textPromptTemplate: import_smithy_client.SENSITIVE_STRING }
|
|
894
|
+
}), "PromptTemplateFilterSensitiveLog");
|
|
895
|
+
var ExternalSourcesGenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
896
|
+
...obj,
|
|
897
|
+
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
898
|
+
}), "ExternalSourcesGenerationConfigurationFilterSensitiveLog");
|
|
899
|
+
var ByteContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
900
|
+
...obj,
|
|
901
|
+
...obj.identifier && { identifier: import_smithy_client.SENSITIVE_STRING },
|
|
902
|
+
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
903
|
+
}), "ByteContentDocFilterSensitiveLog");
|
|
904
|
+
var ExternalSourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
905
|
+
...obj,
|
|
906
|
+
...obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }
|
|
907
|
+
}), "ExternalSourceFilterSensitiveLog");
|
|
908
|
+
var ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
909
|
+
...obj,
|
|
910
|
+
...obj.sources && { sources: obj.sources.map((item) => ExternalSourceFilterSensitiveLog(item)) },
|
|
911
|
+
...obj.generationConfiguration && {
|
|
912
|
+
generationConfiguration: ExternalSourcesGenerationConfigurationFilterSensitiveLog(obj.generationConfiguration)
|
|
913
|
+
}
|
|
914
|
+
}), "ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
915
|
+
var GenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
916
|
+
...obj,
|
|
917
|
+
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
918
|
+
}), "GenerationConfigurationFilterSensitiveLog");
|
|
800
919
|
var GetEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
801
920
|
...obj,
|
|
802
921
|
...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
|
|
803
922
|
}), "GetEvaluationJobRequestFilterSensitiveLog");
|
|
804
|
-
var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
805
|
-
...obj,
|
|
806
|
-
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
807
|
-
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
808
|
-
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
809
|
-
}), "GetEvaluationJobResponseFilterSensitiveLog");
|
|
810
923
|
var StopEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
811
924
|
...obj,
|
|
812
925
|
...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -915,6 +1028,112 @@ var ListModelInvocationJobsResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
915
1028
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item))
|
|
916
1029
|
}
|
|
917
1030
|
}), "ListModelInvocationJobsResponseFilterSensitiveLog");
|
|
1031
|
+
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1032
|
+
if (obj.equals !== void 0)
|
|
1033
|
+
return { equals: obj.equals };
|
|
1034
|
+
if (obj.notEquals !== void 0)
|
|
1035
|
+
return { notEquals: obj.notEquals };
|
|
1036
|
+
if (obj.greaterThan !== void 0)
|
|
1037
|
+
return { greaterThan: obj.greaterThan };
|
|
1038
|
+
if (obj.greaterThanOrEquals !== void 0)
|
|
1039
|
+
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
1040
|
+
if (obj.lessThan !== void 0)
|
|
1041
|
+
return { lessThan: obj.lessThan };
|
|
1042
|
+
if (obj.lessThanOrEquals !== void 0)
|
|
1043
|
+
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
1044
|
+
if (obj.in !== void 0)
|
|
1045
|
+
return { in: obj.in };
|
|
1046
|
+
if (obj.notIn !== void 0)
|
|
1047
|
+
return { notIn: obj.notIn };
|
|
1048
|
+
if (obj.startsWith !== void 0)
|
|
1049
|
+
return { startsWith: obj.startsWith };
|
|
1050
|
+
if (obj.listContains !== void 0)
|
|
1051
|
+
return { listContains: obj.listContains };
|
|
1052
|
+
if (obj.stringContains !== void 0)
|
|
1053
|
+
return { stringContains: obj.stringContains };
|
|
1054
|
+
if (obj.andAll !== void 0)
|
|
1055
|
+
return { andAll: import_smithy_client.SENSITIVE_STRING };
|
|
1056
|
+
if (obj.orAll !== void 0)
|
|
1057
|
+
return { orAll: import_smithy_client.SENSITIVE_STRING };
|
|
1058
|
+
if (obj.$unknown !== void 0)
|
|
1059
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1060
|
+
}, "RetrievalFilterFilterSensitiveLog");
|
|
1061
|
+
var KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1062
|
+
...obj,
|
|
1063
|
+
...obj.filter && { filter: import_smithy_client.SENSITIVE_STRING }
|
|
1064
|
+
}), "KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog");
|
|
1065
|
+
var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1066
|
+
...obj,
|
|
1067
|
+
...obj.vectorSearchConfiguration && {
|
|
1068
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
|
|
1069
|
+
}
|
|
1070
|
+
}), "KnowledgeBaseRetrievalConfigurationFilterSensitiveLog");
|
|
1071
|
+
var KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1072
|
+
...obj,
|
|
1073
|
+
...obj.retrievalConfiguration && {
|
|
1074
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration)
|
|
1075
|
+
},
|
|
1076
|
+
...obj.generationConfiguration && {
|
|
1077
|
+
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration)
|
|
1078
|
+
}
|
|
1079
|
+
}), "KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1080
|
+
var RetrieveConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1081
|
+
...obj,
|
|
1082
|
+
...obj.knowledgeBaseRetrievalConfiguration && {
|
|
1083
|
+
knowledgeBaseRetrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(
|
|
1084
|
+
obj.knowledgeBaseRetrievalConfiguration
|
|
1085
|
+
)
|
|
1086
|
+
}
|
|
1087
|
+
}), "RetrieveConfigFilterSensitiveLog");
|
|
1088
|
+
var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1089
|
+
...obj,
|
|
1090
|
+
...obj.knowledgeBaseConfiguration && {
|
|
1091
|
+
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(
|
|
1092
|
+
obj.knowledgeBaseConfiguration
|
|
1093
|
+
)
|
|
1094
|
+
},
|
|
1095
|
+
...obj.externalSourcesConfiguration && {
|
|
1096
|
+
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(
|
|
1097
|
+
obj.externalSourcesConfiguration
|
|
1098
|
+
)
|
|
1099
|
+
}
|
|
1100
|
+
}), "RetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1101
|
+
var KnowledgeBaseConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1102
|
+
if (obj.retrieveConfig !== void 0)
|
|
1103
|
+
return { retrieveConfig: RetrieveConfigFilterSensitiveLog(obj.retrieveConfig) };
|
|
1104
|
+
if (obj.retrieveAndGenerateConfig !== void 0)
|
|
1105
|
+
return {
|
|
1106
|
+
retrieveAndGenerateConfig: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfig)
|
|
1107
|
+
};
|
|
1108
|
+
if (obj.$unknown !== void 0)
|
|
1109
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1110
|
+
}, "KnowledgeBaseConfigFilterSensitiveLog");
|
|
1111
|
+
var RAGConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1112
|
+
if (obj.knowledgeBaseConfig !== void 0)
|
|
1113
|
+
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
1114
|
+
if (obj.$unknown !== void 0)
|
|
1115
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1116
|
+
}, "RAGConfigFilterSensitiveLog");
|
|
1117
|
+
var EvaluationInferenceConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1118
|
+
if (obj.models !== void 0)
|
|
1119
|
+
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
1120
|
+
if (obj.ragConfigs !== void 0)
|
|
1121
|
+
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
1122
|
+
if (obj.$unknown !== void 0)
|
|
1123
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1124
|
+
}, "EvaluationInferenceConfigFilterSensitiveLog");
|
|
1125
|
+
var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1126
|
+
...obj,
|
|
1127
|
+
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
1128
|
+
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1129
|
+
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1130
|
+
}), "CreateEvaluationJobRequestFilterSensitiveLog");
|
|
1131
|
+
var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1132
|
+
...obj,
|
|
1133
|
+
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
1134
|
+
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1135
|
+
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1136
|
+
}), "GetEvaluationJobResponseFilterSensitiveLog");
|
|
918
1137
|
|
|
919
1138
|
// src/protocols/Aws_restJson1.ts
|
|
920
1139
|
var import_core2 = require("@aws-sdk/core");
|
|
@@ -945,10 +1164,11 @@ var se_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
945
1164
|
let body;
|
|
946
1165
|
body = JSON.stringify(
|
|
947
1166
|
(0, import_smithy_client.take)(input, {
|
|
1167
|
+
applicationType: [],
|
|
948
1168
|
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
949
1169
|
customerEncryptionKeyId: [],
|
|
950
1170
|
evaluationConfig: (_) => (0, import_smithy_client._json)(_),
|
|
951
|
-
inferenceConfig: (_) => (
|
|
1171
|
+
inferenceConfig: (_) => se_EvaluationInferenceConfig(_, context),
|
|
952
1172
|
jobDescription: [],
|
|
953
1173
|
jobName: [],
|
|
954
1174
|
jobTags: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -1328,6 +1548,7 @@ var se_ListEvaluationJobsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1328
1548
|
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1329
1549
|
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1330
1550
|
[_sE]: [, input[_sE]],
|
|
1551
|
+
[_aTE]: [, input[_aTE]],
|
|
1331
1552
|
[_nC]: [, input[_nC]],
|
|
1332
1553
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1333
1554
|
[_nT]: [, input[_nT]],
|
|
@@ -1861,11 +2082,12 @@ var de_GetEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1861
2082
|
});
|
|
1862
2083
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1863
2084
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2085
|
+
applicationType: import_smithy_client.expectString,
|
|
1864
2086
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1865
2087
|
customerEncryptionKeyId: import_smithy_client.expectString,
|
|
1866
2088
|
evaluationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1867
2089
|
failureMessages: import_smithy_client._json,
|
|
1868
|
-
inferenceConfig: (_) => (
|
|
2090
|
+
inferenceConfig: (_) => de_EvaluationInferenceConfig((0, import_core2.awsExpectUnion)(_), context),
|
|
1869
2091
|
jobArn: import_smithy_client.expectString,
|
|
1870
2092
|
jobDescription: import_smithy_client.expectString,
|
|
1871
2093
|
jobName: import_smithy_client.expectString,
|
|
@@ -2530,6 +2752,76 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
2530
2752
|
});
|
|
2531
2753
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2532
2754
|
}, "de_ValidationExceptionRes");
|
|
2755
|
+
var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) => {
|
|
2756
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2757
|
+
if (value === null) {
|
|
2758
|
+
return acc;
|
|
2759
|
+
}
|
|
2760
|
+
acc[key] = se_AdditionalModelRequestFieldsValue(value, context);
|
|
2761
|
+
return acc;
|
|
2762
|
+
}, {});
|
|
2763
|
+
}, "se_AdditionalModelRequestFields");
|
|
2764
|
+
var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
|
|
2765
|
+
return input;
|
|
2766
|
+
}, "se_AdditionalModelRequestFieldsValue");
|
|
2767
|
+
var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
|
|
2768
|
+
return (0, import_smithy_client.take)(input, {
|
|
2769
|
+
contentType: [],
|
|
2770
|
+
data: context.base64Encoder,
|
|
2771
|
+
identifier: []
|
|
2772
|
+
});
|
|
2773
|
+
}, "se_ByteContentDoc");
|
|
2774
|
+
var se_EvaluationInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2775
|
+
return EvaluationInferenceConfig.visit(input, {
|
|
2776
|
+
models: (value) => ({ models: (0, import_smithy_client._json)(value) }),
|
|
2777
|
+
ragConfigs: (value) => ({ ragConfigs: se_RagConfigs(value, context) }),
|
|
2778
|
+
_: (name, value) => ({ name: value })
|
|
2779
|
+
});
|
|
2780
|
+
}, "se_EvaluationInferenceConfig");
|
|
2781
|
+
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
2782
|
+
return (0, import_smithy_client.take)(input, {
|
|
2783
|
+
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
2784
|
+
s3Location: import_smithy_client._json,
|
|
2785
|
+
sourceType: []
|
|
2786
|
+
});
|
|
2787
|
+
}, "se_ExternalSource");
|
|
2788
|
+
var se_ExternalSources = /* @__PURE__ */ __name((input, context) => {
|
|
2789
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2790
|
+
return se_ExternalSource(entry, context);
|
|
2791
|
+
});
|
|
2792
|
+
}, "se_ExternalSources");
|
|
2793
|
+
var se_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2794
|
+
return (0, import_smithy_client.take)(input, {
|
|
2795
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
2796
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
2797
|
+
kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
|
|
2798
|
+
promptTemplate: import_smithy_client._json
|
|
2799
|
+
});
|
|
2800
|
+
}, "se_ExternalSourcesGenerationConfiguration");
|
|
2801
|
+
var se_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2802
|
+
return (0, import_smithy_client.take)(input, {
|
|
2803
|
+
generationConfiguration: (_) => se_ExternalSourcesGenerationConfiguration(_, context),
|
|
2804
|
+
modelArn: [],
|
|
2805
|
+
sources: (_) => se_ExternalSources(_, context)
|
|
2806
|
+
});
|
|
2807
|
+
}, "se_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
2808
|
+
var se_FilterAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
2809
|
+
return (0, import_smithy_client.take)(input, {
|
|
2810
|
+
key: [],
|
|
2811
|
+
value: (_) => se_FilterValue(_, context)
|
|
2812
|
+
});
|
|
2813
|
+
}, "se_FilterAttribute");
|
|
2814
|
+
var se_FilterValue = /* @__PURE__ */ __name((input, context) => {
|
|
2815
|
+
return input;
|
|
2816
|
+
}, "se_FilterValue");
|
|
2817
|
+
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2818
|
+
return (0, import_smithy_client.take)(input, {
|
|
2819
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
2820
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
2821
|
+
kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
|
|
2822
|
+
promptTemplate: import_smithy_client._json
|
|
2823
|
+
});
|
|
2824
|
+
}, "se_GenerationConfiguration");
|
|
2533
2825
|
var se_GuardrailContextualGroundingFilterConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2534
2826
|
return (0, import_smithy_client.take)(input, {
|
|
2535
2827
|
threshold: import_smithy_client.serializeFloat,
|
|
@@ -2546,6 +2838,115 @@ var se_GuardrailContextualGroundingPolicyConfig = /* @__PURE__ */ __name((input,
|
|
|
2546
2838
|
filtersConfig: (_) => se_GuardrailContextualGroundingFiltersConfig(_, context)
|
|
2547
2839
|
});
|
|
2548
2840
|
}, "se_GuardrailContextualGroundingPolicyConfig");
|
|
2841
|
+
var se_KbInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2842
|
+
return (0, import_smithy_client.take)(input, {
|
|
2843
|
+
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
2844
|
+
});
|
|
2845
|
+
}, "se_KbInferenceConfig");
|
|
2846
|
+
var se_KnowledgeBaseConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2847
|
+
return KnowledgeBaseConfig.visit(input, {
|
|
2848
|
+
retrieveAndGenerateConfig: (value) => ({
|
|
2849
|
+
retrieveAndGenerateConfig: se_RetrieveAndGenerateConfiguration(value, context)
|
|
2850
|
+
}),
|
|
2851
|
+
retrieveConfig: (value) => ({ retrieveConfig: se_RetrieveConfig(value, context) }),
|
|
2852
|
+
_: (name, value) => ({ name: value })
|
|
2853
|
+
});
|
|
2854
|
+
}, "se_KnowledgeBaseConfig");
|
|
2855
|
+
var se_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2856
|
+
return (0, import_smithy_client.take)(input, {
|
|
2857
|
+
vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
2858
|
+
});
|
|
2859
|
+
}, "se_KnowledgeBaseRetrievalConfiguration");
|
|
2860
|
+
var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2861
|
+
return (0, import_smithy_client.take)(input, {
|
|
2862
|
+
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
2863
|
+
knowledgeBaseId: [],
|
|
2864
|
+
modelArn: [],
|
|
2865
|
+
orchestrationConfiguration: import_smithy_client._json,
|
|
2866
|
+
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2867
|
+
});
|
|
2868
|
+
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
2869
|
+
var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2870
|
+
return (0, import_smithy_client.take)(input, {
|
|
2871
|
+
filter: (_) => se_RetrievalFilter(_, context),
|
|
2872
|
+
numberOfResults: [],
|
|
2873
|
+
overrideSearchType: []
|
|
2874
|
+
});
|
|
2875
|
+
}, "se_KnowledgeBaseVectorSearchConfiguration");
|
|
2876
|
+
var se_RAGConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2877
|
+
return RAGConfig.visit(input, {
|
|
2878
|
+
knowledgeBaseConfig: (value) => ({ knowledgeBaseConfig: se_KnowledgeBaseConfig(value, context) }),
|
|
2879
|
+
_: (name, value) => ({ name: value })
|
|
2880
|
+
});
|
|
2881
|
+
}, "se_RAGConfig");
|
|
2882
|
+
var se_RagConfigs = /* @__PURE__ */ __name((input, context) => {
|
|
2883
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2884
|
+
return se_RAGConfig(entry, context);
|
|
2885
|
+
});
|
|
2886
|
+
}, "se_RagConfigs");
|
|
2887
|
+
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2888
|
+
return RetrievalFilter.visit(input, {
|
|
2889
|
+
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
2890
|
+
equals: (value) => ({ equals: se_FilterAttribute(value, context) }),
|
|
2891
|
+
greaterThan: (value) => ({ greaterThan: se_FilterAttribute(value, context) }),
|
|
2892
|
+
greaterThanOrEquals: (value) => ({ greaterThanOrEquals: se_FilterAttribute(value, context) }),
|
|
2893
|
+
in: (value) => ({ in: se_FilterAttribute(value, context) }),
|
|
2894
|
+
lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
|
|
2895
|
+
lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
|
|
2896
|
+
listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
|
|
2897
|
+
notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
|
|
2898
|
+
notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
|
|
2899
|
+
orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
|
|
2900
|
+
startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
|
|
2901
|
+
stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
|
|
2902
|
+
_: (name, value) => ({ name: value })
|
|
2903
|
+
});
|
|
2904
|
+
}, "se_RetrievalFilter");
|
|
2905
|
+
var se_RetrievalFilterList = /* @__PURE__ */ __name((input, context) => {
|
|
2906
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2907
|
+
return se_RetrievalFilter(entry, context);
|
|
2908
|
+
});
|
|
2909
|
+
}, "se_RetrievalFilterList");
|
|
2910
|
+
var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2911
|
+
return (0, import_smithy_client.take)(input, {
|
|
2912
|
+
externalSourcesConfiguration: (_) => se_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
|
|
2913
|
+
knowledgeBaseConfiguration: (_) => se_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
|
|
2914
|
+
type: []
|
|
2915
|
+
});
|
|
2916
|
+
}, "se_RetrieveAndGenerateConfiguration");
|
|
2917
|
+
var se_RetrieveConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2918
|
+
return (0, import_smithy_client.take)(input, {
|
|
2919
|
+
knowledgeBaseId: [],
|
|
2920
|
+
knowledgeBaseRetrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2921
|
+
});
|
|
2922
|
+
}, "se_RetrieveConfig");
|
|
2923
|
+
var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2924
|
+
return (0, import_smithy_client.take)(input, {
|
|
2925
|
+
maxTokens: [],
|
|
2926
|
+
stopSequences: import_smithy_client._json,
|
|
2927
|
+
temperature: import_smithy_client.serializeFloat,
|
|
2928
|
+
topP: import_smithy_client.serializeFloat
|
|
2929
|
+
});
|
|
2930
|
+
}, "se_TextInferenceConfig");
|
|
2931
|
+
var de_AdditionalModelRequestFields = /* @__PURE__ */ __name((output, context) => {
|
|
2932
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2933
|
+
if (value === null) {
|
|
2934
|
+
return acc;
|
|
2935
|
+
}
|
|
2936
|
+
acc[key] = de_AdditionalModelRequestFieldsValue(value, context);
|
|
2937
|
+
return acc;
|
|
2938
|
+
}, {});
|
|
2939
|
+
}, "de_AdditionalModelRequestFields");
|
|
2940
|
+
var de_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((output, context) => {
|
|
2941
|
+
return output;
|
|
2942
|
+
}, "de_AdditionalModelRequestFieldsValue");
|
|
2943
|
+
var de_ByteContentDoc = /* @__PURE__ */ __name((output, context) => {
|
|
2944
|
+
return (0, import_smithy_client.take)(output, {
|
|
2945
|
+
contentType: import_smithy_client.expectString,
|
|
2946
|
+
data: context.base64Decoder,
|
|
2947
|
+
identifier: import_smithy_client.expectString
|
|
2948
|
+
});
|
|
2949
|
+
}, "de_ByteContentDoc");
|
|
2549
2950
|
var de_CustomModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2550
2951
|
return (0, import_smithy_client.take)(output, {
|
|
2551
2952
|
baseModelArn: import_smithy_client.expectString,
|
|
@@ -2563,6 +2964,19 @@ var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2563
2964
|
});
|
|
2564
2965
|
return retVal;
|
|
2565
2966
|
}, "de_CustomModelSummaryList");
|
|
2967
|
+
var de_EvaluationInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
2968
|
+
if (output.models != null) {
|
|
2969
|
+
return {
|
|
2970
|
+
models: (0, import_smithy_client._json)(output.models)
|
|
2971
|
+
};
|
|
2972
|
+
}
|
|
2973
|
+
if (output.ragConfigs != null) {
|
|
2974
|
+
return {
|
|
2975
|
+
ragConfigs: de_RagConfigs(output.ragConfigs, context)
|
|
2976
|
+
};
|
|
2977
|
+
}
|
|
2978
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2979
|
+
}, "de_EvaluationInferenceConfig");
|
|
2566
2980
|
var de_EvaluationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2567
2981
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2568
2982
|
return de_EvaluationSummary(entry, context);
|
|
@@ -2571,15 +2985,63 @@ var de_EvaluationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
|
2571
2985
|
}, "de_EvaluationSummaries");
|
|
2572
2986
|
var de_EvaluationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2573
2987
|
return (0, import_smithy_client.take)(output, {
|
|
2988
|
+
applicationType: import_smithy_client.expectString,
|
|
2574
2989
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2575
2990
|
evaluationTaskTypes: import_smithy_client._json,
|
|
2991
|
+
evaluatorModelIdentifiers: import_smithy_client._json,
|
|
2576
2992
|
jobArn: import_smithy_client.expectString,
|
|
2577
2993
|
jobName: import_smithy_client.expectString,
|
|
2578
2994
|
jobType: import_smithy_client.expectString,
|
|
2579
2995
|
modelIdentifiers: import_smithy_client._json,
|
|
2996
|
+
ragIdentifiers: import_smithy_client._json,
|
|
2580
2997
|
status: import_smithy_client.expectString
|
|
2581
2998
|
});
|
|
2582
2999
|
}, "de_EvaluationSummary");
|
|
3000
|
+
var de_ExternalSource = /* @__PURE__ */ __name((output, context) => {
|
|
3001
|
+
return (0, import_smithy_client.take)(output, {
|
|
3002
|
+
byteContent: (_) => de_ByteContentDoc(_, context),
|
|
3003
|
+
s3Location: import_smithy_client._json,
|
|
3004
|
+
sourceType: import_smithy_client.expectString
|
|
3005
|
+
});
|
|
3006
|
+
}, "de_ExternalSource");
|
|
3007
|
+
var de_ExternalSources = /* @__PURE__ */ __name((output, context) => {
|
|
3008
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3009
|
+
return de_ExternalSource(entry, context);
|
|
3010
|
+
});
|
|
3011
|
+
return retVal;
|
|
3012
|
+
}, "de_ExternalSources");
|
|
3013
|
+
var de_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3014
|
+
return (0, import_smithy_client.take)(output, {
|
|
3015
|
+
additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
|
|
3016
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
3017
|
+
kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
|
|
3018
|
+
promptTemplate: import_smithy_client._json
|
|
3019
|
+
});
|
|
3020
|
+
}, "de_ExternalSourcesGenerationConfiguration");
|
|
3021
|
+
var de_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3022
|
+
return (0, import_smithy_client.take)(output, {
|
|
3023
|
+
generationConfiguration: (_) => de_ExternalSourcesGenerationConfiguration(_, context),
|
|
3024
|
+
modelArn: import_smithy_client.expectString,
|
|
3025
|
+
sources: (_) => de_ExternalSources(_, context)
|
|
3026
|
+
});
|
|
3027
|
+
}, "de_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
3028
|
+
var de_FilterAttribute = /* @__PURE__ */ __name((output, context) => {
|
|
3029
|
+
return (0, import_smithy_client.take)(output, {
|
|
3030
|
+
key: import_smithy_client.expectString,
|
|
3031
|
+
value: (_) => de_FilterValue(_, context)
|
|
3032
|
+
});
|
|
3033
|
+
}, "de_FilterAttribute");
|
|
3034
|
+
var de_FilterValue = /* @__PURE__ */ __name((output, context) => {
|
|
3035
|
+
return output;
|
|
3036
|
+
}, "de_FilterValue");
|
|
3037
|
+
var de_GenerationConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3038
|
+
return (0, import_smithy_client.take)(output, {
|
|
3039
|
+
additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
|
|
3040
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
3041
|
+
kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
|
|
3042
|
+
promptTemplate: import_smithy_client._json
|
|
3043
|
+
});
|
|
3044
|
+
}, "de_GenerationConfiguration");
|
|
2583
3045
|
var de_GuardrailContextualGroundingFilter = /* @__PURE__ */ __name((output, context) => {
|
|
2584
3046
|
return (0, import_smithy_client.take)(output, {
|
|
2585
3047
|
threshold: import_smithy_client.limitedParseDouble,
|
|
@@ -2649,6 +3111,45 @@ var de_InferenceProfileSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2649
3111
|
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2650
3112
|
});
|
|
2651
3113
|
}, "de_InferenceProfileSummary");
|
|
3114
|
+
var de_KbInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3115
|
+
return (0, import_smithy_client.take)(output, {
|
|
3116
|
+
textInferenceConfig: (_) => de_TextInferenceConfig(_, context)
|
|
3117
|
+
});
|
|
3118
|
+
}, "de_KbInferenceConfig");
|
|
3119
|
+
var de_KnowledgeBaseConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3120
|
+
if (output.retrieveAndGenerateConfig != null) {
|
|
3121
|
+
return {
|
|
3122
|
+
retrieveAndGenerateConfig: de_RetrieveAndGenerateConfiguration(output.retrieveAndGenerateConfig, context)
|
|
3123
|
+
};
|
|
3124
|
+
}
|
|
3125
|
+
if (output.retrieveConfig != null) {
|
|
3126
|
+
return {
|
|
3127
|
+
retrieveConfig: de_RetrieveConfig(output.retrieveConfig, context)
|
|
3128
|
+
};
|
|
3129
|
+
}
|
|
3130
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3131
|
+
}, "de_KnowledgeBaseConfig");
|
|
3132
|
+
var de_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3133
|
+
return (0, import_smithy_client.take)(output, {
|
|
3134
|
+
vectorSearchConfiguration: (_) => de_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
3135
|
+
});
|
|
3136
|
+
}, "de_KnowledgeBaseRetrievalConfiguration");
|
|
3137
|
+
var de_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3138
|
+
return (0, import_smithy_client.take)(output, {
|
|
3139
|
+
generationConfiguration: (_) => de_GenerationConfiguration(_, context),
|
|
3140
|
+
knowledgeBaseId: import_smithy_client.expectString,
|
|
3141
|
+
modelArn: import_smithy_client.expectString,
|
|
3142
|
+
orchestrationConfiguration: import_smithy_client._json,
|
|
3143
|
+
retrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3144
|
+
});
|
|
3145
|
+
}, "de_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
3146
|
+
var de_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3147
|
+
return (0, import_smithy_client.take)(output, {
|
|
3148
|
+
filter: (_) => de_RetrievalFilter((0, import_core2.awsExpectUnion)(_), context),
|
|
3149
|
+
numberOfResults: import_smithy_client.expectInt32,
|
|
3150
|
+
overrideSearchType: import_smithy_client.expectString
|
|
3151
|
+
});
|
|
3152
|
+
}, "de_KnowledgeBaseVectorSearchConfiguration");
|
|
2652
3153
|
var de_ModelCopyJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2653
3154
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2654
3155
|
return de_ModelCopyJobSummary(entry, context);
|
|
@@ -2755,6 +3256,115 @@ var de_ProvisionedModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2755
3256
|
status: import_smithy_client.expectString
|
|
2756
3257
|
});
|
|
2757
3258
|
}, "de_ProvisionedModelSummary");
|
|
3259
|
+
var de_RAGConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3260
|
+
if (output.knowledgeBaseConfig != null) {
|
|
3261
|
+
return {
|
|
3262
|
+
knowledgeBaseConfig: de_KnowledgeBaseConfig((0, import_core2.awsExpectUnion)(output.knowledgeBaseConfig), context)
|
|
3263
|
+
};
|
|
3264
|
+
}
|
|
3265
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3266
|
+
}, "de_RAGConfig");
|
|
3267
|
+
var de_RagConfigs = /* @__PURE__ */ __name((output, context) => {
|
|
3268
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3269
|
+
return de_RAGConfig((0, import_core2.awsExpectUnion)(entry), context);
|
|
3270
|
+
});
|
|
3271
|
+
return retVal;
|
|
3272
|
+
}, "de_RagConfigs");
|
|
3273
|
+
var de_RetrievalFilter = /* @__PURE__ */ __name((output, context) => {
|
|
3274
|
+
if (output.andAll != null) {
|
|
3275
|
+
return {
|
|
3276
|
+
andAll: de_RetrievalFilterList(output.andAll, context)
|
|
3277
|
+
};
|
|
3278
|
+
}
|
|
3279
|
+
if (output.equals != null) {
|
|
3280
|
+
return {
|
|
3281
|
+
equals: de_FilterAttribute(output.equals, context)
|
|
3282
|
+
};
|
|
3283
|
+
}
|
|
3284
|
+
if (output.greaterThan != null) {
|
|
3285
|
+
return {
|
|
3286
|
+
greaterThan: de_FilterAttribute(output.greaterThan, context)
|
|
3287
|
+
};
|
|
3288
|
+
}
|
|
3289
|
+
if (output.greaterThanOrEquals != null) {
|
|
3290
|
+
return {
|
|
3291
|
+
greaterThanOrEquals: de_FilterAttribute(output.greaterThanOrEquals, context)
|
|
3292
|
+
};
|
|
3293
|
+
}
|
|
3294
|
+
if (output.in != null) {
|
|
3295
|
+
return {
|
|
3296
|
+
in: de_FilterAttribute(output.in, context)
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
if (output.lessThan != null) {
|
|
3300
|
+
return {
|
|
3301
|
+
lessThan: de_FilterAttribute(output.lessThan, context)
|
|
3302
|
+
};
|
|
3303
|
+
}
|
|
3304
|
+
if (output.lessThanOrEquals != null) {
|
|
3305
|
+
return {
|
|
3306
|
+
lessThanOrEquals: de_FilterAttribute(output.lessThanOrEquals, context)
|
|
3307
|
+
};
|
|
3308
|
+
}
|
|
3309
|
+
if (output.listContains != null) {
|
|
3310
|
+
return {
|
|
3311
|
+
listContains: de_FilterAttribute(output.listContains, context)
|
|
3312
|
+
};
|
|
3313
|
+
}
|
|
3314
|
+
if (output.notEquals != null) {
|
|
3315
|
+
return {
|
|
3316
|
+
notEquals: de_FilterAttribute(output.notEquals, context)
|
|
3317
|
+
};
|
|
3318
|
+
}
|
|
3319
|
+
if (output.notIn != null) {
|
|
3320
|
+
return {
|
|
3321
|
+
notIn: de_FilterAttribute(output.notIn, context)
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
if (output.orAll != null) {
|
|
3325
|
+
return {
|
|
3326
|
+
orAll: de_RetrievalFilterList(output.orAll, context)
|
|
3327
|
+
};
|
|
3328
|
+
}
|
|
3329
|
+
if (output.startsWith != null) {
|
|
3330
|
+
return {
|
|
3331
|
+
startsWith: de_FilterAttribute(output.startsWith, context)
|
|
3332
|
+
};
|
|
3333
|
+
}
|
|
3334
|
+
if (output.stringContains != null) {
|
|
3335
|
+
return {
|
|
3336
|
+
stringContains: de_FilterAttribute(output.stringContains, context)
|
|
3337
|
+
};
|
|
3338
|
+
}
|
|
3339
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3340
|
+
}, "de_RetrievalFilter");
|
|
3341
|
+
var de_RetrievalFilterList = /* @__PURE__ */ __name((output, context) => {
|
|
3342
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3343
|
+
return de_RetrievalFilter((0, import_core2.awsExpectUnion)(entry), context);
|
|
3344
|
+
});
|
|
3345
|
+
return retVal;
|
|
3346
|
+
}, "de_RetrievalFilterList");
|
|
3347
|
+
var de_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3348
|
+
return (0, import_smithy_client.take)(output, {
|
|
3349
|
+
externalSourcesConfiguration: (_) => de_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
|
|
3350
|
+
knowledgeBaseConfiguration: (_) => de_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
|
|
3351
|
+
type: import_smithy_client.expectString
|
|
3352
|
+
});
|
|
3353
|
+
}, "de_RetrieveAndGenerateConfiguration");
|
|
3354
|
+
var de_RetrieveConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3355
|
+
return (0, import_smithy_client.take)(output, {
|
|
3356
|
+
knowledgeBaseId: import_smithy_client.expectString,
|
|
3357
|
+
knowledgeBaseRetrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3358
|
+
});
|
|
3359
|
+
}, "de_RetrieveConfig");
|
|
3360
|
+
var de_TextInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3361
|
+
return (0, import_smithy_client.take)(output, {
|
|
3362
|
+
maxTokens: import_smithy_client.expectInt32,
|
|
3363
|
+
stopSequences: import_smithy_client._json,
|
|
3364
|
+
temperature: import_smithy_client.limitedParseFloat32,
|
|
3365
|
+
topP: import_smithy_client.limitedParseFloat32
|
|
3366
|
+
});
|
|
3367
|
+
}, "de_TextInferenceConfig");
|
|
2758
3368
|
var de_TrainingMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
2759
3369
|
return (0, import_smithy_client.take)(output, {
|
|
2760
3370
|
trainingLoss: import_smithy_client.limitedParseFloat32
|
|
@@ -2777,6 +3387,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2777
3387
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2778
3388
|
cfId: output.headers["x-amz-cf-id"]
|
|
2779
3389
|
}), "deserializeMetadata");
|
|
3390
|
+
var _aTE = "applicationTypeEquals";
|
|
2780
3391
|
var _bCT = "byCustomizationType";
|
|
2781
3392
|
var _bIT = "byInferenceType";
|
|
2782
3393
|
var _bMAE = "baseModelArnEquals";
|
|
@@ -3642,11 +4253,16 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3642
4253
|
ResourceNotFoundException,
|
|
3643
4254
|
ThrottlingException,
|
|
3644
4255
|
ValidationException,
|
|
4256
|
+
ApplicationType,
|
|
3645
4257
|
EvaluationDatasetLocation,
|
|
3646
4258
|
EvaluationTaskType,
|
|
4259
|
+
EvaluatorModelConfig,
|
|
3647
4260
|
EvaluationConfig,
|
|
3648
4261
|
EvaluationModelConfig,
|
|
3649
|
-
|
|
4262
|
+
ExternalSourceType,
|
|
4263
|
+
QueryTransformationType,
|
|
4264
|
+
SearchType,
|
|
4265
|
+
RetrieveAndGenerateType,
|
|
3650
4266
|
ServiceQuotaExceededException,
|
|
3651
4267
|
EvaluationJobType,
|
|
3652
4268
|
SortJobsBy,
|
|
@@ -3681,6 +4297,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3681
4297
|
SortByProvisionedModels,
|
|
3682
4298
|
ModelCustomizationJobStatus,
|
|
3683
4299
|
FineTuningJobStatus,
|
|
4300
|
+
RetrievalFilter,
|
|
4301
|
+
KnowledgeBaseConfig,
|
|
4302
|
+
RAGConfig,
|
|
4303
|
+
EvaluationInferenceConfig,
|
|
3684
4304
|
BatchDeleteEvaluationJobRequestFilterSensitiveLog,
|
|
3685
4305
|
BatchDeleteEvaluationJobErrorFilterSensitiveLog,
|
|
3686
4306
|
BatchDeleteEvaluationJobItemFilterSensitiveLog,
|
|
@@ -3694,10 +4314,13 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3694
4314
|
EvaluationConfigFilterSensitiveLog,
|
|
3695
4315
|
EvaluationBedrockModelFilterSensitiveLog,
|
|
3696
4316
|
EvaluationModelConfigFilterSensitiveLog,
|
|
3697
|
-
|
|
3698
|
-
|
|
4317
|
+
PromptTemplateFilterSensitiveLog,
|
|
4318
|
+
ExternalSourcesGenerationConfigurationFilterSensitiveLog,
|
|
4319
|
+
ByteContentDocFilterSensitiveLog,
|
|
4320
|
+
ExternalSourceFilterSensitiveLog,
|
|
4321
|
+
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4322
|
+
GenerationConfigurationFilterSensitiveLog,
|
|
3699
4323
|
GetEvaluationJobRequestFilterSensitiveLog,
|
|
3700
|
-
GetEvaluationJobResponseFilterSensitiveLog,
|
|
3701
4324
|
StopEvaluationJobRequestFilterSensitiveLog,
|
|
3702
4325
|
GuardrailTopicConfigFilterSensitiveLog,
|
|
3703
4326
|
GuardrailTopicPolicyConfigFilterSensitiveLog,
|
|
@@ -3715,6 +4338,17 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3715
4338
|
ListInferenceProfilesResponseFilterSensitiveLog,
|
|
3716
4339
|
GetModelInvocationJobResponseFilterSensitiveLog,
|
|
3717
4340
|
ModelInvocationJobSummaryFilterSensitiveLog,
|
|
3718
|
-
ListModelInvocationJobsResponseFilterSensitiveLog
|
|
4341
|
+
ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
4342
|
+
RetrievalFilterFilterSensitiveLog,
|
|
4343
|
+
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
4344
|
+
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
4345
|
+
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4346
|
+
RetrieveConfigFilterSensitiveLog,
|
|
4347
|
+
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4348
|
+
KnowledgeBaseConfigFilterSensitiveLog,
|
|
4349
|
+
RAGConfigFilterSensitiveLog,
|
|
4350
|
+
EvaluationInferenceConfigFilterSensitiveLog,
|
|
4351
|
+
CreateEvaluationJobRequestFilterSensitiveLog,
|
|
4352
|
+
GetEvaluationJobResponseFilterSensitiveLog
|
|
3719
4353
|
});
|
|
3720
4354
|
|