@aws-sdk/client-bedrock 3.699.0 → 3.705.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 +770 -36
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +2 -1
- package/dist-es/commands/GetCustomModelCommand.js +2 -1
- package/dist-es/commands/GetModelCustomizationJobCommand.js +2 -1
- package/dist-es/models/models_0.js +291 -24
- package/dist-es/protocols/Aws_restJson1.js +410 -3
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -1
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +156 -2
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetCustomModelCommand.d.ts +42 -2
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +156 -3
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +43 -3
- package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +10 -2
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +2 -2
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +1 -1
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/StopModelInvocationJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1585 -175
- package/dist-types/ts3.4/models/models_0.d.ts +683 -55
- 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,
|
|
@@ -43,9 +45,11 @@ __export(src_exports, {
|
|
|
43
45
|
CreateInferenceProfileRequestFilterSensitiveLog: () => CreateInferenceProfileRequestFilterSensitiveLog,
|
|
44
46
|
CreateModelCopyJobCommand: () => CreateModelCopyJobCommand,
|
|
45
47
|
CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
|
|
48
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog: () => CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
46
49
|
CreateModelImportJobCommand: () => CreateModelImportJobCommand,
|
|
47
50
|
CreateModelInvocationJobCommand: () => CreateModelInvocationJobCommand,
|
|
48
51
|
CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
|
|
52
|
+
CustomizationConfig: () => CustomizationConfig,
|
|
49
53
|
CustomizationType: () => CustomizationType,
|
|
50
54
|
DeleteCustomModelCommand: () => DeleteCustomModelCommand,
|
|
51
55
|
DeleteGuardrailCommand: () => DeleteGuardrailCommand,
|
|
@@ -66,9 +70,16 @@ __export(src_exports, {
|
|
|
66
70
|
EvaluationModelConfig: () => EvaluationModelConfig,
|
|
67
71
|
EvaluationModelConfigFilterSensitiveLog: () => EvaluationModelConfigFilterSensitiveLog,
|
|
68
72
|
EvaluationTaskType: () => EvaluationTaskType,
|
|
73
|
+
EvaluatorModelConfig: () => EvaluatorModelConfig,
|
|
74
|
+
ExternalSourceFilterSensitiveLog: () => ExternalSourceFilterSensitiveLog,
|
|
75
|
+
ExternalSourceType: () => ExternalSourceType,
|
|
76
|
+
ExternalSourcesGenerationConfigurationFilterSensitiveLog: () => ExternalSourcesGenerationConfigurationFilterSensitiveLog,
|
|
77
|
+
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: () => ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
69
78
|
FineTuningJobStatus: () => FineTuningJobStatus,
|
|
70
79
|
FoundationModelLifecycleStatus: () => FoundationModelLifecycleStatus,
|
|
80
|
+
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
71
81
|
GetCustomModelCommand: () => GetCustomModelCommand,
|
|
82
|
+
GetCustomModelResponseFilterSensitiveLog: () => GetCustomModelResponseFilterSensitiveLog,
|
|
72
83
|
GetEvaluationJobCommand: () => GetEvaluationJobCommand,
|
|
73
84
|
GetEvaluationJobRequestFilterSensitiveLog: () => GetEvaluationJobRequestFilterSensitiveLog,
|
|
74
85
|
GetEvaluationJobResponseFilterSensitiveLog: () => GetEvaluationJobResponseFilterSensitiveLog,
|
|
@@ -80,6 +91,7 @@ __export(src_exports, {
|
|
|
80
91
|
GetInferenceProfileResponseFilterSensitiveLog: () => GetInferenceProfileResponseFilterSensitiveLog,
|
|
81
92
|
GetModelCopyJobCommand: () => GetModelCopyJobCommand,
|
|
82
93
|
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
94
|
+
GetModelCustomizationJobResponseFilterSensitiveLog: () => GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
83
95
|
GetModelImportJobCommand: () => GetModelImportJobCommand,
|
|
84
96
|
GetModelInvocationJobCommand: () => GetModelInvocationJobCommand,
|
|
85
97
|
GetModelInvocationJobResponseFilterSensitiveLog: () => GetModelInvocationJobResponseFilterSensitiveLog,
|
|
@@ -107,6 +119,13 @@ __export(src_exports, {
|
|
|
107
119
|
InferenceProfileType: () => InferenceProfileType,
|
|
108
120
|
InferenceType: () => InferenceType,
|
|
109
121
|
InternalServerException: () => InternalServerException,
|
|
122
|
+
InvocationLogSource: () => InvocationLogSource,
|
|
123
|
+
InvocationLogsConfigFilterSensitiveLog: () => InvocationLogsConfigFilterSensitiveLog,
|
|
124
|
+
KnowledgeBaseConfig: () => KnowledgeBaseConfig,
|
|
125
|
+
KnowledgeBaseConfigFilterSensitiveLog: () => KnowledgeBaseConfigFilterSensitiveLog,
|
|
126
|
+
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
127
|
+
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
128
|
+
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: () => KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
110
129
|
ListCustomModelsCommand: () => ListCustomModelsCommand,
|
|
111
130
|
ListEvaluationJobsCommand: () => ListEvaluationJobsCommand,
|
|
112
131
|
ListFoundationModelsCommand: () => ListFoundationModelsCommand,
|
|
@@ -132,10 +151,23 @@ __export(src_exports, {
|
|
|
132
151
|
ModelInvocationJobStatus: () => ModelInvocationJobStatus,
|
|
133
152
|
ModelInvocationJobSummaryFilterSensitiveLog: () => ModelInvocationJobSummaryFilterSensitiveLog,
|
|
134
153
|
ModelModality: () => ModelModality,
|
|
154
|
+
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
135
155
|
ProvisionedModelStatus: () => ProvisionedModelStatus,
|
|
136
156
|
PutModelInvocationLoggingConfigurationCommand: () => PutModelInvocationLoggingConfigurationCommand,
|
|
157
|
+
QueryTransformationType: () => QueryTransformationType,
|
|
158
|
+
RAGConfig: () => RAGConfig,
|
|
159
|
+
RAGConfigFilterSensitiveLog: () => RAGConfigFilterSensitiveLog,
|
|
160
|
+
RequestMetadataBaseFiltersFilterSensitiveLog: () => RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
161
|
+
RequestMetadataFilters: () => RequestMetadataFilters,
|
|
162
|
+
RequestMetadataFiltersFilterSensitiveLog: () => RequestMetadataFiltersFilterSensitiveLog,
|
|
137
163
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
164
|
+
RetrievalFilter: () => RetrievalFilter,
|
|
165
|
+
RetrievalFilterFilterSensitiveLog: () => RetrievalFilterFilterSensitiveLog,
|
|
166
|
+
RetrieveAndGenerateConfigurationFilterSensitiveLog: () => RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
167
|
+
RetrieveAndGenerateType: () => RetrieveAndGenerateType,
|
|
168
|
+
RetrieveConfigFilterSensitiveLog: () => RetrieveConfigFilterSensitiveLog,
|
|
138
169
|
S3InputFormat: () => S3InputFormat,
|
|
170
|
+
SearchType: () => SearchType,
|
|
139
171
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
140
172
|
SortByProvisionedModels: () => SortByProvisionedModels,
|
|
141
173
|
SortJobsBy: () => SortJobsBy,
|
|
@@ -148,6 +180,7 @@ __export(src_exports, {
|
|
|
148
180
|
TagResourceCommand: () => TagResourceCommand,
|
|
149
181
|
ThrottlingException: () => ThrottlingException,
|
|
150
182
|
TooManyTagsException: () => TooManyTagsException,
|
|
183
|
+
TrainingDataConfigFilterSensitiveLog: () => TrainingDataConfigFilterSensitiveLog,
|
|
151
184
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
152
185
|
UpdateGuardrailCommand: () => UpdateGuardrailCommand,
|
|
153
186
|
UpdateGuardrailRequestFilterSensitiveLog: () => UpdateGuardrailRequestFilterSensitiveLog,
|
|
@@ -440,6 +473,10 @@ var _ValidationException = class _ValidationException extends BedrockServiceExce
|
|
|
440
473
|
};
|
|
441
474
|
__name(_ValidationException, "ValidationException");
|
|
442
475
|
var ValidationException = _ValidationException;
|
|
476
|
+
var ApplicationType = {
|
|
477
|
+
MODEL_EVALUATION: "ModelEvaluation",
|
|
478
|
+
RAG_EVALUATION: "RagEvaluation"
|
|
479
|
+
};
|
|
443
480
|
var EvaluationDatasetLocation;
|
|
444
481
|
((EvaluationDatasetLocation3) => {
|
|
445
482
|
EvaluationDatasetLocation3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -455,6 +492,14 @@ var EvaluationTaskType = {
|
|
|
455
492
|
QUESTION_AND_ANSWER: "QuestionAndAnswer",
|
|
456
493
|
SUMMARIZATION: "Summarization"
|
|
457
494
|
};
|
|
495
|
+
var EvaluatorModelConfig;
|
|
496
|
+
((EvaluatorModelConfig3) => {
|
|
497
|
+
EvaluatorModelConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
498
|
+
if (value.bedrockEvaluatorModels !== void 0)
|
|
499
|
+
return visitor.bedrockEvaluatorModels(value.bedrockEvaluatorModels);
|
|
500
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
501
|
+
}, "visit");
|
|
502
|
+
})(EvaluatorModelConfig || (EvaluatorModelConfig = {}));
|
|
458
503
|
var EvaluationConfig;
|
|
459
504
|
((EvaluationConfig3) => {
|
|
460
505
|
EvaluationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -473,14 +518,21 @@ var EvaluationModelConfig;
|
|
|
473
518
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
474
519
|
}, "visit");
|
|
475
520
|
})(EvaluationModelConfig || (EvaluationModelConfig = {}));
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
521
|
+
var ExternalSourceType = {
|
|
522
|
+
BYTE_CONTENT: "BYTE_CONTENT",
|
|
523
|
+
S3: "S3"
|
|
524
|
+
};
|
|
525
|
+
var QueryTransformationType = {
|
|
526
|
+
QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION"
|
|
527
|
+
};
|
|
528
|
+
var SearchType = {
|
|
529
|
+
HYBRID: "HYBRID",
|
|
530
|
+
SEMANTIC: "SEMANTIC"
|
|
531
|
+
};
|
|
532
|
+
var RetrieveAndGenerateType = {
|
|
533
|
+
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
534
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
535
|
+
};
|
|
484
536
|
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockServiceException {
|
|
485
537
|
/**
|
|
486
538
|
* @internal
|
|
@@ -663,12 +715,44 @@ var ModelInvocationJobStatus = {
|
|
|
663
715
|
SUBMITTED: "Submitted",
|
|
664
716
|
VALIDATING: "Validating"
|
|
665
717
|
};
|
|
718
|
+
var CustomizationConfig;
|
|
719
|
+
((CustomizationConfig3) => {
|
|
720
|
+
CustomizationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
721
|
+
if (value.distillationConfig !== void 0)
|
|
722
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
723
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
724
|
+
}, "visit");
|
|
725
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
666
726
|
var CustomizationType = {
|
|
667
727
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
728
|
+
DISTILLATION: "DISTILLATION",
|
|
668
729
|
FINE_TUNING: "FINE_TUNING"
|
|
669
730
|
};
|
|
731
|
+
var InvocationLogSource;
|
|
732
|
+
((InvocationLogSource3) => {
|
|
733
|
+
InvocationLogSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
734
|
+
if (value.s3Uri !== void 0)
|
|
735
|
+
return visitor.s3Uri(value.s3Uri);
|
|
736
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
737
|
+
}, "visit");
|
|
738
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
739
|
+
var RequestMetadataFilters;
|
|
740
|
+
((RequestMetadataFilters3) => {
|
|
741
|
+
RequestMetadataFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
742
|
+
if (value.equals !== void 0)
|
|
743
|
+
return visitor.equals(value.equals);
|
|
744
|
+
if (value.notEquals !== void 0)
|
|
745
|
+
return visitor.notEquals(value.notEquals);
|
|
746
|
+
if (value.andAll !== void 0)
|
|
747
|
+
return visitor.andAll(value.andAll);
|
|
748
|
+
if (value.orAll !== void 0)
|
|
749
|
+
return visitor.orAll(value.orAll);
|
|
750
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
751
|
+
}, "visit");
|
|
752
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
670
753
|
var ModelCustomization = {
|
|
671
754
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
755
|
+
DISTILLATION: "DISTILLATION",
|
|
672
756
|
FINE_TUNING: "FINE_TUNING"
|
|
673
757
|
};
|
|
674
758
|
var InferenceType = {
|
|
@@ -711,6 +795,66 @@ var FineTuningJobStatus = {
|
|
|
711
795
|
STOPPED: "Stopped",
|
|
712
796
|
STOPPING: "Stopping"
|
|
713
797
|
};
|
|
798
|
+
var RetrievalFilter;
|
|
799
|
+
((RetrievalFilter2) => {
|
|
800
|
+
RetrievalFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
801
|
+
if (value.equals !== void 0)
|
|
802
|
+
return visitor.equals(value.equals);
|
|
803
|
+
if (value.notEquals !== void 0)
|
|
804
|
+
return visitor.notEquals(value.notEquals);
|
|
805
|
+
if (value.greaterThan !== void 0)
|
|
806
|
+
return visitor.greaterThan(value.greaterThan);
|
|
807
|
+
if (value.greaterThanOrEquals !== void 0)
|
|
808
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
809
|
+
if (value.lessThan !== void 0)
|
|
810
|
+
return visitor.lessThan(value.lessThan);
|
|
811
|
+
if (value.lessThanOrEquals !== void 0)
|
|
812
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
813
|
+
if (value.in !== void 0)
|
|
814
|
+
return visitor.in(value.in);
|
|
815
|
+
if (value.notIn !== void 0)
|
|
816
|
+
return visitor.notIn(value.notIn);
|
|
817
|
+
if (value.startsWith !== void 0)
|
|
818
|
+
return visitor.startsWith(value.startsWith);
|
|
819
|
+
if (value.listContains !== void 0)
|
|
820
|
+
return visitor.listContains(value.listContains);
|
|
821
|
+
if (value.stringContains !== void 0)
|
|
822
|
+
return visitor.stringContains(value.stringContains);
|
|
823
|
+
if (value.andAll !== void 0)
|
|
824
|
+
return visitor.andAll(value.andAll);
|
|
825
|
+
if (value.orAll !== void 0)
|
|
826
|
+
return visitor.orAll(value.orAll);
|
|
827
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
828
|
+
}, "visit");
|
|
829
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
830
|
+
var KnowledgeBaseConfig;
|
|
831
|
+
((KnowledgeBaseConfig2) => {
|
|
832
|
+
KnowledgeBaseConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
833
|
+
if (value.retrieveConfig !== void 0)
|
|
834
|
+
return visitor.retrieveConfig(value.retrieveConfig);
|
|
835
|
+
if (value.retrieveAndGenerateConfig !== void 0)
|
|
836
|
+
return visitor.retrieveAndGenerateConfig(value.retrieveAndGenerateConfig);
|
|
837
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
838
|
+
}, "visit");
|
|
839
|
+
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
840
|
+
var RAGConfig;
|
|
841
|
+
((RAGConfig2) => {
|
|
842
|
+
RAGConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
843
|
+
if (value.knowledgeBaseConfig !== void 0)
|
|
844
|
+
return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
845
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
846
|
+
}, "visit");
|
|
847
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
848
|
+
var EvaluationInferenceConfig;
|
|
849
|
+
((EvaluationInferenceConfig2) => {
|
|
850
|
+
EvaluationInferenceConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
851
|
+
if (value.models !== void 0)
|
|
852
|
+
return visitor.models(value.models);
|
|
853
|
+
if (value.ragConfigs !== void 0)
|
|
854
|
+
return visitor.ragConfigs(value.ragConfigs);
|
|
855
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
856
|
+
}, "visit");
|
|
857
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
714
858
|
var BatchDeleteEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
715
859
|
...obj,
|
|
716
860
|
...obj.jobIdentifiers && { jobIdentifiers: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -744,7 +888,8 @@ var AutomatedEvaluationConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
744
888
|
...obj,
|
|
745
889
|
...obj.datasetMetricConfigs && {
|
|
746
890
|
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item))
|
|
747
|
-
}
|
|
891
|
+
},
|
|
892
|
+
...obj.evaluatorModelConfig && { evaluatorModelConfig: obj.evaluatorModelConfig }
|
|
748
893
|
}), "AutomatedEvaluationConfigFilterSensitiveLog");
|
|
749
894
|
var HumanEvaluationCustomMetricFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
750
895
|
...obj,
|
|
@@ -785,28 +930,38 @@ var EvaluationModelConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
785
930
|
if (obj.$unknown !== void 0)
|
|
786
931
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
787
932
|
}, "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) => ({
|
|
933
|
+
var PromptTemplateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
795
934
|
...obj,
|
|
796
|
-
...obj.
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
935
|
+
...obj.textPromptTemplate && { textPromptTemplate: import_smithy_client.SENSITIVE_STRING }
|
|
936
|
+
}), "PromptTemplateFilterSensitiveLog");
|
|
937
|
+
var ExternalSourcesGenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
938
|
+
...obj,
|
|
939
|
+
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
940
|
+
}), "ExternalSourcesGenerationConfigurationFilterSensitiveLog");
|
|
941
|
+
var ByteContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
942
|
+
...obj,
|
|
943
|
+
...obj.identifier && { identifier: import_smithy_client.SENSITIVE_STRING },
|
|
944
|
+
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
945
|
+
}), "ByteContentDocFilterSensitiveLog");
|
|
946
|
+
var ExternalSourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
947
|
+
...obj,
|
|
948
|
+
...obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }
|
|
949
|
+
}), "ExternalSourceFilterSensitiveLog");
|
|
950
|
+
var ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
951
|
+
...obj,
|
|
952
|
+
...obj.sources && { sources: obj.sources.map((item) => ExternalSourceFilterSensitiveLog(item)) },
|
|
953
|
+
...obj.generationConfiguration && {
|
|
954
|
+
generationConfiguration: ExternalSourcesGenerationConfigurationFilterSensitiveLog(obj.generationConfiguration)
|
|
955
|
+
}
|
|
956
|
+
}), "ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
957
|
+
var GenerationConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
958
|
+
...obj,
|
|
959
|
+
...obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }
|
|
960
|
+
}), "GenerationConfigurationFilterSensitiveLog");
|
|
800
961
|
var GetEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
801
962
|
...obj,
|
|
802
963
|
...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
|
|
803
964
|
}), "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
965
|
var StopEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
811
966
|
...obj,
|
|
812
967
|
...obj.jobIdentifier && { jobIdentifier: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -915,6 +1070,157 @@ var ListModelInvocationJobsResponseFilterSensitiveLog = /* @__PURE__ */ __name((
|
|
|
915
1070
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item))
|
|
916
1071
|
}
|
|
917
1072
|
}), "ListModelInvocationJobsResponseFilterSensitiveLog");
|
|
1073
|
+
var RequestMetadataBaseFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1074
|
+
...obj,
|
|
1075
|
+
...obj.equals && { equals: import_smithy_client.SENSITIVE_STRING },
|
|
1076
|
+
...obj.notEquals && { notEquals: import_smithy_client.SENSITIVE_STRING }
|
|
1077
|
+
}), "RequestMetadataBaseFiltersFilterSensitiveLog");
|
|
1078
|
+
var RequestMetadataFiltersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1079
|
+
if (obj.equals !== void 0)
|
|
1080
|
+
return { equals: import_smithy_client.SENSITIVE_STRING };
|
|
1081
|
+
if (obj.notEquals !== void 0)
|
|
1082
|
+
return { notEquals: import_smithy_client.SENSITIVE_STRING };
|
|
1083
|
+
if (obj.andAll !== void 0)
|
|
1084
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1085
|
+
if (obj.orAll !== void 0)
|
|
1086
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
1087
|
+
if (obj.$unknown !== void 0)
|
|
1088
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1089
|
+
}, "RequestMetadataFiltersFilterSensitiveLog");
|
|
1090
|
+
var InvocationLogsConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1091
|
+
...obj,
|
|
1092
|
+
...obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource },
|
|
1093
|
+
...obj.requestMetadataFilters && {
|
|
1094
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters)
|
|
1095
|
+
}
|
|
1096
|
+
}), "InvocationLogsConfigFilterSensitiveLog");
|
|
1097
|
+
var TrainingDataConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1098
|
+
...obj,
|
|
1099
|
+
...obj.invocationLogsConfig && {
|
|
1100
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig)
|
|
1101
|
+
}
|
|
1102
|
+
}), "TrainingDataConfigFilterSensitiveLog");
|
|
1103
|
+
var GetCustomModelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1104
|
+
...obj,
|
|
1105
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1106
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1107
|
+
}), "GetCustomModelResponseFilterSensitiveLog");
|
|
1108
|
+
var CreateModelCustomizationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1109
|
+
...obj,
|
|
1110
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1111
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1112
|
+
}), "CreateModelCustomizationJobRequestFilterSensitiveLog");
|
|
1113
|
+
var GetModelCustomizationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1114
|
+
...obj,
|
|
1115
|
+
...obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) },
|
|
1116
|
+
...obj.customizationConfig && { customizationConfig: obj.customizationConfig }
|
|
1117
|
+
}), "GetModelCustomizationJobResponseFilterSensitiveLog");
|
|
1118
|
+
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1119
|
+
if (obj.equals !== void 0)
|
|
1120
|
+
return { equals: obj.equals };
|
|
1121
|
+
if (obj.notEquals !== void 0)
|
|
1122
|
+
return { notEquals: obj.notEquals };
|
|
1123
|
+
if (obj.greaterThan !== void 0)
|
|
1124
|
+
return { greaterThan: obj.greaterThan };
|
|
1125
|
+
if (obj.greaterThanOrEquals !== void 0)
|
|
1126
|
+
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
1127
|
+
if (obj.lessThan !== void 0)
|
|
1128
|
+
return { lessThan: obj.lessThan };
|
|
1129
|
+
if (obj.lessThanOrEquals !== void 0)
|
|
1130
|
+
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
1131
|
+
if (obj.in !== void 0)
|
|
1132
|
+
return { in: obj.in };
|
|
1133
|
+
if (obj.notIn !== void 0)
|
|
1134
|
+
return { notIn: obj.notIn };
|
|
1135
|
+
if (obj.startsWith !== void 0)
|
|
1136
|
+
return { startsWith: obj.startsWith };
|
|
1137
|
+
if (obj.listContains !== void 0)
|
|
1138
|
+
return { listContains: obj.listContains };
|
|
1139
|
+
if (obj.stringContains !== void 0)
|
|
1140
|
+
return { stringContains: obj.stringContains };
|
|
1141
|
+
if (obj.andAll !== void 0)
|
|
1142
|
+
return { andAll: import_smithy_client.SENSITIVE_STRING };
|
|
1143
|
+
if (obj.orAll !== void 0)
|
|
1144
|
+
return { orAll: import_smithy_client.SENSITIVE_STRING };
|
|
1145
|
+
if (obj.$unknown !== void 0)
|
|
1146
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1147
|
+
}, "RetrievalFilterFilterSensitiveLog");
|
|
1148
|
+
var KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1149
|
+
...obj,
|
|
1150
|
+
...obj.filter && { filter: import_smithy_client.SENSITIVE_STRING }
|
|
1151
|
+
}), "KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog");
|
|
1152
|
+
var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1153
|
+
...obj,
|
|
1154
|
+
...obj.vectorSearchConfiguration && {
|
|
1155
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
|
|
1156
|
+
}
|
|
1157
|
+
}), "KnowledgeBaseRetrievalConfigurationFilterSensitiveLog");
|
|
1158
|
+
var KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1159
|
+
...obj,
|
|
1160
|
+
...obj.retrievalConfiguration && {
|
|
1161
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration)
|
|
1162
|
+
},
|
|
1163
|
+
...obj.generationConfiguration && {
|
|
1164
|
+
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration)
|
|
1165
|
+
}
|
|
1166
|
+
}), "KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1167
|
+
var RetrieveConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1168
|
+
...obj,
|
|
1169
|
+
...obj.knowledgeBaseRetrievalConfiguration && {
|
|
1170
|
+
knowledgeBaseRetrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(
|
|
1171
|
+
obj.knowledgeBaseRetrievalConfiguration
|
|
1172
|
+
)
|
|
1173
|
+
}
|
|
1174
|
+
}), "RetrieveConfigFilterSensitiveLog");
|
|
1175
|
+
var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1176
|
+
...obj,
|
|
1177
|
+
...obj.knowledgeBaseConfiguration && {
|
|
1178
|
+
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(
|
|
1179
|
+
obj.knowledgeBaseConfiguration
|
|
1180
|
+
)
|
|
1181
|
+
},
|
|
1182
|
+
...obj.externalSourcesConfiguration && {
|
|
1183
|
+
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(
|
|
1184
|
+
obj.externalSourcesConfiguration
|
|
1185
|
+
)
|
|
1186
|
+
}
|
|
1187
|
+
}), "RetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1188
|
+
var KnowledgeBaseConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1189
|
+
if (obj.retrieveConfig !== void 0)
|
|
1190
|
+
return { retrieveConfig: RetrieveConfigFilterSensitiveLog(obj.retrieveConfig) };
|
|
1191
|
+
if (obj.retrieveAndGenerateConfig !== void 0)
|
|
1192
|
+
return {
|
|
1193
|
+
retrieveAndGenerateConfig: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfig)
|
|
1194
|
+
};
|
|
1195
|
+
if (obj.$unknown !== void 0)
|
|
1196
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1197
|
+
}, "KnowledgeBaseConfigFilterSensitiveLog");
|
|
1198
|
+
var RAGConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1199
|
+
if (obj.knowledgeBaseConfig !== void 0)
|
|
1200
|
+
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
1201
|
+
if (obj.$unknown !== void 0)
|
|
1202
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1203
|
+
}, "RAGConfigFilterSensitiveLog");
|
|
1204
|
+
var EvaluationInferenceConfigFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1205
|
+
if (obj.models !== void 0)
|
|
1206
|
+
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
1207
|
+
if (obj.ragConfigs !== void 0)
|
|
1208
|
+
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
1209
|
+
if (obj.$unknown !== void 0)
|
|
1210
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1211
|
+
}, "EvaluationInferenceConfigFilterSensitiveLog");
|
|
1212
|
+
var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1213
|
+
...obj,
|
|
1214
|
+
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
1215
|
+
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1216
|
+
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1217
|
+
}), "CreateEvaluationJobRequestFilterSensitiveLog");
|
|
1218
|
+
var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1219
|
+
...obj,
|
|
1220
|
+
...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
|
|
1221
|
+
...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
|
|
1222
|
+
...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
|
|
1223
|
+
}), "GetEvaluationJobResponseFilterSensitiveLog");
|
|
918
1224
|
|
|
919
1225
|
// src/protocols/Aws_restJson1.ts
|
|
920
1226
|
var import_core2 = require("@aws-sdk/core");
|
|
@@ -945,10 +1251,11 @@ var se_CreateEvaluationJobCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
945
1251
|
let body;
|
|
946
1252
|
body = JSON.stringify(
|
|
947
1253
|
(0, import_smithy_client.take)(input, {
|
|
1254
|
+
applicationType: [],
|
|
948
1255
|
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
949
1256
|
customerEncryptionKeyId: [],
|
|
950
1257
|
evaluationConfig: (_) => (0, import_smithy_client._json)(_),
|
|
951
|
-
inferenceConfig: (_) => (
|
|
1258
|
+
inferenceConfig: (_) => se_EvaluationInferenceConfig(_, context),
|
|
952
1259
|
jobDescription: [],
|
|
953
1260
|
jobName: [],
|
|
954
1261
|
jobTags: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -1054,6 +1361,7 @@ var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1054
1361
|
customModelKmsKeyId: [],
|
|
1055
1362
|
customModelName: [],
|
|
1056
1363
|
customModelTags: (_) => (0, import_smithy_client._json)(_),
|
|
1364
|
+
customizationConfig: (_) => (0, import_smithy_client._json)(_),
|
|
1057
1365
|
customizationType: [],
|
|
1058
1366
|
hyperParameters: (_) => (0, import_smithy_client._json)(_),
|
|
1059
1367
|
jobName: [],
|
|
@@ -1328,6 +1636,7 @@ var se_ListEvaluationJobsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1328
1636
|
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1329
1637
|
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1330
1638
|
[_sE]: [, input[_sE]],
|
|
1639
|
+
[_aTE]: [, input[_aTE]],
|
|
1331
1640
|
[_nC]: [, input[_nC]],
|
|
1332
1641
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1333
1642
|
[_nT]: [, input[_nT]],
|
|
@@ -1836,6 +2145,7 @@ var de_GetCustomModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1836
2145
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1837
2146
|
baseModelArn: import_smithy_client.expectString,
|
|
1838
2147
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2148
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1839
2149
|
customizationType: import_smithy_client.expectString,
|
|
1840
2150
|
hyperParameters: import_smithy_client._json,
|
|
1841
2151
|
jobArn: import_smithy_client.expectString,
|
|
@@ -1861,11 +2171,12 @@ var de_GetEvaluationJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1861
2171
|
});
|
|
1862
2172
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1863
2173
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2174
|
+
applicationType: import_smithy_client.expectString,
|
|
1864
2175
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1865
2176
|
customerEncryptionKeyId: import_smithy_client.expectString,
|
|
1866
2177
|
evaluationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1867
2178
|
failureMessages: import_smithy_client._json,
|
|
1868
|
-
inferenceConfig: (_) => (
|
|
2179
|
+
inferenceConfig: (_) => de_EvaluationInferenceConfig((0, import_core2.awsExpectUnion)(_), context),
|
|
1869
2180
|
jobArn: import_smithy_client.expectString,
|
|
1870
2181
|
jobDescription: import_smithy_client.expectString,
|
|
1871
2182
|
jobName: import_smithy_client.expectString,
|
|
@@ -2003,6 +2314,7 @@ var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2003
2314
|
baseModelArn: import_smithy_client.expectString,
|
|
2004
2315
|
clientRequestToken: import_smithy_client.expectString,
|
|
2005
2316
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2317
|
+
customizationConfig: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
2006
2318
|
customizationType: import_smithy_client.expectString,
|
|
2007
2319
|
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2008
2320
|
failureMessage: import_smithy_client.expectString,
|
|
@@ -2530,6 +2842,76 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
2530
2842
|
});
|
|
2531
2843
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2532
2844
|
}, "de_ValidationExceptionRes");
|
|
2845
|
+
var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) => {
|
|
2846
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2847
|
+
if (value === null) {
|
|
2848
|
+
return acc;
|
|
2849
|
+
}
|
|
2850
|
+
acc[key] = se_AdditionalModelRequestFieldsValue(value, context);
|
|
2851
|
+
return acc;
|
|
2852
|
+
}, {});
|
|
2853
|
+
}, "se_AdditionalModelRequestFields");
|
|
2854
|
+
var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
|
|
2855
|
+
return input;
|
|
2856
|
+
}, "se_AdditionalModelRequestFieldsValue");
|
|
2857
|
+
var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
|
|
2858
|
+
return (0, import_smithy_client.take)(input, {
|
|
2859
|
+
contentType: [],
|
|
2860
|
+
data: context.base64Encoder,
|
|
2861
|
+
identifier: []
|
|
2862
|
+
});
|
|
2863
|
+
}, "se_ByteContentDoc");
|
|
2864
|
+
var se_EvaluationInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2865
|
+
return EvaluationInferenceConfig.visit(input, {
|
|
2866
|
+
models: (value) => ({ models: (0, import_smithy_client._json)(value) }),
|
|
2867
|
+
ragConfigs: (value) => ({ ragConfigs: se_RagConfigs(value, context) }),
|
|
2868
|
+
_: (name, value) => ({ name: value })
|
|
2869
|
+
});
|
|
2870
|
+
}, "se_EvaluationInferenceConfig");
|
|
2871
|
+
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
2872
|
+
return (0, import_smithy_client.take)(input, {
|
|
2873
|
+
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
2874
|
+
s3Location: import_smithy_client._json,
|
|
2875
|
+
sourceType: []
|
|
2876
|
+
});
|
|
2877
|
+
}, "se_ExternalSource");
|
|
2878
|
+
var se_ExternalSources = /* @__PURE__ */ __name((input, context) => {
|
|
2879
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2880
|
+
return se_ExternalSource(entry, context);
|
|
2881
|
+
});
|
|
2882
|
+
}, "se_ExternalSources");
|
|
2883
|
+
var se_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2884
|
+
return (0, import_smithy_client.take)(input, {
|
|
2885
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
2886
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
2887
|
+
kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
|
|
2888
|
+
promptTemplate: import_smithy_client._json
|
|
2889
|
+
});
|
|
2890
|
+
}, "se_ExternalSourcesGenerationConfiguration");
|
|
2891
|
+
var se_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2892
|
+
return (0, import_smithy_client.take)(input, {
|
|
2893
|
+
generationConfiguration: (_) => se_ExternalSourcesGenerationConfiguration(_, context),
|
|
2894
|
+
modelArn: [],
|
|
2895
|
+
sources: (_) => se_ExternalSources(_, context)
|
|
2896
|
+
});
|
|
2897
|
+
}, "se_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
2898
|
+
var se_FilterAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
2899
|
+
return (0, import_smithy_client.take)(input, {
|
|
2900
|
+
key: [],
|
|
2901
|
+
value: (_) => se_FilterValue(_, context)
|
|
2902
|
+
});
|
|
2903
|
+
}, "se_FilterAttribute");
|
|
2904
|
+
var se_FilterValue = /* @__PURE__ */ __name((input, context) => {
|
|
2905
|
+
return input;
|
|
2906
|
+
}, "se_FilterValue");
|
|
2907
|
+
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2908
|
+
return (0, import_smithy_client.take)(input, {
|
|
2909
|
+
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
2910
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
2911
|
+
kbInferenceConfig: (_) => se_KbInferenceConfig(_, context),
|
|
2912
|
+
promptTemplate: import_smithy_client._json
|
|
2913
|
+
});
|
|
2914
|
+
}, "se_GenerationConfiguration");
|
|
2533
2915
|
var se_GuardrailContextualGroundingFilterConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2534
2916
|
return (0, import_smithy_client.take)(input, {
|
|
2535
2917
|
threshold: import_smithy_client.serializeFloat,
|
|
@@ -2546,6 +2928,115 @@ var se_GuardrailContextualGroundingPolicyConfig = /* @__PURE__ */ __name((input,
|
|
|
2546
2928
|
filtersConfig: (_) => se_GuardrailContextualGroundingFiltersConfig(_, context)
|
|
2547
2929
|
});
|
|
2548
2930
|
}, "se_GuardrailContextualGroundingPolicyConfig");
|
|
2931
|
+
var se_KbInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2932
|
+
return (0, import_smithy_client.take)(input, {
|
|
2933
|
+
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
2934
|
+
});
|
|
2935
|
+
}, "se_KbInferenceConfig");
|
|
2936
|
+
var se_KnowledgeBaseConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2937
|
+
return KnowledgeBaseConfig.visit(input, {
|
|
2938
|
+
retrieveAndGenerateConfig: (value) => ({
|
|
2939
|
+
retrieveAndGenerateConfig: se_RetrieveAndGenerateConfiguration(value, context)
|
|
2940
|
+
}),
|
|
2941
|
+
retrieveConfig: (value) => ({ retrieveConfig: se_RetrieveConfig(value, context) }),
|
|
2942
|
+
_: (name, value) => ({ name: value })
|
|
2943
|
+
});
|
|
2944
|
+
}, "se_KnowledgeBaseConfig");
|
|
2945
|
+
var se_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2946
|
+
return (0, import_smithy_client.take)(input, {
|
|
2947
|
+
vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
2948
|
+
});
|
|
2949
|
+
}, "se_KnowledgeBaseRetrievalConfiguration");
|
|
2950
|
+
var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2951
|
+
return (0, import_smithy_client.take)(input, {
|
|
2952
|
+
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
2953
|
+
knowledgeBaseId: [],
|
|
2954
|
+
modelArn: [],
|
|
2955
|
+
orchestrationConfiguration: import_smithy_client._json,
|
|
2956
|
+
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2957
|
+
});
|
|
2958
|
+
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
2959
|
+
var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2960
|
+
return (0, import_smithy_client.take)(input, {
|
|
2961
|
+
filter: (_) => se_RetrievalFilter(_, context),
|
|
2962
|
+
numberOfResults: [],
|
|
2963
|
+
overrideSearchType: []
|
|
2964
|
+
});
|
|
2965
|
+
}, "se_KnowledgeBaseVectorSearchConfiguration");
|
|
2966
|
+
var se_RAGConfig = /* @__PURE__ */ __name((input, context) => {
|
|
2967
|
+
return RAGConfig.visit(input, {
|
|
2968
|
+
knowledgeBaseConfig: (value) => ({ knowledgeBaseConfig: se_KnowledgeBaseConfig(value, context) }),
|
|
2969
|
+
_: (name, value) => ({ name: value })
|
|
2970
|
+
});
|
|
2971
|
+
}, "se_RAGConfig");
|
|
2972
|
+
var se_RagConfigs = /* @__PURE__ */ __name((input, context) => {
|
|
2973
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2974
|
+
return se_RAGConfig(entry, context);
|
|
2975
|
+
});
|
|
2976
|
+
}, "se_RagConfigs");
|
|
2977
|
+
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2978
|
+
return RetrievalFilter.visit(input, {
|
|
2979
|
+
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
2980
|
+
equals: (value) => ({ equals: se_FilterAttribute(value, context) }),
|
|
2981
|
+
greaterThan: (value) => ({ greaterThan: se_FilterAttribute(value, context) }),
|
|
2982
|
+
greaterThanOrEquals: (value) => ({ greaterThanOrEquals: se_FilterAttribute(value, context) }),
|
|
2983
|
+
in: (value) => ({ in: se_FilterAttribute(value, context) }),
|
|
2984
|
+
lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
|
|
2985
|
+
lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
|
|
2986
|
+
listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
|
|
2987
|
+
notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
|
|
2988
|
+
notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
|
|
2989
|
+
orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
|
|
2990
|
+
startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
|
|
2991
|
+
stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
|
|
2992
|
+
_: (name, value) => ({ name: value })
|
|
2993
|
+
});
|
|
2994
|
+
}, "se_RetrievalFilter");
|
|
2995
|
+
var se_RetrievalFilterList = /* @__PURE__ */ __name((input, context) => {
|
|
2996
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2997
|
+
return se_RetrievalFilter(entry, context);
|
|
2998
|
+
});
|
|
2999
|
+
}, "se_RetrievalFilterList");
|
|
3000
|
+
var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3001
|
+
return (0, import_smithy_client.take)(input, {
|
|
3002
|
+
externalSourcesConfiguration: (_) => se_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
|
|
3003
|
+
knowledgeBaseConfiguration: (_) => se_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
|
|
3004
|
+
type: []
|
|
3005
|
+
});
|
|
3006
|
+
}, "se_RetrieveAndGenerateConfiguration");
|
|
3007
|
+
var se_RetrieveConfig = /* @__PURE__ */ __name((input, context) => {
|
|
3008
|
+
return (0, import_smithy_client.take)(input, {
|
|
3009
|
+
knowledgeBaseId: [],
|
|
3010
|
+
knowledgeBaseRetrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3011
|
+
});
|
|
3012
|
+
}, "se_RetrieveConfig");
|
|
3013
|
+
var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
3014
|
+
return (0, import_smithy_client.take)(input, {
|
|
3015
|
+
maxTokens: [],
|
|
3016
|
+
stopSequences: import_smithy_client._json,
|
|
3017
|
+
temperature: import_smithy_client.serializeFloat,
|
|
3018
|
+
topP: import_smithy_client.serializeFloat
|
|
3019
|
+
});
|
|
3020
|
+
}, "se_TextInferenceConfig");
|
|
3021
|
+
var de_AdditionalModelRequestFields = /* @__PURE__ */ __name((output, context) => {
|
|
3022
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3023
|
+
if (value === null) {
|
|
3024
|
+
return acc;
|
|
3025
|
+
}
|
|
3026
|
+
acc[key] = de_AdditionalModelRequestFieldsValue(value, context);
|
|
3027
|
+
return acc;
|
|
3028
|
+
}, {});
|
|
3029
|
+
}, "de_AdditionalModelRequestFields");
|
|
3030
|
+
var de_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((output, context) => {
|
|
3031
|
+
return output;
|
|
3032
|
+
}, "de_AdditionalModelRequestFieldsValue");
|
|
3033
|
+
var de_ByteContentDoc = /* @__PURE__ */ __name((output, context) => {
|
|
3034
|
+
return (0, import_smithy_client.take)(output, {
|
|
3035
|
+
contentType: import_smithy_client.expectString,
|
|
3036
|
+
data: context.base64Decoder,
|
|
3037
|
+
identifier: import_smithy_client.expectString
|
|
3038
|
+
});
|
|
3039
|
+
}, "de_ByteContentDoc");
|
|
2549
3040
|
var de_CustomModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2550
3041
|
return (0, import_smithy_client.take)(output, {
|
|
2551
3042
|
baseModelArn: import_smithy_client.expectString,
|
|
@@ -2563,6 +3054,19 @@ var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2563
3054
|
});
|
|
2564
3055
|
return retVal;
|
|
2565
3056
|
}, "de_CustomModelSummaryList");
|
|
3057
|
+
var de_EvaluationInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3058
|
+
if (output.models != null) {
|
|
3059
|
+
return {
|
|
3060
|
+
models: (0, import_smithy_client._json)(output.models)
|
|
3061
|
+
};
|
|
3062
|
+
}
|
|
3063
|
+
if (output.ragConfigs != null) {
|
|
3064
|
+
return {
|
|
3065
|
+
ragConfigs: de_RagConfigs(output.ragConfigs, context)
|
|
3066
|
+
};
|
|
3067
|
+
}
|
|
3068
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3069
|
+
}, "de_EvaluationInferenceConfig");
|
|
2566
3070
|
var de_EvaluationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2567
3071
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2568
3072
|
return de_EvaluationSummary(entry, context);
|
|
@@ -2571,15 +3075,63 @@ var de_EvaluationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
|
2571
3075
|
}, "de_EvaluationSummaries");
|
|
2572
3076
|
var de_EvaluationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2573
3077
|
return (0, import_smithy_client.take)(output, {
|
|
3078
|
+
applicationType: import_smithy_client.expectString,
|
|
2574
3079
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2575
3080
|
evaluationTaskTypes: import_smithy_client._json,
|
|
3081
|
+
evaluatorModelIdentifiers: import_smithy_client._json,
|
|
2576
3082
|
jobArn: import_smithy_client.expectString,
|
|
2577
3083
|
jobName: import_smithy_client.expectString,
|
|
2578
3084
|
jobType: import_smithy_client.expectString,
|
|
2579
3085
|
modelIdentifiers: import_smithy_client._json,
|
|
3086
|
+
ragIdentifiers: import_smithy_client._json,
|
|
2580
3087
|
status: import_smithy_client.expectString
|
|
2581
3088
|
});
|
|
2582
3089
|
}, "de_EvaluationSummary");
|
|
3090
|
+
var de_ExternalSource = /* @__PURE__ */ __name((output, context) => {
|
|
3091
|
+
return (0, import_smithy_client.take)(output, {
|
|
3092
|
+
byteContent: (_) => de_ByteContentDoc(_, context),
|
|
3093
|
+
s3Location: import_smithy_client._json,
|
|
3094
|
+
sourceType: import_smithy_client.expectString
|
|
3095
|
+
});
|
|
3096
|
+
}, "de_ExternalSource");
|
|
3097
|
+
var de_ExternalSources = /* @__PURE__ */ __name((output, context) => {
|
|
3098
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3099
|
+
return de_ExternalSource(entry, context);
|
|
3100
|
+
});
|
|
3101
|
+
return retVal;
|
|
3102
|
+
}, "de_ExternalSources");
|
|
3103
|
+
var de_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3104
|
+
return (0, import_smithy_client.take)(output, {
|
|
3105
|
+
additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
|
|
3106
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
3107
|
+
kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
|
|
3108
|
+
promptTemplate: import_smithy_client._json
|
|
3109
|
+
});
|
|
3110
|
+
}, "de_ExternalSourcesGenerationConfiguration");
|
|
3111
|
+
var de_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3112
|
+
return (0, import_smithy_client.take)(output, {
|
|
3113
|
+
generationConfiguration: (_) => de_ExternalSourcesGenerationConfiguration(_, context),
|
|
3114
|
+
modelArn: import_smithy_client.expectString,
|
|
3115
|
+
sources: (_) => de_ExternalSources(_, context)
|
|
3116
|
+
});
|
|
3117
|
+
}, "de_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
3118
|
+
var de_FilterAttribute = /* @__PURE__ */ __name((output, context) => {
|
|
3119
|
+
return (0, import_smithy_client.take)(output, {
|
|
3120
|
+
key: import_smithy_client.expectString,
|
|
3121
|
+
value: (_) => de_FilterValue(_, context)
|
|
3122
|
+
});
|
|
3123
|
+
}, "de_FilterAttribute");
|
|
3124
|
+
var de_FilterValue = /* @__PURE__ */ __name((output, context) => {
|
|
3125
|
+
return output;
|
|
3126
|
+
}, "de_FilterValue");
|
|
3127
|
+
var de_GenerationConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3128
|
+
return (0, import_smithy_client.take)(output, {
|
|
3129
|
+
additionalModelRequestFields: (_) => de_AdditionalModelRequestFields(_, context),
|
|
3130
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
3131
|
+
kbInferenceConfig: (_) => de_KbInferenceConfig(_, context),
|
|
3132
|
+
promptTemplate: import_smithy_client._json
|
|
3133
|
+
});
|
|
3134
|
+
}, "de_GenerationConfiguration");
|
|
2583
3135
|
var de_GuardrailContextualGroundingFilter = /* @__PURE__ */ __name((output, context) => {
|
|
2584
3136
|
return (0, import_smithy_client.take)(output, {
|
|
2585
3137
|
threshold: import_smithy_client.limitedParseDouble,
|
|
@@ -2649,6 +3201,45 @@ var de_InferenceProfileSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2649
3201
|
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2650
3202
|
});
|
|
2651
3203
|
}, "de_InferenceProfileSummary");
|
|
3204
|
+
var de_KbInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3205
|
+
return (0, import_smithy_client.take)(output, {
|
|
3206
|
+
textInferenceConfig: (_) => de_TextInferenceConfig(_, context)
|
|
3207
|
+
});
|
|
3208
|
+
}, "de_KbInferenceConfig");
|
|
3209
|
+
var de_KnowledgeBaseConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3210
|
+
if (output.retrieveAndGenerateConfig != null) {
|
|
3211
|
+
return {
|
|
3212
|
+
retrieveAndGenerateConfig: de_RetrieveAndGenerateConfiguration(output.retrieveAndGenerateConfig, context)
|
|
3213
|
+
};
|
|
3214
|
+
}
|
|
3215
|
+
if (output.retrieveConfig != null) {
|
|
3216
|
+
return {
|
|
3217
|
+
retrieveConfig: de_RetrieveConfig(output.retrieveConfig, context)
|
|
3218
|
+
};
|
|
3219
|
+
}
|
|
3220
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3221
|
+
}, "de_KnowledgeBaseConfig");
|
|
3222
|
+
var de_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3223
|
+
return (0, import_smithy_client.take)(output, {
|
|
3224
|
+
vectorSearchConfiguration: (_) => de_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
3225
|
+
});
|
|
3226
|
+
}, "de_KnowledgeBaseRetrievalConfiguration");
|
|
3227
|
+
var de_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3228
|
+
return (0, import_smithy_client.take)(output, {
|
|
3229
|
+
generationConfiguration: (_) => de_GenerationConfiguration(_, context),
|
|
3230
|
+
knowledgeBaseId: import_smithy_client.expectString,
|
|
3231
|
+
modelArn: import_smithy_client.expectString,
|
|
3232
|
+
orchestrationConfiguration: import_smithy_client._json,
|
|
3233
|
+
retrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3234
|
+
});
|
|
3235
|
+
}, "de_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
3236
|
+
var de_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3237
|
+
return (0, import_smithy_client.take)(output, {
|
|
3238
|
+
filter: (_) => de_RetrievalFilter((0, import_core2.awsExpectUnion)(_), context),
|
|
3239
|
+
numberOfResults: import_smithy_client.expectInt32,
|
|
3240
|
+
overrideSearchType: import_smithy_client.expectString
|
|
3241
|
+
});
|
|
3242
|
+
}, "de_KnowledgeBaseVectorSearchConfiguration");
|
|
2652
3243
|
var de_ModelCopyJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2653
3244
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2654
3245
|
return de_ModelCopyJobSummary(entry, context);
|
|
@@ -2755,6 +3346,115 @@ var de_ProvisionedModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2755
3346
|
status: import_smithy_client.expectString
|
|
2756
3347
|
});
|
|
2757
3348
|
}, "de_ProvisionedModelSummary");
|
|
3349
|
+
var de_RAGConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3350
|
+
if (output.knowledgeBaseConfig != null) {
|
|
3351
|
+
return {
|
|
3352
|
+
knowledgeBaseConfig: de_KnowledgeBaseConfig((0, import_core2.awsExpectUnion)(output.knowledgeBaseConfig), context)
|
|
3353
|
+
};
|
|
3354
|
+
}
|
|
3355
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3356
|
+
}, "de_RAGConfig");
|
|
3357
|
+
var de_RagConfigs = /* @__PURE__ */ __name((output, context) => {
|
|
3358
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3359
|
+
return de_RAGConfig((0, import_core2.awsExpectUnion)(entry), context);
|
|
3360
|
+
});
|
|
3361
|
+
return retVal;
|
|
3362
|
+
}, "de_RagConfigs");
|
|
3363
|
+
var de_RetrievalFilter = /* @__PURE__ */ __name((output, context) => {
|
|
3364
|
+
if (output.andAll != null) {
|
|
3365
|
+
return {
|
|
3366
|
+
andAll: de_RetrievalFilterList(output.andAll, context)
|
|
3367
|
+
};
|
|
3368
|
+
}
|
|
3369
|
+
if (output.equals != null) {
|
|
3370
|
+
return {
|
|
3371
|
+
equals: de_FilterAttribute(output.equals, context)
|
|
3372
|
+
};
|
|
3373
|
+
}
|
|
3374
|
+
if (output.greaterThan != null) {
|
|
3375
|
+
return {
|
|
3376
|
+
greaterThan: de_FilterAttribute(output.greaterThan, context)
|
|
3377
|
+
};
|
|
3378
|
+
}
|
|
3379
|
+
if (output.greaterThanOrEquals != null) {
|
|
3380
|
+
return {
|
|
3381
|
+
greaterThanOrEquals: de_FilterAttribute(output.greaterThanOrEquals, context)
|
|
3382
|
+
};
|
|
3383
|
+
}
|
|
3384
|
+
if (output.in != null) {
|
|
3385
|
+
return {
|
|
3386
|
+
in: de_FilterAttribute(output.in, context)
|
|
3387
|
+
};
|
|
3388
|
+
}
|
|
3389
|
+
if (output.lessThan != null) {
|
|
3390
|
+
return {
|
|
3391
|
+
lessThan: de_FilterAttribute(output.lessThan, context)
|
|
3392
|
+
};
|
|
3393
|
+
}
|
|
3394
|
+
if (output.lessThanOrEquals != null) {
|
|
3395
|
+
return {
|
|
3396
|
+
lessThanOrEquals: de_FilterAttribute(output.lessThanOrEquals, context)
|
|
3397
|
+
};
|
|
3398
|
+
}
|
|
3399
|
+
if (output.listContains != null) {
|
|
3400
|
+
return {
|
|
3401
|
+
listContains: de_FilterAttribute(output.listContains, context)
|
|
3402
|
+
};
|
|
3403
|
+
}
|
|
3404
|
+
if (output.notEquals != null) {
|
|
3405
|
+
return {
|
|
3406
|
+
notEquals: de_FilterAttribute(output.notEquals, context)
|
|
3407
|
+
};
|
|
3408
|
+
}
|
|
3409
|
+
if (output.notIn != null) {
|
|
3410
|
+
return {
|
|
3411
|
+
notIn: de_FilterAttribute(output.notIn, context)
|
|
3412
|
+
};
|
|
3413
|
+
}
|
|
3414
|
+
if (output.orAll != null) {
|
|
3415
|
+
return {
|
|
3416
|
+
orAll: de_RetrievalFilterList(output.orAll, context)
|
|
3417
|
+
};
|
|
3418
|
+
}
|
|
3419
|
+
if (output.startsWith != null) {
|
|
3420
|
+
return {
|
|
3421
|
+
startsWith: de_FilterAttribute(output.startsWith, context)
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
if (output.stringContains != null) {
|
|
3425
|
+
return {
|
|
3426
|
+
stringContains: de_FilterAttribute(output.stringContains, context)
|
|
3427
|
+
};
|
|
3428
|
+
}
|
|
3429
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3430
|
+
}, "de_RetrievalFilter");
|
|
3431
|
+
var de_RetrievalFilterList = /* @__PURE__ */ __name((output, context) => {
|
|
3432
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3433
|
+
return de_RetrievalFilter((0, import_core2.awsExpectUnion)(entry), context);
|
|
3434
|
+
});
|
|
3435
|
+
return retVal;
|
|
3436
|
+
}, "de_RetrievalFilterList");
|
|
3437
|
+
var de_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3438
|
+
return (0, import_smithy_client.take)(output, {
|
|
3439
|
+
externalSourcesConfiguration: (_) => de_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
|
|
3440
|
+
knowledgeBaseConfiguration: (_) => de_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
|
|
3441
|
+
type: import_smithy_client.expectString
|
|
3442
|
+
});
|
|
3443
|
+
}, "de_RetrieveAndGenerateConfiguration");
|
|
3444
|
+
var de_RetrieveConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3445
|
+
return (0, import_smithy_client.take)(output, {
|
|
3446
|
+
knowledgeBaseId: import_smithy_client.expectString,
|
|
3447
|
+
knowledgeBaseRetrievalConfiguration: (_) => de_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3448
|
+
});
|
|
3449
|
+
}, "de_RetrieveConfig");
|
|
3450
|
+
var de_TextInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3451
|
+
return (0, import_smithy_client.take)(output, {
|
|
3452
|
+
maxTokens: import_smithy_client.expectInt32,
|
|
3453
|
+
stopSequences: import_smithy_client._json,
|
|
3454
|
+
temperature: import_smithy_client.limitedParseFloat32,
|
|
3455
|
+
topP: import_smithy_client.limitedParseFloat32
|
|
3456
|
+
});
|
|
3457
|
+
}, "de_TextInferenceConfig");
|
|
2758
3458
|
var de_TrainingMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
2759
3459
|
return (0, import_smithy_client.take)(output, {
|
|
2760
3460
|
trainingLoss: import_smithy_client.limitedParseFloat32
|
|
@@ -2777,6 +3477,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2777
3477
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2778
3478
|
cfId: output.headers["x-amz-cf-id"]
|
|
2779
3479
|
}), "deserializeMetadata");
|
|
3480
|
+
var _aTE = "applicationTypeEquals";
|
|
2780
3481
|
var _bCT = "byCustomizationType";
|
|
2781
3482
|
var _bIT = "byInferenceType";
|
|
2782
3483
|
var _bMAE = "baseModelArnEquals";
|
|
@@ -2894,7 +3595,7 @@ var _CreateModelCustomizationJobCommand = class _CreateModelCustomizationJobComm
|
|
|
2894
3595
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2895
3596
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2896
3597
|
];
|
|
2897
|
-
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(
|
|
3598
|
+
}).s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {}).n("BedrockClient", "CreateModelCustomizationJobCommand").f(CreateModelCustomizationJobRequestFilterSensitiveLog, void 0).ser(se_CreateModelCustomizationJobCommand).de(de_CreateModelCustomizationJobCommand).build() {
|
|
2898
3599
|
};
|
|
2899
3600
|
__name(_CreateModelCustomizationJobCommand, "CreateModelCustomizationJobCommand");
|
|
2900
3601
|
var CreateModelCustomizationJobCommand = _CreateModelCustomizationJobCommand;
|
|
@@ -3034,7 +3735,7 @@ var _GetCustomModelCommand = class _GetCustomModelCommand extends import_smithy_
|
|
|
3034
3735
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3035
3736
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3036
3737
|
];
|
|
3037
|
-
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0,
|
|
3738
|
+
}).s("AmazonBedrockControlPlaneService", "GetCustomModel", {}).n("BedrockClient", "GetCustomModelCommand").f(void 0, GetCustomModelResponseFilterSensitiveLog).ser(se_GetCustomModelCommand).de(de_GetCustomModelCommand).build() {
|
|
3038
3739
|
};
|
|
3039
3740
|
__name(_GetCustomModelCommand, "GetCustomModelCommand");
|
|
3040
3741
|
var GetCustomModelCommand = _GetCustomModelCommand;
|
|
@@ -3132,7 +3833,7 @@ var _GetModelCustomizationJobCommand = class _GetModelCustomizationJobCommand ex
|
|
|
3132
3833
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3133
3834
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3134
3835
|
];
|
|
3135
|
-
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0,
|
|
3836
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {}).n("BedrockClient", "GetModelCustomizationJobCommand").f(void 0, GetModelCustomizationJobResponseFilterSensitiveLog).ser(se_GetModelCustomizationJobCommand).de(de_GetModelCustomizationJobCommand).build() {
|
|
3136
3837
|
};
|
|
3137
3838
|
__name(_GetModelCustomizationJobCommand, "GetModelCustomizationJobCommand");
|
|
3138
3839
|
var GetModelCustomizationJobCommand = _GetModelCustomizationJobCommand;
|
|
@@ -3642,11 +4343,16 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3642
4343
|
ResourceNotFoundException,
|
|
3643
4344
|
ThrottlingException,
|
|
3644
4345
|
ValidationException,
|
|
4346
|
+
ApplicationType,
|
|
3645
4347
|
EvaluationDatasetLocation,
|
|
3646
4348
|
EvaluationTaskType,
|
|
4349
|
+
EvaluatorModelConfig,
|
|
3647
4350
|
EvaluationConfig,
|
|
3648
4351
|
EvaluationModelConfig,
|
|
3649
|
-
|
|
4352
|
+
ExternalSourceType,
|
|
4353
|
+
QueryTransformationType,
|
|
4354
|
+
SearchType,
|
|
4355
|
+
RetrieveAndGenerateType,
|
|
3650
4356
|
ServiceQuotaExceededException,
|
|
3651
4357
|
EvaluationJobType,
|
|
3652
4358
|
SortJobsBy,
|
|
@@ -3671,7 +4377,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3671
4377
|
ModelInvocationJobInputDataConfig,
|
|
3672
4378
|
ModelInvocationJobOutputDataConfig,
|
|
3673
4379
|
ModelInvocationJobStatus,
|
|
4380
|
+
CustomizationConfig,
|
|
3674
4381
|
CustomizationType,
|
|
4382
|
+
InvocationLogSource,
|
|
4383
|
+
RequestMetadataFilters,
|
|
3675
4384
|
ModelCustomization,
|
|
3676
4385
|
InferenceType,
|
|
3677
4386
|
ModelModality,
|
|
@@ -3681,6 +4390,10 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3681
4390
|
SortByProvisionedModels,
|
|
3682
4391
|
ModelCustomizationJobStatus,
|
|
3683
4392
|
FineTuningJobStatus,
|
|
4393
|
+
RetrievalFilter,
|
|
4394
|
+
KnowledgeBaseConfig,
|
|
4395
|
+
RAGConfig,
|
|
4396
|
+
EvaluationInferenceConfig,
|
|
3684
4397
|
BatchDeleteEvaluationJobRequestFilterSensitiveLog,
|
|
3685
4398
|
BatchDeleteEvaluationJobErrorFilterSensitiveLog,
|
|
3686
4399
|
BatchDeleteEvaluationJobItemFilterSensitiveLog,
|
|
@@ -3694,10 +4407,13 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3694
4407
|
EvaluationConfigFilterSensitiveLog,
|
|
3695
4408
|
EvaluationBedrockModelFilterSensitiveLog,
|
|
3696
4409
|
EvaluationModelConfigFilterSensitiveLog,
|
|
3697
|
-
|
|
3698
|
-
|
|
4410
|
+
PromptTemplateFilterSensitiveLog,
|
|
4411
|
+
ExternalSourcesGenerationConfigurationFilterSensitiveLog,
|
|
4412
|
+
ByteContentDocFilterSensitiveLog,
|
|
4413
|
+
ExternalSourceFilterSensitiveLog,
|
|
4414
|
+
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4415
|
+
GenerationConfigurationFilterSensitiveLog,
|
|
3699
4416
|
GetEvaluationJobRequestFilterSensitiveLog,
|
|
3700
|
-
GetEvaluationJobResponseFilterSensitiveLog,
|
|
3701
4417
|
StopEvaluationJobRequestFilterSensitiveLog,
|
|
3702
4418
|
GuardrailTopicConfigFilterSensitiveLog,
|
|
3703
4419
|
GuardrailTopicPolicyConfigFilterSensitiveLog,
|
|
@@ -3715,6 +4431,24 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3715
4431
|
ListInferenceProfilesResponseFilterSensitiveLog,
|
|
3716
4432
|
GetModelInvocationJobResponseFilterSensitiveLog,
|
|
3717
4433
|
ModelInvocationJobSummaryFilterSensitiveLog,
|
|
3718
|
-
ListModelInvocationJobsResponseFilterSensitiveLog
|
|
4434
|
+
ListModelInvocationJobsResponseFilterSensitiveLog,
|
|
4435
|
+
RequestMetadataBaseFiltersFilterSensitiveLog,
|
|
4436
|
+
RequestMetadataFiltersFilterSensitiveLog,
|
|
4437
|
+
InvocationLogsConfigFilterSensitiveLog,
|
|
4438
|
+
TrainingDataConfigFilterSensitiveLog,
|
|
4439
|
+
GetCustomModelResponseFilterSensitiveLog,
|
|
4440
|
+
CreateModelCustomizationJobRequestFilterSensitiveLog,
|
|
4441
|
+
GetModelCustomizationJobResponseFilterSensitiveLog,
|
|
4442
|
+
RetrievalFilterFilterSensitiveLog,
|
|
4443
|
+
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
4444
|
+
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
4445
|
+
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4446
|
+
RetrieveConfigFilterSensitiveLog,
|
|
4447
|
+
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
4448
|
+
KnowledgeBaseConfigFilterSensitiveLog,
|
|
4449
|
+
RAGConfigFilterSensitiveLog,
|
|
4450
|
+
EvaluationInferenceConfigFilterSensitiveLog,
|
|
4451
|
+
CreateEvaluationJobRequestFilterSensitiveLog,
|
|
4452
|
+
GetEvaluationJobResponseFilterSensitiveLog
|
|
3719
4453
|
});
|
|
3720
4454
|
|