@aws-sdk/client-bedrock-agent 3.679.0 → 3.682.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 +1 -1
- package/dist-cjs/index.js +19 -9
- package/dist-es/models/models_0.js +9 -9
- package/dist-es/protocols/Aws_restJson1.js +10 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +2 -0
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +1 -0
- package/dist-types/commands/CreatePromptCommand.d.ts +2 -0
- package/dist-types/commands/CreatePromptVersionCommand.d.ts +1 -0
- package/dist-types/commands/GetFlowCommand.d.ts +1 -0
- package/dist-types/commands/GetFlowVersionCommand.d.ts +1 -0
- package/dist-types/commands/GetPromptCommand.d.ts +1 -0
- package/dist-types/commands/UpdateFlowCommand.d.ts +2 -0
- package/dist-types/commands/UpdatePromptCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +49 -2
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ AWS SDK for JavaScript BedrockAgent Client for Node.js, Browser and React Native
|
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
12
|
|
|
13
|
-
To install
|
|
13
|
+
To install this package, simply type add or install @aws-sdk/client-bedrock-agent
|
|
14
14
|
using your favorite package manager:
|
|
15
15
|
|
|
16
16
|
- `npm install @aws-sdk/client-bedrock-agent`
|
package/dist-cjs/index.js
CHANGED
|
@@ -1003,7 +1003,7 @@ var FlowConditionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1003
1003
|
}), "FlowConditionFilterSensitiveLog");
|
|
1004
1004
|
var ConditionFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1005
1005
|
...obj,
|
|
1006
|
-
...obj.conditions && { conditions:
|
|
1006
|
+
...obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }
|
|
1007
1007
|
}), "ConditionFlowNodeConfigurationFilterSensitiveLog");
|
|
1008
1008
|
var TextPromptTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1009
1009
|
...obj,
|
|
@@ -1076,36 +1076,36 @@ var FlowNodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1076
1076
|
}), "FlowNodeFilterSensitiveLog");
|
|
1077
1077
|
var FlowDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1078
1078
|
...obj,
|
|
1079
|
-
...obj.nodes && { nodes:
|
|
1079
|
+
...obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) },
|
|
1080
1080
|
...obj.connections && { connections: obj.connections.map((item) => item) }
|
|
1081
1081
|
}), "FlowDefinitionFilterSensitiveLog");
|
|
1082
1082
|
var CreateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1083
1083
|
...obj,
|
|
1084
|
-
...obj.definition && { definition:
|
|
1084
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1085
1085
|
}), "CreateFlowRequestFilterSensitiveLog");
|
|
1086
1086
|
var CreateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1087
1087
|
...obj,
|
|
1088
|
-
...obj.definition && { definition:
|
|
1088
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1089
1089
|
}), "CreateFlowResponseFilterSensitiveLog");
|
|
1090
1090
|
var CreateFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1091
1091
|
...obj,
|
|
1092
|
-
...obj.definition && { definition:
|
|
1092
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1093
1093
|
}), "CreateFlowVersionResponseFilterSensitiveLog");
|
|
1094
1094
|
var GetFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1095
1095
|
...obj,
|
|
1096
|
-
...obj.definition && { definition:
|
|
1096
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1097
1097
|
}), "GetFlowVersionResponseFilterSensitiveLog");
|
|
1098
1098
|
var GetFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1099
1099
|
...obj,
|
|
1100
|
-
...obj.definition && { definition:
|
|
1100
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1101
1101
|
}), "GetFlowResponseFilterSensitiveLog");
|
|
1102
1102
|
var UpdateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1103
1103
|
...obj,
|
|
1104
|
-
...obj.definition && { definition:
|
|
1104
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1105
1105
|
}), "UpdateFlowRequestFilterSensitiveLog");
|
|
1106
1106
|
var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1107
1107
|
...obj,
|
|
1108
|
-
...obj.definition && { definition:
|
|
1108
|
+
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1109
1109
|
}), "UpdateFlowResponseFilterSensitiveLog");
|
|
1110
1110
|
var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1111
1111
|
...obj,
|
|
@@ -3272,6 +3272,7 @@ var se_PromptFlowNodeConfiguration = /* @__PURE__ */ __name((input, context) =>
|
|
|
3272
3272
|
}, "se_PromptFlowNodeConfiguration");
|
|
3273
3273
|
var se_PromptFlowNodeInlineConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3274
3274
|
return (0, import_smithy_client.take)(input, {
|
|
3275
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
3275
3276
|
inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
|
|
3276
3277
|
modelId: [],
|
|
3277
3278
|
templateConfiguration: import_smithy_client._json,
|
|
@@ -3307,6 +3308,7 @@ var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) =>
|
|
|
3307
3308
|
}, "se_PromptOverrideConfiguration");
|
|
3308
3309
|
var se_PromptVariant = /* @__PURE__ */ __name((input, context) => {
|
|
3309
3310
|
return (0, import_smithy_client.take)(input, {
|
|
3311
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
3310
3312
|
inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
|
|
3311
3313
|
metadata: import_smithy_client._json,
|
|
3312
3314
|
modelId: [],
|
|
@@ -3320,6 +3322,9 @@ var se_PromptVariantList = /* @__PURE__ */ __name((input, context) => {
|
|
|
3320
3322
|
return se_PromptVariant(entry, context);
|
|
3321
3323
|
});
|
|
3322
3324
|
}, "se_PromptVariantList");
|
|
3325
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
3326
|
+
return input;
|
|
3327
|
+
}, "se_Document");
|
|
3323
3328
|
var de_ActionGroupSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
3324
3329
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3325
3330
|
return de_ActionGroupSummary(entry, context);
|
|
@@ -3763,6 +3768,7 @@ var de_PromptFlowNodeConfiguration = /* @__PURE__ */ __name((output, context) =>
|
|
|
3763
3768
|
}, "de_PromptFlowNodeConfiguration");
|
|
3764
3769
|
var de_PromptFlowNodeInlineConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
3765
3770
|
return (0, import_smithy_client.take)(output, {
|
|
3771
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
3766
3772
|
inferenceConfiguration: (_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context),
|
|
3767
3773
|
modelId: import_smithy_client.expectString,
|
|
3768
3774
|
templateConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
@@ -3823,6 +3829,7 @@ var de_PromptSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
3823
3829
|
}, "de_PromptSummary");
|
|
3824
3830
|
var de_PromptVariant = /* @__PURE__ */ __name((output, context) => {
|
|
3825
3831
|
return (0, import_smithy_client.take)(output, {
|
|
3832
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
3826
3833
|
inferenceConfiguration: (_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context),
|
|
3827
3834
|
metadata: import_smithy_client._json,
|
|
3828
3835
|
modelId: import_smithy_client.expectString,
|
|
@@ -3837,6 +3844,9 @@ var de_PromptVariantList = /* @__PURE__ */ __name((output, context) => {
|
|
|
3837
3844
|
});
|
|
3838
3845
|
return retVal;
|
|
3839
3846
|
}, "de_PromptVariantList");
|
|
3847
|
+
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
3848
|
+
return output;
|
|
3849
|
+
}, "de_Document");
|
|
3840
3850
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
3841
3851
|
httpStatusCode: output.statusCode,
|
|
3842
3852
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -581,7 +581,7 @@ export const FlowConditionFilterSensitiveLog = (obj) => ({
|
|
|
581
581
|
});
|
|
582
582
|
export const ConditionFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
|
|
583
583
|
...obj,
|
|
584
|
-
...(obj.conditions && { conditions:
|
|
584
|
+
...(obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }),
|
|
585
585
|
});
|
|
586
586
|
export const TextPromptTemplateConfigurationFilterSensitiveLog = (obj) => ({
|
|
587
587
|
...obj,
|
|
@@ -654,36 +654,36 @@ export const FlowNodeFilterSensitiveLog = (obj) => ({
|
|
|
654
654
|
});
|
|
655
655
|
export const FlowDefinitionFilterSensitiveLog = (obj) => ({
|
|
656
656
|
...obj,
|
|
657
|
-
...(obj.nodes && { nodes:
|
|
657
|
+
...(obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) }),
|
|
658
658
|
...(obj.connections && { connections: obj.connections.map((item) => item) }),
|
|
659
659
|
});
|
|
660
660
|
export const CreateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
661
661
|
...obj,
|
|
662
|
-
...(obj.definition && { definition:
|
|
662
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
663
663
|
});
|
|
664
664
|
export const CreateFlowResponseFilterSensitiveLog = (obj) => ({
|
|
665
665
|
...obj,
|
|
666
|
-
...(obj.definition && { definition:
|
|
666
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
667
667
|
});
|
|
668
668
|
export const CreateFlowVersionResponseFilterSensitiveLog = (obj) => ({
|
|
669
669
|
...obj,
|
|
670
|
-
...(obj.definition && { definition:
|
|
670
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
671
671
|
});
|
|
672
672
|
export const GetFlowVersionResponseFilterSensitiveLog = (obj) => ({
|
|
673
673
|
...obj,
|
|
674
|
-
...(obj.definition && { definition:
|
|
674
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
675
675
|
});
|
|
676
676
|
export const GetFlowResponseFilterSensitiveLog = (obj) => ({
|
|
677
677
|
...obj,
|
|
678
|
-
...(obj.definition && { definition:
|
|
678
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
679
679
|
});
|
|
680
680
|
export const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
681
681
|
...obj,
|
|
682
|
-
...(obj.definition && { definition:
|
|
682
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
683
683
|
});
|
|
684
684
|
export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
|
|
685
685
|
...obj,
|
|
686
|
-
...(obj.definition && { definition:
|
|
686
|
+
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
687
687
|
});
|
|
688
688
|
export const PromptMetadataEntryFilterSensitiveLog = (obj) => ({
|
|
689
689
|
...obj,
|
|
@@ -2070,6 +2070,7 @@ const se_PromptFlowNodeConfiguration = (input, context) => {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
const se_PromptFlowNodeInlineConfiguration = (input, context) => {
|
|
2072
2072
|
return take(input, {
|
|
2073
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
2073
2074
|
inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
|
|
2074
2075
|
modelId: [],
|
|
2075
2076
|
templateConfiguration: _json,
|
|
@@ -2105,6 +2106,7 @@ const se_PromptOverrideConfiguration = (input, context) => {
|
|
|
2105
2106
|
};
|
|
2106
2107
|
const se_PromptVariant = (input, context) => {
|
|
2107
2108
|
return take(input, {
|
|
2109
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
2108
2110
|
inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
|
|
2109
2111
|
metadata: _json,
|
|
2110
2112
|
modelId: [],
|
|
@@ -2120,6 +2122,9 @@ const se_PromptVariantList = (input, context) => {
|
|
|
2120
2122
|
return se_PromptVariant(entry, context);
|
|
2121
2123
|
});
|
|
2122
2124
|
};
|
|
2125
|
+
const se_Document = (input, context) => {
|
|
2126
|
+
return input;
|
|
2127
|
+
};
|
|
2123
2128
|
const de_ActionGroupSummaries = (output, context) => {
|
|
2124
2129
|
const retVal = (output || [])
|
|
2125
2130
|
.filter((e) => e != null)
|
|
@@ -2591,6 +2596,7 @@ const de_PromptFlowNodeConfiguration = (output, context) => {
|
|
|
2591
2596
|
};
|
|
2592
2597
|
const de_PromptFlowNodeInlineConfiguration = (output, context) => {
|
|
2593
2598
|
return take(output, {
|
|
2599
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
2594
2600
|
inferenceConfiguration: (_) => de_PromptInferenceConfiguration(__expectUnion(_), context),
|
|
2595
2601
|
modelId: __expectString,
|
|
2596
2602
|
templateConfiguration: (_) => _json(__expectUnion(_)),
|
|
@@ -2653,6 +2659,7 @@ const de_PromptSummary = (output, context) => {
|
|
|
2653
2659
|
};
|
|
2654
2660
|
const de_PromptVariant = (output, context) => {
|
|
2655
2661
|
return take(output, {
|
|
2662
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
2656
2663
|
inferenceConfiguration: (_) => de_PromptInferenceConfiguration(__expectUnion(_), context),
|
|
2657
2664
|
metadata: _json,
|
|
2658
2665
|
modelId: __expectString,
|
|
@@ -2669,6 +2676,9 @@ const de_PromptVariantList = (output, context) => {
|
|
|
2669
2676
|
});
|
|
2670
2677
|
return retVal;
|
|
2671
2678
|
};
|
|
2679
|
+
const de_Document = (output, context) => {
|
|
2680
|
+
return output;
|
|
2681
|
+
};
|
|
2672
2682
|
const deserializeMetadata = (output) => ({
|
|
2673
2683
|
httpStatusCode: output.statusCode,
|
|
2674
2684
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -91,6 +91,7 @@ declare const CreateFlowCommand_base: {
|
|
|
91
91
|
* ],
|
|
92
92
|
* },
|
|
93
93
|
* },
|
|
94
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
94
95
|
* },
|
|
95
96
|
* },
|
|
96
97
|
* },
|
|
@@ -220,6 +221,7 @@ declare const CreateFlowCommand_base: {
|
|
|
220
221
|
* // ],
|
|
221
222
|
* // },
|
|
222
223
|
* // },
|
|
224
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
223
225
|
* // },
|
|
224
226
|
* // },
|
|
225
227
|
* // },
|
|
@@ -70,6 +70,7 @@ declare const CreatePromptCommand_base: {
|
|
|
70
70
|
* value: "STRING_VALUE", // required
|
|
71
71
|
* },
|
|
72
72
|
* ],
|
|
73
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
73
74
|
* },
|
|
74
75
|
* ],
|
|
75
76
|
* clientToken: "STRING_VALUE",
|
|
@@ -115,6 +116,7 @@ declare const CreatePromptCommand_base: {
|
|
|
115
116
|
* // value: "STRING_VALUE", // required
|
|
116
117
|
* // },
|
|
117
118
|
* // ],
|
|
119
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
118
120
|
* // },
|
|
119
121
|
* // ],
|
|
120
122
|
* // id: "STRING_VALUE", // required
|
|
@@ -91,6 +91,7 @@ declare const UpdateFlowCommand_base: {
|
|
|
91
91
|
* ],
|
|
92
92
|
* },
|
|
93
93
|
* },
|
|
94
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
94
95
|
* },
|
|
95
96
|
* },
|
|
96
97
|
* },
|
|
@@ -217,6 +218,7 @@ declare const UpdateFlowCommand_base: {
|
|
|
217
218
|
* // ],
|
|
218
219
|
* // },
|
|
219
220
|
* // },
|
|
221
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
220
222
|
* // },
|
|
221
223
|
* // },
|
|
222
224
|
* // },
|
|
@@ -70,6 +70,7 @@ declare const UpdatePromptCommand_base: {
|
|
|
70
70
|
* value: "STRING_VALUE", // required
|
|
71
71
|
* },
|
|
72
72
|
* ],
|
|
73
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
73
74
|
* },
|
|
74
75
|
* ],
|
|
75
76
|
* promptIdentifier: "STRING_VALUE", // required
|
|
@@ -112,6 +113,7 @@ declare const UpdatePromptCommand_base: {
|
|
|
112
113
|
* // value: "STRING_VALUE", // required
|
|
113
114
|
* // },
|
|
114
115
|
* // ],
|
|
116
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
115
117
|
* // },
|
|
116
118
|
* // ],
|
|
117
119
|
* // id: "STRING_VALUE", // required
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
3
|
import { BedrockAgentServiceException as __BaseException } from "./BedrockAgentServiceException";
|
|
3
4
|
/**
|
|
4
5
|
* <p>The request is denied because of missing access permissions.</p>
|
|
@@ -1391,7 +1392,25 @@ export interface CreateAgentRequest {
|
|
|
1391
1392
|
*/
|
|
1392
1393
|
instruction?: string;
|
|
1393
1394
|
/**
|
|
1394
|
-
* <p>The
|
|
1395
|
+
* <p>The identifier for the model that you want to be used for orchestration by the agent you create.</p>
|
|
1396
|
+
* <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p>
|
|
1397
|
+
* <ul>
|
|
1398
|
+
* <li>
|
|
1399
|
+
* <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p>
|
|
1400
|
+
* </li>
|
|
1401
|
+
* <li>
|
|
1402
|
+
* <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p>
|
|
1403
|
+
* </li>
|
|
1404
|
+
* <li>
|
|
1405
|
+
* <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
|
|
1406
|
+
* </li>
|
|
1407
|
+
* <li>
|
|
1408
|
+
* <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
|
|
1409
|
+
* </li>
|
|
1410
|
+
* <li>
|
|
1411
|
+
* <p>If you use an <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p>
|
|
1412
|
+
* </li>
|
|
1413
|
+
* </ul>
|
|
1395
1414
|
* @public
|
|
1396
1415
|
*/
|
|
1397
1416
|
foundationModel?: string;
|
|
@@ -1623,7 +1642,25 @@ export interface UpdateAgentRequest {
|
|
|
1623
1642
|
*/
|
|
1624
1643
|
instruction?: string;
|
|
1625
1644
|
/**
|
|
1626
|
-
* <p>
|
|
1645
|
+
* <p>The identifier for the model that you want to be used for orchestration by the agent you create.</p>
|
|
1646
|
+
* <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p>
|
|
1647
|
+
* <ul>
|
|
1648
|
+
* <li>
|
|
1649
|
+
* <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p>
|
|
1650
|
+
* </li>
|
|
1651
|
+
* <li>
|
|
1652
|
+
* <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p>
|
|
1653
|
+
* </li>
|
|
1654
|
+
* <li>
|
|
1655
|
+
* <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
|
|
1656
|
+
* </li>
|
|
1657
|
+
* <li>
|
|
1658
|
+
* <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
|
|
1659
|
+
* </li>
|
|
1660
|
+
* <li>
|
|
1661
|
+
* <p>If you use an <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p>
|
|
1662
|
+
* </li>
|
|
1663
|
+
* </ul>
|
|
1627
1664
|
* @public
|
|
1628
1665
|
*/
|
|
1629
1666
|
foundationModel: string | undefined;
|
|
@@ -3569,6 +3606,11 @@ export interface PromptFlowNodeInlineConfiguration {
|
|
|
3569
3606
|
* @public
|
|
3570
3607
|
*/
|
|
3571
3608
|
inferenceConfiguration?: PromptInferenceConfiguration;
|
|
3609
|
+
/**
|
|
3610
|
+
* <p>Contains model-specific inference configurations that aren't in the <code>inferenceConfiguration</code> field. To see model-specific inference parameters, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference request parameters and response fields for foundation models</a>.</p>
|
|
3611
|
+
* @public
|
|
3612
|
+
*/
|
|
3613
|
+
additionalModelRequestFields?: __DocumentType;
|
|
3572
3614
|
}
|
|
3573
3615
|
/**
|
|
3574
3616
|
* <p>Contains configurations for a prompt from Prompt management to use in a node.</p>
|
|
@@ -6504,6 +6546,11 @@ export interface PromptVariant {
|
|
|
6504
6546
|
* @public
|
|
6505
6547
|
*/
|
|
6506
6548
|
metadata?: PromptMetadataEntry[];
|
|
6549
|
+
/**
|
|
6550
|
+
* <p>Contains model-specific inference configurations that aren't in the <code>inferenceConfiguration</code> field. To see model-specific inference parameters, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference request parameters and response fields for foundation models</a>.</p>
|
|
6551
|
+
* @public
|
|
6552
|
+
*/
|
|
6553
|
+
additionalModelRequestFields?: __DocumentType;
|
|
6507
6554
|
}
|
|
6508
6555
|
/**
|
|
6509
6556
|
* @public
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
3
|
import { BedrockAgentServiceException as __BaseException } from "./BedrockAgentServiceException";
|
|
3
4
|
export declare class AccessDeniedException extends __BaseException {
|
|
4
5
|
readonly name: "AccessDeniedException";
|
|
@@ -976,6 +977,7 @@ export interface PromptFlowNodeInlineConfiguration {
|
|
|
976
977
|
templateConfiguration: PromptTemplateConfiguration | undefined;
|
|
977
978
|
modelId: string | undefined;
|
|
978
979
|
inferenceConfiguration?: PromptInferenceConfiguration;
|
|
980
|
+
additionalModelRequestFields?: __DocumentType;
|
|
979
981
|
}
|
|
980
982
|
export interface PromptFlowNodeResourceConfiguration {
|
|
981
983
|
promptArn: string | undefined;
|
|
@@ -1914,6 +1916,7 @@ export interface PromptVariant {
|
|
|
1914
1916
|
modelId?: string;
|
|
1915
1917
|
inferenceConfiguration?: PromptInferenceConfiguration;
|
|
1916
1918
|
metadata?: PromptMetadataEntry[];
|
|
1919
|
+
additionalModelRequestFields?: __DocumentType;
|
|
1917
1920
|
}
|
|
1918
1921
|
export interface CreatePromptRequest {
|
|
1919
1922
|
name: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.682.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.682.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.682.0",
|
|
25
25
|
"@aws-sdk/core": "3.679.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.682.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.679.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
32
32
|
"@aws-sdk/types": "3.679.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.679.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.9",
|
|
37
37
|
"@smithy/core": "^2.4.8",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.2.9",
|