@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
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { CreateModelCustomizationJobRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_CreateModelCustomizationJobCommand, se_CreateModelCustomizationJobCommand, } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class CreateModelCustomizationJobCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class CreateModelCustomizationJobCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "CreateModelCustomizationJob", {})
|
|
17
18
|
.n("BedrockClient", "CreateModelCustomizationJobCommand")
|
|
18
|
-
.f(
|
|
19
|
+
.f(CreateModelCustomizationJobRequestFilterSensitiveLog, void 0)
|
|
19
20
|
.ser(se_CreateModelCustomizationJobCommand)
|
|
20
21
|
.de(de_CreateModelCustomizationJobCommand)
|
|
21
22
|
.build() {
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetCustomModelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_GetCustomModelCommand, se_GetCustomModelCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class GetCustomModelCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class GetCustomModelCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "GetCustomModel", {})
|
|
17
18
|
.n("BedrockClient", "GetCustomModelCommand")
|
|
18
|
-
.f(void 0,
|
|
19
|
+
.f(void 0, GetCustomModelResponseFilterSensitiveLog)
|
|
19
20
|
.ser(se_GetCustomModelCommand)
|
|
20
21
|
.de(de_GetCustomModelCommand)
|
|
21
22
|
.build() {
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetModelCustomizationJobResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_GetModelCustomizationJobCommand, se_GetModelCustomizationJobCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class GetModelCustomizationJobCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class GetModelCustomizationJobCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("AmazonBedrockControlPlaneService", "GetModelCustomizationJob", {})
|
|
17
18
|
.n("BedrockClient", "GetModelCustomizationJobCommand")
|
|
18
|
-
.f(void 0,
|
|
19
|
+
.f(void 0, GetModelCustomizationJobResponseFilterSensitiveLog)
|
|
19
20
|
.ser(se_GetModelCustomizationJobCommand)
|
|
20
21
|
.de(de_GetModelCustomizationJobCommand)
|
|
21
22
|
.build() {
|
|
@@ -80,6 +80,10 @@ export class ValidationException extends __BaseException {
|
|
|
80
80
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
export const ApplicationType = {
|
|
84
|
+
MODEL_EVALUATION: "ModelEvaluation",
|
|
85
|
+
RAG_EVALUATION: "RagEvaluation",
|
|
86
|
+
};
|
|
83
87
|
export var EvaluationDatasetLocation;
|
|
84
88
|
(function (EvaluationDatasetLocation) {
|
|
85
89
|
EvaluationDatasetLocation.visit = (value, visitor) => {
|
|
@@ -95,6 +99,14 @@ export const EvaluationTaskType = {
|
|
|
95
99
|
QUESTION_AND_ANSWER: "QuestionAndAnswer",
|
|
96
100
|
SUMMARIZATION: "Summarization",
|
|
97
101
|
};
|
|
102
|
+
export var EvaluatorModelConfig;
|
|
103
|
+
(function (EvaluatorModelConfig) {
|
|
104
|
+
EvaluatorModelConfig.visit = (value, visitor) => {
|
|
105
|
+
if (value.bedrockEvaluatorModels !== undefined)
|
|
106
|
+
return visitor.bedrockEvaluatorModels(value.bedrockEvaluatorModels);
|
|
107
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
108
|
+
};
|
|
109
|
+
})(EvaluatorModelConfig || (EvaluatorModelConfig = {}));
|
|
98
110
|
export var EvaluationConfig;
|
|
99
111
|
(function (EvaluationConfig) {
|
|
100
112
|
EvaluationConfig.visit = (value, visitor) => {
|
|
@@ -113,14 +125,21 @@ export var EvaluationModelConfig;
|
|
|
113
125
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
114
126
|
};
|
|
115
127
|
})(EvaluationModelConfig || (EvaluationModelConfig = {}));
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
export const ExternalSourceType = {
|
|
129
|
+
BYTE_CONTENT: "BYTE_CONTENT",
|
|
130
|
+
S3: "S3",
|
|
131
|
+
};
|
|
132
|
+
export const QueryTransformationType = {
|
|
133
|
+
QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION",
|
|
134
|
+
};
|
|
135
|
+
export const SearchType = {
|
|
136
|
+
HYBRID: "HYBRID",
|
|
137
|
+
SEMANTIC: "SEMANTIC",
|
|
138
|
+
};
|
|
139
|
+
export const RetrieveAndGenerateType = {
|
|
140
|
+
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
141
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
142
|
+
};
|
|
124
143
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
125
144
|
constructor(opts) {
|
|
126
145
|
super({
|
|
@@ -293,12 +312,44 @@ export const ModelInvocationJobStatus = {
|
|
|
293
312
|
SUBMITTED: "Submitted",
|
|
294
313
|
VALIDATING: "Validating",
|
|
295
314
|
};
|
|
315
|
+
export var CustomizationConfig;
|
|
316
|
+
(function (CustomizationConfig) {
|
|
317
|
+
CustomizationConfig.visit = (value, visitor) => {
|
|
318
|
+
if (value.distillationConfig !== undefined)
|
|
319
|
+
return visitor.distillationConfig(value.distillationConfig);
|
|
320
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
321
|
+
};
|
|
322
|
+
})(CustomizationConfig || (CustomizationConfig = {}));
|
|
296
323
|
export const CustomizationType = {
|
|
297
324
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
325
|
+
DISTILLATION: "DISTILLATION",
|
|
298
326
|
FINE_TUNING: "FINE_TUNING",
|
|
299
327
|
};
|
|
328
|
+
export var InvocationLogSource;
|
|
329
|
+
(function (InvocationLogSource) {
|
|
330
|
+
InvocationLogSource.visit = (value, visitor) => {
|
|
331
|
+
if (value.s3Uri !== undefined)
|
|
332
|
+
return visitor.s3Uri(value.s3Uri);
|
|
333
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
334
|
+
};
|
|
335
|
+
})(InvocationLogSource || (InvocationLogSource = {}));
|
|
336
|
+
export var RequestMetadataFilters;
|
|
337
|
+
(function (RequestMetadataFilters) {
|
|
338
|
+
RequestMetadataFilters.visit = (value, visitor) => {
|
|
339
|
+
if (value.equals !== undefined)
|
|
340
|
+
return visitor.equals(value.equals);
|
|
341
|
+
if (value.notEquals !== undefined)
|
|
342
|
+
return visitor.notEquals(value.notEquals);
|
|
343
|
+
if (value.andAll !== undefined)
|
|
344
|
+
return visitor.andAll(value.andAll);
|
|
345
|
+
if (value.orAll !== undefined)
|
|
346
|
+
return visitor.orAll(value.orAll);
|
|
347
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
348
|
+
};
|
|
349
|
+
})(RequestMetadataFilters || (RequestMetadataFilters = {}));
|
|
300
350
|
export const ModelCustomization = {
|
|
301
351
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
352
|
+
DISTILLATION: "DISTILLATION",
|
|
302
353
|
FINE_TUNING: "FINE_TUNING",
|
|
303
354
|
};
|
|
304
355
|
export const InferenceType = {
|
|
@@ -341,6 +392,66 @@ export const FineTuningJobStatus = {
|
|
|
341
392
|
STOPPED: "Stopped",
|
|
342
393
|
STOPPING: "Stopping",
|
|
343
394
|
};
|
|
395
|
+
export var RetrievalFilter;
|
|
396
|
+
(function (RetrievalFilter) {
|
|
397
|
+
RetrievalFilter.visit = (value, visitor) => {
|
|
398
|
+
if (value.equals !== undefined)
|
|
399
|
+
return visitor.equals(value.equals);
|
|
400
|
+
if (value.notEquals !== undefined)
|
|
401
|
+
return visitor.notEquals(value.notEquals);
|
|
402
|
+
if (value.greaterThan !== undefined)
|
|
403
|
+
return visitor.greaterThan(value.greaterThan);
|
|
404
|
+
if (value.greaterThanOrEquals !== undefined)
|
|
405
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
406
|
+
if (value.lessThan !== undefined)
|
|
407
|
+
return visitor.lessThan(value.lessThan);
|
|
408
|
+
if (value.lessThanOrEquals !== undefined)
|
|
409
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
410
|
+
if (value.in !== undefined)
|
|
411
|
+
return visitor.in(value.in);
|
|
412
|
+
if (value.notIn !== undefined)
|
|
413
|
+
return visitor.notIn(value.notIn);
|
|
414
|
+
if (value.startsWith !== undefined)
|
|
415
|
+
return visitor.startsWith(value.startsWith);
|
|
416
|
+
if (value.listContains !== undefined)
|
|
417
|
+
return visitor.listContains(value.listContains);
|
|
418
|
+
if (value.stringContains !== undefined)
|
|
419
|
+
return visitor.stringContains(value.stringContains);
|
|
420
|
+
if (value.andAll !== undefined)
|
|
421
|
+
return visitor.andAll(value.andAll);
|
|
422
|
+
if (value.orAll !== undefined)
|
|
423
|
+
return visitor.orAll(value.orAll);
|
|
424
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
425
|
+
};
|
|
426
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
427
|
+
export var KnowledgeBaseConfig;
|
|
428
|
+
(function (KnowledgeBaseConfig) {
|
|
429
|
+
KnowledgeBaseConfig.visit = (value, visitor) => {
|
|
430
|
+
if (value.retrieveConfig !== undefined)
|
|
431
|
+
return visitor.retrieveConfig(value.retrieveConfig);
|
|
432
|
+
if (value.retrieveAndGenerateConfig !== undefined)
|
|
433
|
+
return visitor.retrieveAndGenerateConfig(value.retrieveAndGenerateConfig);
|
|
434
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
435
|
+
};
|
|
436
|
+
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
437
|
+
export var RAGConfig;
|
|
438
|
+
(function (RAGConfig) {
|
|
439
|
+
RAGConfig.visit = (value, visitor) => {
|
|
440
|
+
if (value.knowledgeBaseConfig !== undefined)
|
|
441
|
+
return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
442
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
443
|
+
};
|
|
444
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
445
|
+
export var EvaluationInferenceConfig;
|
|
446
|
+
(function (EvaluationInferenceConfig) {
|
|
447
|
+
EvaluationInferenceConfig.visit = (value, visitor) => {
|
|
448
|
+
if (value.models !== undefined)
|
|
449
|
+
return visitor.models(value.models);
|
|
450
|
+
if (value.ragConfigs !== undefined)
|
|
451
|
+
return visitor.ragConfigs(value.ragConfigs);
|
|
452
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
453
|
+
};
|
|
454
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
344
455
|
export const BatchDeleteEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
345
456
|
...obj,
|
|
346
457
|
...(obj.jobIdentifiers && { jobIdentifiers: SENSITIVE_STRING }),
|
|
@@ -375,6 +486,7 @@ export const AutomatedEvaluationConfigFilterSensitiveLog = (obj) => ({
|
|
|
375
486
|
...(obj.datasetMetricConfigs && {
|
|
376
487
|
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item)),
|
|
377
488
|
}),
|
|
489
|
+
...(obj.evaluatorModelConfig && { evaluatorModelConfig: obj.evaluatorModelConfig }),
|
|
378
490
|
});
|
|
379
491
|
export const HumanEvaluationCustomMetricFilterSensitiveLog = (obj) => ({
|
|
380
492
|
...obj,
|
|
@@ -415,27 +527,37 @@ export const EvaluationModelConfigFilterSensitiveLog = (obj) => {
|
|
|
415
527
|
if (obj.$unknown !== undefined)
|
|
416
528
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
417
529
|
};
|
|
418
|
-
export const
|
|
419
|
-
if (obj.models !== undefined)
|
|
420
|
-
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
421
|
-
if (obj.$unknown !== undefined)
|
|
422
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
423
|
-
};
|
|
424
|
-
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
530
|
+
export const PromptTemplateFilterSensitiveLog = (obj) => ({
|
|
425
531
|
...obj,
|
|
426
|
-
...(obj.
|
|
427
|
-
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
428
|
-
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
532
|
+
...(obj.textPromptTemplate && { textPromptTemplate: SENSITIVE_STRING }),
|
|
429
533
|
});
|
|
430
|
-
export const
|
|
534
|
+
export const ExternalSourcesGenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
431
535
|
...obj,
|
|
432
|
-
...(obj.
|
|
536
|
+
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
433
537
|
});
|
|
434
|
-
export const
|
|
538
|
+
export const ByteContentDocFilterSensitiveLog = (obj) => ({
|
|
435
539
|
...obj,
|
|
436
|
-
...(obj.
|
|
437
|
-
...(obj.
|
|
438
|
-
|
|
540
|
+
...(obj.identifier && { identifier: SENSITIVE_STRING }),
|
|
541
|
+
...(obj.data && { data: SENSITIVE_STRING }),
|
|
542
|
+
});
|
|
543
|
+
export const ExternalSourceFilterSensitiveLog = (obj) => ({
|
|
544
|
+
...obj,
|
|
545
|
+
...(obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }),
|
|
546
|
+
});
|
|
547
|
+
export const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
548
|
+
...obj,
|
|
549
|
+
...(obj.sources && { sources: obj.sources.map((item) => ExternalSourceFilterSensitiveLog(item)) }),
|
|
550
|
+
...(obj.generationConfiguration && {
|
|
551
|
+
generationConfiguration: ExternalSourcesGenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
552
|
+
}),
|
|
553
|
+
});
|
|
554
|
+
export const GenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
555
|
+
...obj,
|
|
556
|
+
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
557
|
+
});
|
|
558
|
+
export const GetEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
559
|
+
...obj,
|
|
560
|
+
...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
|
|
439
561
|
});
|
|
440
562
|
export const StopEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
441
563
|
...obj,
|
|
@@ -543,3 +665,148 @@ export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
543
665
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
544
666
|
}),
|
|
545
667
|
});
|
|
668
|
+
export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
|
|
669
|
+
...obj,
|
|
670
|
+
...(obj.equals && { equals: SENSITIVE_STRING }),
|
|
671
|
+
...(obj.notEquals && { notEquals: SENSITIVE_STRING }),
|
|
672
|
+
});
|
|
673
|
+
export const RequestMetadataFiltersFilterSensitiveLog = (obj) => {
|
|
674
|
+
if (obj.equals !== undefined)
|
|
675
|
+
return { equals: SENSITIVE_STRING };
|
|
676
|
+
if (obj.notEquals !== undefined)
|
|
677
|
+
return { notEquals: SENSITIVE_STRING };
|
|
678
|
+
if (obj.andAll !== undefined)
|
|
679
|
+
return { andAll: obj.andAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
680
|
+
if (obj.orAll !== undefined)
|
|
681
|
+
return { orAll: obj.orAll.map((item) => RequestMetadataBaseFiltersFilterSensitiveLog(item)) };
|
|
682
|
+
if (obj.$unknown !== undefined)
|
|
683
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
684
|
+
};
|
|
685
|
+
export const InvocationLogsConfigFilterSensitiveLog = (obj) => ({
|
|
686
|
+
...obj,
|
|
687
|
+
...(obj.invocationLogSource && { invocationLogSource: obj.invocationLogSource }),
|
|
688
|
+
...(obj.requestMetadataFilters && {
|
|
689
|
+
requestMetadataFilters: RequestMetadataFiltersFilterSensitiveLog(obj.requestMetadataFilters),
|
|
690
|
+
}),
|
|
691
|
+
});
|
|
692
|
+
export const TrainingDataConfigFilterSensitiveLog = (obj) => ({
|
|
693
|
+
...obj,
|
|
694
|
+
...(obj.invocationLogsConfig && {
|
|
695
|
+
invocationLogsConfig: InvocationLogsConfigFilterSensitiveLog(obj.invocationLogsConfig),
|
|
696
|
+
}),
|
|
697
|
+
});
|
|
698
|
+
export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
|
|
699
|
+
...obj,
|
|
700
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
701
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
702
|
+
});
|
|
703
|
+
export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
706
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
707
|
+
});
|
|
708
|
+
export const GetModelCustomizationJobResponseFilterSensitiveLog = (obj) => ({
|
|
709
|
+
...obj,
|
|
710
|
+
...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
|
|
711
|
+
...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
|
|
712
|
+
});
|
|
713
|
+
export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
714
|
+
if (obj.equals !== undefined)
|
|
715
|
+
return { equals: obj.equals };
|
|
716
|
+
if (obj.notEquals !== undefined)
|
|
717
|
+
return { notEquals: obj.notEquals };
|
|
718
|
+
if (obj.greaterThan !== undefined)
|
|
719
|
+
return { greaterThan: obj.greaterThan };
|
|
720
|
+
if (obj.greaterThanOrEquals !== undefined)
|
|
721
|
+
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
722
|
+
if (obj.lessThan !== undefined)
|
|
723
|
+
return { lessThan: obj.lessThan };
|
|
724
|
+
if (obj.lessThanOrEquals !== undefined)
|
|
725
|
+
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
726
|
+
if (obj.in !== undefined)
|
|
727
|
+
return { in: obj.in };
|
|
728
|
+
if (obj.notIn !== undefined)
|
|
729
|
+
return { notIn: obj.notIn };
|
|
730
|
+
if (obj.startsWith !== undefined)
|
|
731
|
+
return { startsWith: obj.startsWith };
|
|
732
|
+
if (obj.listContains !== undefined)
|
|
733
|
+
return { listContains: obj.listContains };
|
|
734
|
+
if (obj.stringContains !== undefined)
|
|
735
|
+
return { stringContains: obj.stringContains };
|
|
736
|
+
if (obj.andAll !== undefined)
|
|
737
|
+
return { andAll: SENSITIVE_STRING };
|
|
738
|
+
if (obj.orAll !== undefined)
|
|
739
|
+
return { orAll: SENSITIVE_STRING };
|
|
740
|
+
if (obj.$unknown !== undefined)
|
|
741
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
742
|
+
};
|
|
743
|
+
export const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = (obj) => ({
|
|
744
|
+
...obj,
|
|
745
|
+
...(obj.filter && { filter: SENSITIVE_STRING }),
|
|
746
|
+
});
|
|
747
|
+
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
748
|
+
...obj,
|
|
749
|
+
...(obj.vectorSearchConfiguration && {
|
|
750
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
751
|
+
}),
|
|
752
|
+
});
|
|
753
|
+
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
754
|
+
...obj,
|
|
755
|
+
...(obj.retrievalConfiguration && {
|
|
756
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
757
|
+
}),
|
|
758
|
+
...(obj.generationConfiguration && {
|
|
759
|
+
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
760
|
+
}),
|
|
761
|
+
});
|
|
762
|
+
export const RetrieveConfigFilterSensitiveLog = (obj) => ({
|
|
763
|
+
...obj,
|
|
764
|
+
...(obj.knowledgeBaseRetrievalConfiguration && {
|
|
765
|
+
knowledgeBaseRetrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.knowledgeBaseRetrievalConfiguration),
|
|
766
|
+
}),
|
|
767
|
+
});
|
|
768
|
+
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
769
|
+
...obj,
|
|
770
|
+
...(obj.knowledgeBaseConfiguration && {
|
|
771
|
+
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
772
|
+
}),
|
|
773
|
+
...(obj.externalSourcesConfiguration && {
|
|
774
|
+
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
775
|
+
}),
|
|
776
|
+
});
|
|
777
|
+
export const KnowledgeBaseConfigFilterSensitiveLog = (obj) => {
|
|
778
|
+
if (obj.retrieveConfig !== undefined)
|
|
779
|
+
return { retrieveConfig: RetrieveConfigFilterSensitiveLog(obj.retrieveConfig) };
|
|
780
|
+
if (obj.retrieveAndGenerateConfig !== undefined)
|
|
781
|
+
return {
|
|
782
|
+
retrieveAndGenerateConfig: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfig),
|
|
783
|
+
};
|
|
784
|
+
if (obj.$unknown !== undefined)
|
|
785
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
786
|
+
};
|
|
787
|
+
export const RAGConfigFilterSensitiveLog = (obj) => {
|
|
788
|
+
if (obj.knowledgeBaseConfig !== undefined)
|
|
789
|
+
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
790
|
+
if (obj.$unknown !== undefined)
|
|
791
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
792
|
+
};
|
|
793
|
+
export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
|
|
794
|
+
if (obj.models !== undefined)
|
|
795
|
+
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
796
|
+
if (obj.ragConfigs !== undefined)
|
|
797
|
+
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
798
|
+
if (obj.$unknown !== undefined)
|
|
799
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
800
|
+
};
|
|
801
|
+
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
802
|
+
...obj,
|
|
803
|
+
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
804
|
+
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
805
|
+
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
806
|
+
});
|
|
807
|
+
export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
|
|
808
|
+
...obj,
|
|
809
|
+
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
810
|
+
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
811
|
+
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
812
|
+
});
|