@aws-sdk/client-bedrock 3.758.0 → 3.772.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/README.md +16 -0
- package/dist-cjs/index.js +378 -308
- package/dist-es/Bedrock.js +4 -0
- package/dist-es/commands/CreatePromptRouterCommand.js +23 -0
- package/dist-es/commands/DeletePromptRouterCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_restJson1.js +65 -0
- package/dist-types/Bedrock.d.ts +14 -0
- package/dist-types/BedrockClient.d.ts +4 -2
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +11 -0
- package/dist-types/commands/CreatePromptRouterCommand.d.ts +115 -0
- package/dist-types/commands/DeletePromptRouterCommand.d.ts +84 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +11 -0
- package/dist-types/commands/GetPromptRouterCommand.d.ts +2 -2
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +20 -2
- package/dist-types/commands/ListPromptRoutersCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +248 -13
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Bedrock.d.ts +34 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/CreatePromptRouterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeletePromptRouterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +102 -4
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +3 -3
|
@@ -59,15 +59,33 @@ declare const ListEvaluationJobsCommand_base: {
|
|
|
59
59
|
* // evaluationTaskTypes: [ // EvaluationTaskTypes // required
|
|
60
60
|
* // "Summarization" || "Classification" || "QuestionAndAnswer" || "Generation" || "Custom",
|
|
61
61
|
* // ],
|
|
62
|
-
* // modelIdentifiers: [ //
|
|
62
|
+
* // modelIdentifiers: [ // EvaluationBedrockModelIdentifiers
|
|
63
63
|
* // "STRING_VALUE",
|
|
64
64
|
* // ],
|
|
65
|
-
* // ragIdentifiers: [ //
|
|
65
|
+
* // ragIdentifiers: [ // EvaluationBedrockKnowledgeBaseIdentifiers
|
|
66
66
|
* // "STRING_VALUE",
|
|
67
67
|
* // ],
|
|
68
68
|
* // evaluatorModelIdentifiers: [ // EvaluatorModelIdentifiers
|
|
69
69
|
* // "STRING_VALUE",
|
|
70
70
|
* // ],
|
|
71
|
+
* // inferenceConfigSummary: { // EvaluationInferenceConfigSummary
|
|
72
|
+
* // modelConfigSummary: { // EvaluationModelConfigSummary
|
|
73
|
+
* // bedrockModelIdentifiers: [
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // precomputedInferenceSourceIdentifiers: [ // EvaluationPrecomputedInferenceSourceIdentifiers
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // },
|
|
80
|
+
* // ragConfigSummary: { // EvaluationRagConfigSummary
|
|
81
|
+
* // bedrockKnowledgeBaseIdentifiers: [
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // precomputedRagSourceIdentifiers: [ // EvaluationPrecomputedRagSourceIdentifiers
|
|
85
|
+
* // "STRING_VALUE",
|
|
86
|
+
* // ],
|
|
87
|
+
* // },
|
|
88
|
+
* // },
|
|
71
89
|
* // applicationType: "ModelEvaluation" || "RagEvaluation",
|
|
72
90
|
* // },
|
|
73
91
|
* // ],
|
|
@@ -37,6 +37,7 @@ declare const ListPromptRoutersCommand_base: {
|
|
|
37
37
|
* const input = { // ListPromptRoutersRequest
|
|
38
38
|
* maxResults: Number("int"),
|
|
39
39
|
* nextToken: "STRING_VALUE",
|
|
40
|
+
* type: "custom" || "default",
|
|
40
41
|
* };
|
|
41
42
|
* const command = new ListPromptRoutersCommand(input);
|
|
42
43
|
* const response = await client.send(command);
|
|
@@ -53,11 +54,11 @@ declare const ListPromptRoutersCommand_base: {
|
|
|
53
54
|
* // promptRouterArn: "STRING_VALUE", // required
|
|
54
55
|
* // models: [ // PromptRouterTargetModels // required
|
|
55
56
|
* // { // PromptRouterTargetModel
|
|
56
|
-
* // modelArn: "STRING_VALUE",
|
|
57
|
+
* // modelArn: "STRING_VALUE", // required
|
|
57
58
|
* // },
|
|
58
59
|
* // ],
|
|
59
60
|
* // fallbackModel: {
|
|
60
|
-
* // modelArn: "STRING_VALUE",
|
|
61
|
+
* // modelArn: "STRING_VALUE", // required
|
|
61
62
|
* // },
|
|
62
63
|
* // status: "AVAILABLE", // required
|
|
63
64
|
* // type: "custom" || "default", // required
|
|
@@ -8,6 +8,7 @@ export * from "./CreateModelCopyJobCommand";
|
|
|
8
8
|
export * from "./CreateModelCustomizationJobCommand";
|
|
9
9
|
export * from "./CreateModelImportJobCommand";
|
|
10
10
|
export * from "./CreateModelInvocationJobCommand";
|
|
11
|
+
export * from "./CreatePromptRouterCommand";
|
|
11
12
|
export * from "./CreateProvisionedModelThroughputCommand";
|
|
12
13
|
export * from "./DeleteCustomModelCommand";
|
|
13
14
|
export * from "./DeleteGuardrailCommand";
|
|
@@ -15,6 +16,7 @@ export * from "./DeleteImportedModelCommand";
|
|
|
15
16
|
export * from "./DeleteInferenceProfileCommand";
|
|
16
17
|
export * from "./DeleteMarketplaceModelEndpointCommand";
|
|
17
18
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
19
|
+
export * from "./DeletePromptRouterCommand";
|
|
18
20
|
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
19
21
|
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
20
22
|
export * from "./GetCustomModelCommand";
|
|
@@ -890,11 +890,22 @@ export interface EvaluationBedrockModel {
|
|
|
890
890
|
*/
|
|
891
891
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
892
892
|
}
|
|
893
|
+
/**
|
|
894
|
+
* <p>A summary of a model used for a model evaluation job where you provide your own inference response data.</p>
|
|
895
|
+
* @public
|
|
896
|
+
*/
|
|
897
|
+
export interface EvaluationPrecomputedInferenceSource {
|
|
898
|
+
/**
|
|
899
|
+
* <p>A label that identifies a model used in a model evaluation job where you provide your own inference response data.</p>
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
inferenceSourceIdentifier: string | undefined;
|
|
903
|
+
}
|
|
893
904
|
/**
|
|
894
905
|
* <p>Defines the models used in the model evaluation job.</p>
|
|
895
906
|
* @public
|
|
896
907
|
*/
|
|
897
|
-
export type EvaluationModelConfig = EvaluationModelConfig.BedrockModelMember | EvaluationModelConfig.$UnknownMember;
|
|
908
|
+
export type EvaluationModelConfig = EvaluationModelConfig.BedrockModelMember | EvaluationModelConfig.PrecomputedInferenceSourceMember | EvaluationModelConfig.$UnknownMember;
|
|
898
909
|
/**
|
|
899
910
|
* @public
|
|
900
911
|
*/
|
|
@@ -905,6 +916,16 @@ export declare namespace EvaluationModelConfig {
|
|
|
905
916
|
*/
|
|
906
917
|
interface BedrockModelMember {
|
|
907
918
|
bedrockModel: EvaluationBedrockModel;
|
|
919
|
+
precomputedInferenceSource?: never;
|
|
920
|
+
$unknown?: never;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* <p>Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.</p>
|
|
924
|
+
* @public
|
|
925
|
+
*/
|
|
926
|
+
interface PrecomputedInferenceSourceMember {
|
|
927
|
+
bedrockModel?: never;
|
|
928
|
+
precomputedInferenceSource: EvaluationPrecomputedInferenceSource;
|
|
908
929
|
$unknown?: never;
|
|
909
930
|
}
|
|
910
931
|
/**
|
|
@@ -912,10 +933,12 @@ export declare namespace EvaluationModelConfig {
|
|
|
912
933
|
*/
|
|
913
934
|
interface $UnknownMember {
|
|
914
935
|
bedrockModel?: never;
|
|
936
|
+
precomputedInferenceSource?: never;
|
|
915
937
|
$unknown: [string, any];
|
|
916
938
|
}
|
|
917
939
|
interface Visitor<T> {
|
|
918
940
|
bedrockModel: (value: EvaluationBedrockModel) => T;
|
|
941
|
+
precomputedInferenceSource: (value: EvaluationPrecomputedInferenceSource) => T;
|
|
919
942
|
_: (name: string, value: any) => T;
|
|
920
943
|
}
|
|
921
944
|
const visit: <T>(value: EvaluationModelConfig, visitor: Visitor<T>) => T;
|
|
@@ -1224,6 +1247,70 @@ export declare const RetrieveAndGenerateType: {
|
|
|
1224
1247
|
* @public
|
|
1225
1248
|
*/
|
|
1226
1249
|
export type RetrieveAndGenerateType = (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
1250
|
+
/**
|
|
1251
|
+
* <p>A summary of a RAG source used for a retrieve-and-generate Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1252
|
+
* @public
|
|
1253
|
+
*/
|
|
1254
|
+
export interface EvaluationPrecomputedRetrieveAndGenerateSourceConfig {
|
|
1255
|
+
/**
|
|
1256
|
+
* <p>A label that identifies the RAG source used for a retrieve-and-generate Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1257
|
+
* @public
|
|
1258
|
+
*/
|
|
1259
|
+
ragSourceIdentifier: string | undefined;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* <p>A summary of a RAG source used for a retrieve-only Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1263
|
+
* @public
|
|
1264
|
+
*/
|
|
1265
|
+
export interface EvaluationPrecomputedRetrieveSourceConfig {
|
|
1266
|
+
/**
|
|
1267
|
+
* <p>A label that identifies the RAG source used for a retrieve-only Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1268
|
+
* @public
|
|
1269
|
+
*/
|
|
1270
|
+
ragSourceIdentifier: string | undefined;
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* <p>A summary of a RAG source used for a Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1274
|
+
* @public
|
|
1275
|
+
*/
|
|
1276
|
+
export type EvaluationPrecomputedRagSourceConfig = EvaluationPrecomputedRagSourceConfig.RetrieveAndGenerateSourceConfigMember | EvaluationPrecomputedRagSourceConfig.RetrieveSourceConfigMember | EvaluationPrecomputedRagSourceConfig.$UnknownMember;
|
|
1277
|
+
/**
|
|
1278
|
+
* @public
|
|
1279
|
+
*/
|
|
1280
|
+
export declare namespace EvaluationPrecomputedRagSourceConfig {
|
|
1281
|
+
/**
|
|
1282
|
+
* <p>A summary of a RAG source used for a retrieve-only Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1283
|
+
* @public
|
|
1284
|
+
*/
|
|
1285
|
+
interface RetrieveSourceConfigMember {
|
|
1286
|
+
retrieveSourceConfig: EvaluationPrecomputedRetrieveSourceConfig;
|
|
1287
|
+
retrieveAndGenerateSourceConfig?: never;
|
|
1288
|
+
$unknown?: never;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* <p>A summary of a RAG source used for a retrieve-and-generate Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1292
|
+
* @public
|
|
1293
|
+
*/
|
|
1294
|
+
interface RetrieveAndGenerateSourceConfigMember {
|
|
1295
|
+
retrieveSourceConfig?: never;
|
|
1296
|
+
retrieveAndGenerateSourceConfig: EvaluationPrecomputedRetrieveAndGenerateSourceConfig;
|
|
1297
|
+
$unknown?: never;
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
interface $UnknownMember {
|
|
1303
|
+
retrieveSourceConfig?: never;
|
|
1304
|
+
retrieveAndGenerateSourceConfig?: never;
|
|
1305
|
+
$unknown: [string, any];
|
|
1306
|
+
}
|
|
1307
|
+
interface Visitor<T> {
|
|
1308
|
+
retrieveSourceConfig: (value: EvaluationPrecomputedRetrieveSourceConfig) => T;
|
|
1309
|
+
retrieveAndGenerateSourceConfig: (value: EvaluationPrecomputedRetrieveAndGenerateSourceConfig) => T;
|
|
1310
|
+
_: (name: string, value: any) => T;
|
|
1311
|
+
}
|
|
1312
|
+
const visit: <T>(value: EvaluationPrecomputedRagSourceConfig, visitor: Visitor<T>) => T;
|
|
1313
|
+
}
|
|
1227
1314
|
/**
|
|
1228
1315
|
* <p>The Amazon S3 location where the results of your evaluation job are saved.</p>
|
|
1229
1316
|
* @public
|
|
@@ -1340,6 +1427,58 @@ export interface ListEvaluationJobsRequest {
|
|
|
1340
1427
|
*/
|
|
1341
1428
|
sortOrder?: SortOrder | undefined;
|
|
1342
1429
|
}
|
|
1430
|
+
/**
|
|
1431
|
+
* <p>A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock
|
|
1432
|
+
* or models outside of Amazon Bedrock that you use to generate your own inference response data.</p>
|
|
1433
|
+
* @public
|
|
1434
|
+
*/
|
|
1435
|
+
export interface EvaluationModelConfigSummary {
|
|
1436
|
+
/**
|
|
1437
|
+
* <p>The Amazon Resource Names (ARNs) of the models used for the evaluation job.</p>
|
|
1438
|
+
* @public
|
|
1439
|
+
*/
|
|
1440
|
+
bedrockModelIdentifiers?: string[] | undefined;
|
|
1441
|
+
/**
|
|
1442
|
+
* <p>A label that identifies the models used for a model evaluation job where you provide your own inference response data.</p>
|
|
1443
|
+
* @public
|
|
1444
|
+
*/
|
|
1445
|
+
precomputedInferenceSourceIdentifiers?: string[] | undefined;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* <p>A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in Amazon Bedrock
|
|
1449
|
+
* or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.</p>
|
|
1450
|
+
* @public
|
|
1451
|
+
*/
|
|
1452
|
+
export interface EvaluationRagConfigSummary {
|
|
1453
|
+
/**
|
|
1454
|
+
* <p>The Amazon Resource Names (ARNs) of the Knowledge Base resources used for a Knowledge Base evaluation job where Amazon Bedrock invokes the Knowledge Base for you.</p>
|
|
1455
|
+
* @public
|
|
1456
|
+
*/
|
|
1457
|
+
bedrockKnowledgeBaseIdentifiers?: string[] | undefined;
|
|
1458
|
+
/**
|
|
1459
|
+
* <p>A label that identifies the RAG sources used for a Knowledge Base evaluation job where you provide your own inference response data.</p>
|
|
1460
|
+
* @public
|
|
1461
|
+
*/
|
|
1462
|
+
precomputedRagSourceIdentifiers?: string[] | undefined;
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* <p>Identifies the models, Knowledge Bases, or other RAG sources evaluated in a model or Knowledge Base evaluation job.</p>
|
|
1466
|
+
* @public
|
|
1467
|
+
*/
|
|
1468
|
+
export interface EvaluationInferenceConfigSummary {
|
|
1469
|
+
/**
|
|
1470
|
+
* <p>A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock
|
|
1471
|
+
* or models outside of Amazon Bedrock that you use to generate your own inference response data.</p>
|
|
1472
|
+
* @public
|
|
1473
|
+
*/
|
|
1474
|
+
modelConfigSummary?: EvaluationModelConfigSummary | undefined;
|
|
1475
|
+
/**
|
|
1476
|
+
* <p>A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in
|
|
1477
|
+
* Amazon Bedrock or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.</p>
|
|
1478
|
+
* @public
|
|
1479
|
+
*/
|
|
1480
|
+
ragConfigSummary?: EvaluationRagConfigSummary | undefined;
|
|
1481
|
+
}
|
|
1343
1482
|
/**
|
|
1344
1483
|
* <p>Summary information of an evaluation job.</p>
|
|
1345
1484
|
* @public
|
|
@@ -1377,11 +1516,15 @@ export interface EvaluationSummary {
|
|
|
1377
1516
|
evaluationTaskTypes: EvaluationTaskType[] | undefined;
|
|
1378
1517
|
/**
|
|
1379
1518
|
* <p>The Amazon Resource Names (ARNs) of the model(s) used for the evaluation job.</p>
|
|
1519
|
+
*
|
|
1520
|
+
* @deprecated
|
|
1380
1521
|
* @public
|
|
1381
1522
|
*/
|
|
1382
1523
|
modelIdentifiers?: string[] | undefined;
|
|
1383
1524
|
/**
|
|
1384
1525
|
* <p>The Amazon Resource Names (ARNs) of the knowledge base resources used for a knowledge base evaluation job.</p>
|
|
1526
|
+
*
|
|
1527
|
+
* @deprecated
|
|
1385
1528
|
* @public
|
|
1386
1529
|
*/
|
|
1387
1530
|
ragIdentifiers?: string[] | undefined;
|
|
@@ -1390,6 +1533,11 @@ export interface EvaluationSummary {
|
|
|
1390
1533
|
* @public
|
|
1391
1534
|
*/
|
|
1392
1535
|
evaluatorModelIdentifiers?: string[] | undefined;
|
|
1536
|
+
/**
|
|
1537
|
+
* <p>Identifies the models, Knowledge Bases, or other RAG sources evaluated in a model or Knowledge Base evaluation job.</p>
|
|
1538
|
+
* @public
|
|
1539
|
+
*/
|
|
1540
|
+
inferenceConfigSummary?: EvaluationInferenceConfigSummary | undefined;
|
|
1393
1541
|
/**
|
|
1394
1542
|
* <p>Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).</p>
|
|
1395
1543
|
* @public
|
|
@@ -5308,16 +5456,6 @@ export interface ListFoundationModelsResponse {
|
|
|
5308
5456
|
*/
|
|
5309
5457
|
modelSummaries?: FoundationModelSummary[] | undefined;
|
|
5310
5458
|
}
|
|
5311
|
-
/**
|
|
5312
|
-
* @public
|
|
5313
|
-
*/
|
|
5314
|
-
export interface GetPromptRouterRequest {
|
|
5315
|
-
/**
|
|
5316
|
-
* <p>The prompt router's ARN</p>
|
|
5317
|
-
* @public
|
|
5318
|
-
*/
|
|
5319
|
-
promptRouterArn: string | undefined;
|
|
5320
|
-
}
|
|
5321
5459
|
/**
|
|
5322
5460
|
* <p>The target model for a prompt router.</p>
|
|
5323
5461
|
* @public
|
|
@@ -5327,7 +5465,7 @@ export interface PromptRouterTargetModel {
|
|
|
5327
5465
|
* <p>The target model's ARN.</p>
|
|
5328
5466
|
* @public
|
|
5329
5467
|
*/
|
|
5330
|
-
modelArn
|
|
5468
|
+
modelArn: string | undefined;
|
|
5331
5469
|
}
|
|
5332
5470
|
/**
|
|
5333
5471
|
* <p>Routing criteria for a prompt router.</p>
|
|
@@ -5340,6 +5478,82 @@ export interface RoutingCriteria {
|
|
|
5340
5478
|
*/
|
|
5341
5479
|
responseQualityDifference: number | undefined;
|
|
5342
5480
|
}
|
|
5481
|
+
/**
|
|
5482
|
+
* @public
|
|
5483
|
+
*/
|
|
5484
|
+
export interface CreatePromptRouterRequest {
|
|
5485
|
+
/**
|
|
5486
|
+
* <p>A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK
|
|
5487
|
+
* automatically generates one for you.</p>
|
|
5488
|
+
* @public
|
|
5489
|
+
*/
|
|
5490
|
+
clientRequestToken?: string | undefined;
|
|
5491
|
+
/**
|
|
5492
|
+
* <p>The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.</p>
|
|
5493
|
+
* @public
|
|
5494
|
+
*/
|
|
5495
|
+
promptRouterName: string | undefined;
|
|
5496
|
+
/**
|
|
5497
|
+
* <p>A list of foundation models that the prompt router can route requests to. At least one model must be specified.</p>
|
|
5498
|
+
* @public
|
|
5499
|
+
*/
|
|
5500
|
+
models: PromptRouterTargetModel[] | undefined;
|
|
5501
|
+
/**
|
|
5502
|
+
* <p>An optional description of the prompt router to help identify its purpose.</p>
|
|
5503
|
+
* @public
|
|
5504
|
+
*/
|
|
5505
|
+
description?: string | undefined;
|
|
5506
|
+
/**
|
|
5507
|
+
* <p>The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.</p>
|
|
5508
|
+
* @public
|
|
5509
|
+
*/
|
|
5510
|
+
routingCriteria: RoutingCriteria | undefined;
|
|
5511
|
+
/**
|
|
5512
|
+
* <p>The default model to use when the routing criteria is not met.</p>
|
|
5513
|
+
* @public
|
|
5514
|
+
*/
|
|
5515
|
+
fallbackModel: PromptRouterTargetModel | undefined;
|
|
5516
|
+
/**
|
|
5517
|
+
* <p>An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.</p>
|
|
5518
|
+
* @public
|
|
5519
|
+
*/
|
|
5520
|
+
tags?: Tag[] | undefined;
|
|
5521
|
+
}
|
|
5522
|
+
/**
|
|
5523
|
+
* @public
|
|
5524
|
+
*/
|
|
5525
|
+
export interface CreatePromptRouterResponse {
|
|
5526
|
+
/**
|
|
5527
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the prompt router.</p>
|
|
5528
|
+
* @public
|
|
5529
|
+
*/
|
|
5530
|
+
promptRouterArn?: string | undefined;
|
|
5531
|
+
}
|
|
5532
|
+
/**
|
|
5533
|
+
* @public
|
|
5534
|
+
*/
|
|
5535
|
+
export interface DeletePromptRouterRequest {
|
|
5536
|
+
/**
|
|
5537
|
+
* <p>The Amazon Resource Name (ARN) of the prompt router to delete.</p>
|
|
5538
|
+
* @public
|
|
5539
|
+
*/
|
|
5540
|
+
promptRouterArn: string | undefined;
|
|
5541
|
+
}
|
|
5542
|
+
/**
|
|
5543
|
+
* @public
|
|
5544
|
+
*/
|
|
5545
|
+
export interface DeletePromptRouterResponse {
|
|
5546
|
+
}
|
|
5547
|
+
/**
|
|
5548
|
+
* @public
|
|
5549
|
+
*/
|
|
5550
|
+
export interface GetPromptRouterRequest {
|
|
5551
|
+
/**
|
|
5552
|
+
* <p>The prompt router's ARN</p>
|
|
5553
|
+
* @public
|
|
5554
|
+
*/
|
|
5555
|
+
promptRouterArn: string | undefined;
|
|
5556
|
+
}
|
|
5343
5557
|
/**
|
|
5344
5558
|
* @public
|
|
5345
5559
|
* @enum
|
|
@@ -5432,6 +5646,11 @@ export interface ListPromptRoutersRequest {
|
|
|
5432
5646
|
* @public
|
|
5433
5647
|
*/
|
|
5434
5648
|
nextToken?: string | undefined;
|
|
5649
|
+
/**
|
|
5650
|
+
* <p>The type of the prompt routers, such as whether it's default or custom.</p>
|
|
5651
|
+
* @public
|
|
5652
|
+
*/
|
|
5653
|
+
type?: PromptRouterType | undefined;
|
|
5435
5654
|
}
|
|
5436
5655
|
/**
|
|
5437
5656
|
* <p>Details about a prompt router.</p>
|
|
@@ -6815,7 +7034,7 @@ export declare namespace KnowledgeBaseConfig {
|
|
|
6815
7034
|
* <p>Contains configuration details for retrieval of information and response generation.</p>
|
|
6816
7035
|
* @public
|
|
6817
7036
|
*/
|
|
6818
|
-
export type RAGConfig = RAGConfig.KnowledgeBaseConfigMember | RAGConfig.$UnknownMember;
|
|
7037
|
+
export type RAGConfig = RAGConfig.KnowledgeBaseConfigMember | RAGConfig.PrecomputedRagSourceConfigMember | RAGConfig.$UnknownMember;
|
|
6819
7038
|
/**
|
|
6820
7039
|
* @public
|
|
6821
7040
|
*/
|
|
@@ -6826,6 +7045,16 @@ export declare namespace RAGConfig {
|
|
|
6826
7045
|
*/
|
|
6827
7046
|
interface KnowledgeBaseConfigMember {
|
|
6828
7047
|
knowledgeBaseConfig: KnowledgeBaseConfig;
|
|
7048
|
+
precomputedRagSourceConfig?: never;
|
|
7049
|
+
$unknown?: never;
|
|
7050
|
+
}
|
|
7051
|
+
/**
|
|
7052
|
+
* <p>Contains configuration details about the RAG source used to generate inference response data for a Knowledge Base evaluation job.</p>
|
|
7053
|
+
* @public
|
|
7054
|
+
*/
|
|
7055
|
+
interface PrecomputedRagSourceConfigMember {
|
|
7056
|
+
knowledgeBaseConfig?: never;
|
|
7057
|
+
precomputedRagSourceConfig: EvaluationPrecomputedRagSourceConfig;
|
|
6829
7058
|
$unknown?: never;
|
|
6830
7059
|
}
|
|
6831
7060
|
/**
|
|
@@ -6833,10 +7062,12 @@ export declare namespace RAGConfig {
|
|
|
6833
7062
|
*/
|
|
6834
7063
|
interface $UnknownMember {
|
|
6835
7064
|
knowledgeBaseConfig?: never;
|
|
7065
|
+
precomputedRagSourceConfig?: never;
|
|
6836
7066
|
$unknown: [string, any];
|
|
6837
7067
|
}
|
|
6838
7068
|
interface Visitor<T> {
|
|
6839
7069
|
knowledgeBaseConfig: (value: KnowledgeBaseConfig) => T;
|
|
7070
|
+
precomputedRagSourceConfig: (value: EvaluationPrecomputedRagSourceConfig) => T;
|
|
6840
7071
|
_: (name: string, value: any) => T;
|
|
6841
7072
|
}
|
|
6842
7073
|
const visit: <T>(value: RAGConfig, visitor: Visitor<T>) => T;
|
|
@@ -7216,6 +7447,10 @@ export declare const TrainingDataConfigFilterSensitiveLog: (obj: TrainingDataCon
|
|
|
7216
7447
|
* @internal
|
|
7217
7448
|
*/
|
|
7218
7449
|
export declare const GetCustomModelResponseFilterSensitiveLog: (obj: GetCustomModelResponse) => any;
|
|
7450
|
+
/**
|
|
7451
|
+
* @internal
|
|
7452
|
+
*/
|
|
7453
|
+
export declare const CreatePromptRouterRequestFilterSensitiveLog: (obj: CreatePromptRouterRequest) => any;
|
|
7219
7454
|
/**
|
|
7220
7455
|
* @internal
|
|
7221
7456
|
*/
|
|
@@ -10,6 +10,7 @@ import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from
|
|
|
10
10
|
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "../commands/CreateModelCustomizationJobCommand";
|
|
11
11
|
import { CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput } from "../commands/CreateModelImportJobCommand";
|
|
12
12
|
import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOutput } from "../commands/CreateModelInvocationJobCommand";
|
|
13
|
+
import { CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput } from "../commands/CreatePromptRouterCommand";
|
|
13
14
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "../commands/CreateProvisionedModelThroughputCommand";
|
|
14
15
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "../commands/DeleteCustomModelCommand";
|
|
15
16
|
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "../commands/DeleteGuardrailCommand";
|
|
@@ -17,6 +18,7 @@ import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } fro
|
|
|
17
18
|
import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "../commands/DeleteInferenceProfileCommand";
|
|
18
19
|
import { DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModelEndpointCommandOutput } from "../commands/DeleteMarketplaceModelEndpointCommand";
|
|
19
20
|
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "../commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
21
|
+
import { DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput } from "../commands/DeletePromptRouterCommand";
|
|
20
22
|
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "../commands/DeleteProvisionedModelThroughputCommand";
|
|
21
23
|
import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "../commands/DeregisterMarketplaceModelEndpointCommand";
|
|
22
24
|
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "../commands/GetCustomModelCommand";
|
|
@@ -97,6 +99,10 @@ export declare const se_CreateModelImportJobCommand: (input: CreateModelImportJo
|
|
|
97
99
|
* serializeAws_restJson1CreateModelInvocationJobCommand
|
|
98
100
|
*/
|
|
99
101
|
export declare const se_CreateModelInvocationJobCommand: (input: CreateModelInvocationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
102
|
+
/**
|
|
103
|
+
* serializeAws_restJson1CreatePromptRouterCommand
|
|
104
|
+
*/
|
|
105
|
+
export declare const se_CreatePromptRouterCommand: (input: CreatePromptRouterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
100
106
|
/**
|
|
101
107
|
* serializeAws_restJson1CreateProvisionedModelThroughputCommand
|
|
102
108
|
*/
|
|
@@ -125,6 +131,10 @@ export declare const se_DeleteMarketplaceModelEndpointCommand: (input: DeleteMar
|
|
|
125
131
|
* serializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand
|
|
126
132
|
*/
|
|
127
133
|
export declare const se_DeleteModelInvocationLoggingConfigurationCommand: (input: DeleteModelInvocationLoggingConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
134
|
+
/**
|
|
135
|
+
* serializeAws_restJson1DeletePromptRouterCommand
|
|
136
|
+
*/
|
|
137
|
+
export declare const se_DeletePromptRouterCommand: (input: DeletePromptRouterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
128
138
|
/**
|
|
129
139
|
* serializeAws_restJson1DeleteProvisionedModelThroughputCommand
|
|
130
140
|
*/
|
|
@@ -325,6 +335,10 @@ export declare const de_CreateModelImportJobCommand: (output: __HttpResponse, co
|
|
|
325
335
|
* deserializeAws_restJson1CreateModelInvocationJobCommand
|
|
326
336
|
*/
|
|
327
337
|
export declare const de_CreateModelInvocationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateModelInvocationJobCommandOutput>;
|
|
338
|
+
/**
|
|
339
|
+
* deserializeAws_restJson1CreatePromptRouterCommand
|
|
340
|
+
*/
|
|
341
|
+
export declare const de_CreatePromptRouterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePromptRouterCommandOutput>;
|
|
328
342
|
/**
|
|
329
343
|
* deserializeAws_restJson1CreateProvisionedModelThroughputCommand
|
|
330
344
|
*/
|
|
@@ -353,6 +367,10 @@ export declare const de_DeleteMarketplaceModelEndpointCommand: (output: __HttpRe
|
|
|
353
367
|
* deserializeAws_restJson1DeleteModelInvocationLoggingConfigurationCommand
|
|
354
368
|
*/
|
|
355
369
|
export declare const de_DeleteModelInvocationLoggingConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;
|
|
370
|
+
/**
|
|
371
|
+
* deserializeAws_restJson1DeletePromptRouterCommand
|
|
372
|
+
*/
|
|
373
|
+
export declare const de_DeletePromptRouterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePromptRouterCommandOutput>;
|
|
356
374
|
/**
|
|
357
375
|
* deserializeAws_restJson1DeleteProvisionedModelThroughputCommand
|
|
358
376
|
*/
|
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
CreateModelInvocationJobCommandInput,
|
|
41
41
|
CreateModelInvocationJobCommandOutput,
|
|
42
42
|
} from "./commands/CreateModelInvocationJobCommand";
|
|
43
|
+
import {
|
|
44
|
+
CreatePromptRouterCommandInput,
|
|
45
|
+
CreatePromptRouterCommandOutput,
|
|
46
|
+
} from "./commands/CreatePromptRouterCommand";
|
|
43
47
|
import {
|
|
44
48
|
CreateProvisionedModelThroughputCommandInput,
|
|
45
49
|
CreateProvisionedModelThroughputCommandOutput,
|
|
@@ -68,6 +72,10 @@ import {
|
|
|
68
72
|
DeleteModelInvocationLoggingConfigurationCommandInput,
|
|
69
73
|
DeleteModelInvocationLoggingConfigurationCommandOutput,
|
|
70
74
|
} from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
75
|
+
import {
|
|
76
|
+
DeletePromptRouterCommandInput,
|
|
77
|
+
DeletePromptRouterCommandOutput,
|
|
78
|
+
} from "./commands/DeletePromptRouterCommand";
|
|
71
79
|
import {
|
|
72
80
|
DeleteProvisionedModelThroughputCommandInput,
|
|
73
81
|
DeleteProvisionedModelThroughputCommandOutput,
|
|
@@ -359,6 +367,19 @@ export interface Bedrock {
|
|
|
359
367
|
options: __HttpHandlerOptions,
|
|
360
368
|
cb: (err: any, data?: CreateModelInvocationJobCommandOutput) => void
|
|
361
369
|
): void;
|
|
370
|
+
createPromptRouter(
|
|
371
|
+
args: CreatePromptRouterCommandInput,
|
|
372
|
+
options?: __HttpHandlerOptions
|
|
373
|
+
): Promise<CreatePromptRouterCommandOutput>;
|
|
374
|
+
createPromptRouter(
|
|
375
|
+
args: CreatePromptRouterCommandInput,
|
|
376
|
+
cb: (err: any, data?: CreatePromptRouterCommandOutput) => void
|
|
377
|
+
): void;
|
|
378
|
+
createPromptRouter(
|
|
379
|
+
args: CreatePromptRouterCommandInput,
|
|
380
|
+
options: __HttpHandlerOptions,
|
|
381
|
+
cb: (err: any, data?: CreatePromptRouterCommandOutput) => void
|
|
382
|
+
): void;
|
|
362
383
|
createProvisionedModelThroughput(
|
|
363
384
|
args: CreateProvisionedModelThroughputCommandInput,
|
|
364
385
|
options?: __HttpHandlerOptions
|
|
@@ -457,6 +478,19 @@ export interface Bedrock {
|
|
|
457
478
|
data?: DeleteModelInvocationLoggingConfigurationCommandOutput
|
|
458
479
|
) => void
|
|
459
480
|
): void;
|
|
481
|
+
deletePromptRouter(
|
|
482
|
+
args: DeletePromptRouterCommandInput,
|
|
483
|
+
options?: __HttpHandlerOptions
|
|
484
|
+
): Promise<DeletePromptRouterCommandOutput>;
|
|
485
|
+
deletePromptRouter(
|
|
486
|
+
args: DeletePromptRouterCommandInput,
|
|
487
|
+
cb: (err: any, data?: DeletePromptRouterCommandOutput) => void
|
|
488
|
+
): void;
|
|
489
|
+
deletePromptRouter(
|
|
490
|
+
args: DeletePromptRouterCommandInput,
|
|
491
|
+
options: __HttpHandlerOptions,
|
|
492
|
+
cb: (err: any, data?: DeletePromptRouterCommandOutput) => void
|
|
493
|
+
): void;
|
|
460
494
|
deleteProvisionedModelThroughput(
|
|
461
495
|
args: DeleteProvisionedModelThroughputCommandInput,
|
|
462
496
|
options?: __HttpHandlerOptions
|
|
@@ -85,6 +85,10 @@ import {
|
|
|
85
85
|
CreateModelInvocationJobCommandInput,
|
|
86
86
|
CreateModelInvocationJobCommandOutput,
|
|
87
87
|
} from "./commands/CreateModelInvocationJobCommand";
|
|
88
|
+
import {
|
|
89
|
+
CreatePromptRouterCommandInput,
|
|
90
|
+
CreatePromptRouterCommandOutput,
|
|
91
|
+
} from "./commands/CreatePromptRouterCommand";
|
|
88
92
|
import {
|
|
89
93
|
CreateProvisionedModelThroughputCommandInput,
|
|
90
94
|
CreateProvisionedModelThroughputCommandOutput,
|
|
@@ -113,6 +117,10 @@ import {
|
|
|
113
117
|
DeleteModelInvocationLoggingConfigurationCommandInput,
|
|
114
118
|
DeleteModelInvocationLoggingConfigurationCommandOutput,
|
|
115
119
|
} from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
120
|
+
import {
|
|
121
|
+
DeletePromptRouterCommandInput,
|
|
122
|
+
DeletePromptRouterCommandOutput,
|
|
123
|
+
} from "./commands/DeletePromptRouterCommand";
|
|
116
124
|
import {
|
|
117
125
|
DeleteProvisionedModelThroughputCommandInput,
|
|
118
126
|
DeleteProvisionedModelThroughputCommandOutput,
|
|
@@ -291,6 +299,7 @@ export type ServiceInputTypes =
|
|
|
291
299
|
| CreateModelCustomizationJobCommandInput
|
|
292
300
|
| CreateModelImportJobCommandInput
|
|
293
301
|
| CreateModelInvocationJobCommandInput
|
|
302
|
+
| CreatePromptRouterCommandInput
|
|
294
303
|
| CreateProvisionedModelThroughputCommandInput
|
|
295
304
|
| DeleteCustomModelCommandInput
|
|
296
305
|
| DeleteGuardrailCommandInput
|
|
@@ -298,6 +307,7 @@ export type ServiceInputTypes =
|
|
|
298
307
|
| DeleteInferenceProfileCommandInput
|
|
299
308
|
| DeleteMarketplaceModelEndpointCommandInput
|
|
300
309
|
| DeleteModelInvocationLoggingConfigurationCommandInput
|
|
310
|
+
| DeletePromptRouterCommandInput
|
|
301
311
|
| DeleteProvisionedModelThroughputCommandInput
|
|
302
312
|
| DeregisterMarketplaceModelEndpointCommandInput
|
|
303
313
|
| GetCustomModelCommandInput
|
|
@@ -349,6 +359,7 @@ export type ServiceOutputTypes =
|
|
|
349
359
|
| CreateModelCustomizationJobCommandOutput
|
|
350
360
|
| CreateModelImportJobCommandOutput
|
|
351
361
|
| CreateModelInvocationJobCommandOutput
|
|
362
|
+
| CreatePromptRouterCommandOutput
|
|
352
363
|
| CreateProvisionedModelThroughputCommandOutput
|
|
353
364
|
| DeleteCustomModelCommandOutput
|
|
354
365
|
| DeleteGuardrailCommandOutput
|
|
@@ -356,6 +367,7 @@ export type ServiceOutputTypes =
|
|
|
356
367
|
| DeleteInferenceProfileCommandOutput
|
|
357
368
|
| DeleteMarketplaceModelEndpointCommandOutput
|
|
358
369
|
| DeleteModelInvocationLoggingConfigurationCommandOutput
|
|
370
|
+
| DeletePromptRouterCommandOutput
|
|
359
371
|
| DeleteProvisionedModelThroughputCommandOutput
|
|
360
372
|
| DeregisterMarketplaceModelEndpointCommandOutput
|
|
361
373
|
| GetCustomModelCommandOutput
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockClient";
|
|
8
|
+
import {
|
|
9
|
+
CreatePromptRouterRequest,
|
|
10
|
+
CreatePromptRouterResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface CreatePromptRouterCommandInput
|
|
15
|
+
extends CreatePromptRouterRequest {}
|
|
16
|
+
export interface CreatePromptRouterCommandOutput
|
|
17
|
+
extends CreatePromptRouterResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const CreatePromptRouterCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: CreatePromptRouterCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
CreatePromptRouterCommandInput,
|
|
24
|
+
CreatePromptRouterCommandOutput,
|
|
25
|
+
BedrockClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
__0_0: CreatePromptRouterCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
CreatePromptRouterCommandInput,
|
|
33
|
+
CreatePromptRouterCommandOutput,
|
|
34
|
+
BedrockClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class CreatePromptRouterCommand extends CreatePromptRouterCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: CreatePromptRouterRequest;
|
|
44
|
+
output: CreatePromptRouterResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: CreatePromptRouterCommandInput;
|
|
48
|
+
output: CreatePromptRouterCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|