@aws-sdk/client-bedrock 3.726.1 → 3.730.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 +6 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +3 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +28 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/package.json +6 -8
package/dist-cjs/index.js
CHANGED
|
@@ -166,6 +166,7 @@ __export(src_exports, {
|
|
|
166
166
|
ModelInvocationJobStatus: () => ModelInvocationJobStatus,
|
|
167
167
|
ModelInvocationJobSummaryFilterSensitiveLog: () => ModelInvocationJobSummaryFilterSensitiveLog,
|
|
168
168
|
ModelModality: () => ModelModality,
|
|
169
|
+
PerformanceConfigLatency: () => PerformanceConfigLatency,
|
|
169
170
|
PromptRouterStatus: () => PromptRouterStatus,
|
|
170
171
|
PromptRouterSummaryFilterSensitiveLog: () => PromptRouterSummaryFilterSensitiveLog,
|
|
171
172
|
PromptRouterType: () => PromptRouterType,
|
|
@@ -594,6 +595,10 @@ var EvaluationConfig;
|
|
|
594
595
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
595
596
|
}, "visit");
|
|
596
597
|
})(EvaluationConfig || (EvaluationConfig = {}));
|
|
598
|
+
var PerformanceConfigLatency = {
|
|
599
|
+
OPTIMIZED: "optimized",
|
|
600
|
+
STANDARD: "standard"
|
|
601
|
+
};
|
|
597
602
|
var EvaluationModelConfig;
|
|
598
603
|
((EvaluationModelConfig3) => {
|
|
599
604
|
EvaluationModelConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -5004,6 +5009,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5004
5009
|
EvaluationTaskType,
|
|
5005
5010
|
EvaluatorModelConfig,
|
|
5006
5011
|
EvaluationConfig,
|
|
5012
|
+
PerformanceConfigLatency,
|
|
5007
5013
|
EvaluationModelConfig,
|
|
5008
5014
|
ExternalSourceType,
|
|
5009
5015
|
QueryTransformationType,
|
|
@@ -153,6 +153,10 @@ export var EvaluationConfig;
|
|
|
153
153
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
154
154
|
};
|
|
155
155
|
})(EvaluationConfig || (EvaluationConfig = {}));
|
|
156
|
+
export const PerformanceConfigLatency = {
|
|
157
|
+
OPTIMIZED: "optimized",
|
|
158
|
+
STANDARD: "standard",
|
|
159
|
+
};
|
|
156
160
|
export var EvaluationModelConfig;
|
|
157
161
|
(function (EvaluationModelConfig) {
|
|
158
162
|
EvaluationModelConfig.visit = (value, visitor) => {
|
|
@@ -105,6 +105,9 @@ declare const CreateEvaluationJobCommand_base: {
|
|
|
105
105
|
* bedrockModel: { // EvaluationBedrockModel
|
|
106
106
|
* modelIdentifier: "STRING_VALUE", // required
|
|
107
107
|
* inferenceParams: "STRING_VALUE",
|
|
108
|
+
* performanceConfig: { // PerformanceConfiguration
|
|
109
|
+
* latency: "standard" || "optimized",
|
|
110
|
+
* },
|
|
108
111
|
* },
|
|
109
112
|
* },
|
|
110
113
|
* ],
|
|
@@ -106,6 +106,9 @@ declare const GetEvaluationJobCommand_base: {
|
|
|
106
106
|
* // bedrockModel: { // EvaluationBedrockModel
|
|
107
107
|
* // modelIdentifier: "STRING_VALUE", // required
|
|
108
108
|
* // inferenceParams: "STRING_VALUE",
|
|
109
|
+
* // performanceConfig: { // PerformanceConfiguration
|
|
110
|
+
* // latency: "standard" || "optimized",
|
|
111
|
+
* // },
|
|
109
112
|
* // },
|
|
110
113
|
* // },
|
|
111
114
|
* // ],
|
|
@@ -845,6 +845,29 @@ export declare namespace EvaluationConfig {
|
|
|
845
845
|
}
|
|
846
846
|
const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
|
|
847
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* @public
|
|
850
|
+
* @enum
|
|
851
|
+
*/
|
|
852
|
+
export declare const PerformanceConfigLatency: {
|
|
853
|
+
readonly OPTIMIZED: "optimized";
|
|
854
|
+
readonly STANDARD: "standard";
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* @public
|
|
858
|
+
*/
|
|
859
|
+
export type PerformanceConfigLatency = (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
860
|
+
/**
|
|
861
|
+
* <p>Contains performance settings for a model.</p>
|
|
862
|
+
* @public
|
|
863
|
+
*/
|
|
864
|
+
export interface PerformanceConfiguration {
|
|
865
|
+
/**
|
|
866
|
+
* <p>Specifies whether to use the latency-optimized or standard version of a model or inference profile.</p>
|
|
867
|
+
* @public
|
|
868
|
+
*/
|
|
869
|
+
latency?: PerformanceConfigLatency | undefined;
|
|
870
|
+
}
|
|
848
871
|
/**
|
|
849
872
|
* <p>Contains the ARN of the Amazon Bedrock model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> specified in your evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
850
873
|
* <p>The <code>inferenceParams</code> are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, <code>"temperature":"0.25"</code> key value pair would need to be formatted as <code>\"temperature\":\"0.25\"</code> to successfully accepted in the request.</p>
|
|
@@ -861,6 +884,11 @@ export interface EvaluationBedrockModel {
|
|
|
861
884
|
* @public
|
|
862
885
|
*/
|
|
863
886
|
inferenceParams?: string | undefined;
|
|
887
|
+
/**
|
|
888
|
+
* <p>Specifies performance settings for the model or inference profile.</p>
|
|
889
|
+
* @public
|
|
890
|
+
*/
|
|
891
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
864
892
|
}
|
|
865
893
|
/**
|
|
866
894
|
* <p>Defines the models used in the model evaluation job.</p>
|
|
@@ -295,9 +295,19 @@ export declare namespace EvaluationConfig {
|
|
|
295
295
|
}
|
|
296
296
|
const visit: <T>(value: EvaluationConfig, visitor: Visitor<T>) => T;
|
|
297
297
|
}
|
|
298
|
+
export declare const PerformanceConfigLatency: {
|
|
299
|
+
readonly OPTIMIZED: "optimized";
|
|
300
|
+
readonly STANDARD: "standard";
|
|
301
|
+
};
|
|
302
|
+
export type PerformanceConfigLatency =
|
|
303
|
+
(typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
304
|
+
export interface PerformanceConfiguration {
|
|
305
|
+
latency?: PerformanceConfigLatency | undefined;
|
|
306
|
+
}
|
|
298
307
|
export interface EvaluationBedrockModel {
|
|
299
308
|
modelIdentifier: string | undefined;
|
|
300
309
|
inferenceParams?: string | undefined;
|
|
310
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
301
311
|
}
|
|
302
312
|
export type EvaluationModelConfig =
|
|
303
313
|
| EvaluationModelConfig.BedrockModelMember
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.730.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",
|
|
@@ -20,19 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/
|
|
24
|
-
"@aws-sdk/
|
|
25
|
-
"@aws-sdk/core": "3.723.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.726.0",
|
|
23
|
+
"@aws-sdk/core": "3.730.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.730.0",
|
|
27
25
|
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
28
26
|
"@aws-sdk/middleware-logger": "3.723.0",
|
|
29
27
|
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.730.0",
|
|
31
29
|
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
32
30
|
"@aws-sdk/types": "3.723.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.730.0",
|
|
34
32
|
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.730.0",
|
|
36
34
|
"@smithy/config-resolver": "^4.0.0",
|
|
37
35
|
"@smithy/core": "^3.0.0",
|
|
38
36
|
"@smithy/fetch-http-handler": "^5.0.0",
|