@aws-sdk/client-bedrock-agent 3.669.0 → 3.674.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 +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +1 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -2
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-types/commands/CreateFlowCommand.d.ts +0 -2
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +0 -1
- package/dist-types/commands/CreatePromptCommand.d.ts +0 -2
- package/dist-types/commands/CreatePromptVersionCommand.d.ts +0 -1
- package/dist-types/commands/GetFlowCommand.d.ts +0 -1
- package/dist-types/commands/GetFlowVersionCommand.d.ts +0 -1
- package/dist-types/commands/GetIngestionJobCommand.d.ts +1 -1
- package/dist-types/commands/GetPromptCommand.d.ts +0 -1
- package/dist-types/commands/UpdateFlowCommand.d.ts +0 -2
- package/dist-types/commands/UpdatePromptCommand.d.ts +0 -2
- package/dist-types/models/models_0.d.ts +1 -6
- package/dist-types/ts3.4/models/models_0.d.ts +1 -2
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -3296,7 +3296,6 @@ var se_PromptModelInferenceConfiguration = /* @__PURE__ */ __name((input, contex
|
|
|
3296
3296
|
maxTokens: [],
|
|
3297
3297
|
stopSequences: import_smithy_client._json,
|
|
3298
3298
|
temperature: import_smithy_client.serializeFloat,
|
|
3299
|
-
topK: [],
|
|
3300
3299
|
topP: import_smithy_client.serializeFloat
|
|
3301
3300
|
});
|
|
3302
3301
|
}, "se_PromptModelInferenceConfiguration");
|
|
@@ -3796,7 +3795,6 @@ var de_PromptModelInferenceConfiguration = /* @__PURE__ */ __name((output, conte
|
|
|
3796
3795
|
maxTokens: import_smithy_client.expectInt32,
|
|
3797
3796
|
stopSequences: import_smithy_client._json,
|
|
3798
3797
|
temperature: import_smithy_client.limitedParseFloat32,
|
|
3799
|
-
topK: import_smithy_client.expectInt32,
|
|
3800
3798
|
topP: import_smithy_client.limitedParseFloat32
|
|
3801
3799
|
});
|
|
3802
3800
|
}, "de_PromptModelInferenceConfiguration");
|
|
@@ -25,7 +25,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
27
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.
|
|
28
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
29
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
30
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
31
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -31,7 +31,7 @@ const getRuntimeConfig = (config) => {
|
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
33
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
(0, util_user_agent_node_1.
|
|
34
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
35
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
36
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -2094,7 +2094,6 @@ const se_PromptModelInferenceConfiguration = (input, context) => {
|
|
|
2094
2094
|
maxTokens: [],
|
|
2095
2095
|
stopSequences: _json,
|
|
2096
2096
|
temperature: __serializeFloat,
|
|
2097
|
-
topK: [],
|
|
2098
2097
|
topP: __serializeFloat,
|
|
2099
2098
|
});
|
|
2100
2099
|
};
|
|
@@ -2624,7 +2623,6 @@ const de_PromptModelInferenceConfiguration = (output, context) => {
|
|
|
2624
2623
|
maxTokens: __expectInt32,
|
|
2625
2624
|
stopSequences: _json,
|
|
2626
2625
|
temperature: __limitedParseFloat32,
|
|
2627
|
-
topK: __expectInt32,
|
|
2628
2626
|
topP: __limitedParseFloat32,
|
|
2629
2627
|
});
|
|
2630
2628
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import {
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
@@ -21,7 +21,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
23
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
26
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
27
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { NODE_APP_ID_CONFIG_OPTIONS,
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -27,7 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
29
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
-
|
|
30
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
31
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
32
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
33
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -85,7 +85,6 @@ declare const CreateFlowCommand_base: {
|
|
|
85
85
|
* text: { // PromptModelInferenceConfiguration
|
|
86
86
|
* temperature: Number("float"),
|
|
87
87
|
* topP: Number("float"),
|
|
88
|
-
* topK: Number("int"),
|
|
89
88
|
* maxTokens: Number("int"),
|
|
90
89
|
* stopSequences: [ // StopSequences
|
|
91
90
|
* "STRING_VALUE",
|
|
@@ -215,7 +214,6 @@ declare const CreateFlowCommand_base: {
|
|
|
215
214
|
* // text: { // PromptModelInferenceConfiguration
|
|
216
215
|
* // temperature: Number("float"),
|
|
217
216
|
* // topP: Number("float"),
|
|
218
|
-
* // topK: Number("int"),
|
|
219
217
|
* // maxTokens: Number("int"),
|
|
220
218
|
* // stopSequences: [ // StopSequences
|
|
221
219
|
* // "STRING_VALUE",
|
|
@@ -97,7 +97,6 @@ declare const CreateFlowVersionCommand_base: {
|
|
|
97
97
|
* // text: { // PromptModelInferenceConfiguration
|
|
98
98
|
* // temperature: Number("float"),
|
|
99
99
|
* // topP: Number("float"),
|
|
100
|
-
* // topK: Number("int"),
|
|
101
100
|
* // maxTokens: Number("int"),
|
|
102
101
|
* // stopSequences: [ // StopSequences
|
|
103
102
|
* // "STRING_VALUE",
|
|
@@ -58,7 +58,6 @@ declare const CreatePromptCommand_base: {
|
|
|
58
58
|
* text: { // PromptModelInferenceConfiguration
|
|
59
59
|
* temperature: Number("float"),
|
|
60
60
|
* topP: Number("float"),
|
|
61
|
-
* topK: Number("int"),
|
|
62
61
|
* maxTokens: Number("int"),
|
|
63
62
|
* stopSequences: [ // StopSequences
|
|
64
63
|
* "STRING_VALUE",
|
|
@@ -104,7 +103,6 @@ declare const CreatePromptCommand_base: {
|
|
|
104
103
|
* // text: { // PromptModelInferenceConfiguration
|
|
105
104
|
* // temperature: Number("float"),
|
|
106
105
|
* // topP: Number("float"),
|
|
107
|
-
* // topK: Number("int"),
|
|
108
106
|
* // maxTokens: Number("int"),
|
|
109
107
|
* // stopSequences: [ // StopSequences
|
|
110
108
|
* // "STRING_VALUE",
|
|
@@ -68,7 +68,6 @@ declare const CreatePromptVersionCommand_base: {
|
|
|
68
68
|
* // text: { // PromptModelInferenceConfiguration
|
|
69
69
|
* // temperature: Number("float"),
|
|
70
70
|
* // topP: Number("float"),
|
|
71
|
-
* // topK: Number("int"),
|
|
72
71
|
* // maxTokens: Number("int"),
|
|
73
72
|
* // stopSequences: [ // StopSequences
|
|
74
73
|
* // "STRING_VALUE",
|
|
@@ -96,7 +96,6 @@ declare const GetFlowCommand_base: {
|
|
|
96
96
|
* // text: { // PromptModelInferenceConfiguration
|
|
97
97
|
* // temperature: Number("float"),
|
|
98
98
|
* // topP: Number("float"),
|
|
99
|
-
* // topK: Number("int"),
|
|
100
99
|
* // maxTokens: Number("int"),
|
|
101
100
|
* // stopSequences: [ // StopSequences
|
|
102
101
|
* // "STRING_VALUE",
|
|
@@ -96,7 +96,6 @@ declare const GetFlowVersionCommand_base: {
|
|
|
96
96
|
* // text: { // PromptModelInferenceConfiguration
|
|
97
97
|
* // temperature: Number("float"),
|
|
98
98
|
* // topP: Number("float"),
|
|
99
|
-
* // topK: Number("int"),
|
|
100
99
|
* // maxTokens: Number("int"),
|
|
101
100
|
* // stopSequences: [ // StopSequences
|
|
102
101
|
* // "STRING_VALUE",
|
|
@@ -27,7 +27,7 @@ declare const GetIngestionJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large
|
|
30
|
+
* <p>Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -64,7 +64,6 @@ declare const GetPromptCommand_base: {
|
|
|
64
64
|
* // text: { // PromptModelInferenceConfiguration
|
|
65
65
|
* // temperature: Number("float"),
|
|
66
66
|
* // topP: Number("float"),
|
|
67
|
-
* // topK: Number("int"),
|
|
68
67
|
* // maxTokens: Number("int"),
|
|
69
68
|
* // stopSequences: [ // StopSequences
|
|
70
69
|
* // "STRING_VALUE",
|
|
@@ -85,7 +85,6 @@ declare const UpdateFlowCommand_base: {
|
|
|
85
85
|
* text: { // PromptModelInferenceConfiguration
|
|
86
86
|
* temperature: Number("float"),
|
|
87
87
|
* topP: Number("float"),
|
|
88
|
-
* topK: Number("int"),
|
|
89
88
|
* maxTokens: Number("int"),
|
|
90
89
|
* stopSequences: [ // StopSequences
|
|
91
90
|
* "STRING_VALUE",
|
|
@@ -212,7 +211,6 @@ declare const UpdateFlowCommand_base: {
|
|
|
212
211
|
* // text: { // PromptModelInferenceConfiguration
|
|
213
212
|
* // temperature: Number("float"),
|
|
214
213
|
* // topP: Number("float"),
|
|
215
|
-
* // topK: Number("int"),
|
|
216
214
|
* // maxTokens: Number("int"),
|
|
217
215
|
* // stopSequences: [ // StopSequences
|
|
218
216
|
* // "STRING_VALUE",
|
|
@@ -58,7 +58,6 @@ declare const UpdatePromptCommand_base: {
|
|
|
58
58
|
* text: { // PromptModelInferenceConfiguration
|
|
59
59
|
* temperature: Number("float"),
|
|
60
60
|
* topP: Number("float"),
|
|
61
|
-
* topK: Number("int"),
|
|
62
61
|
* maxTokens: Number("int"),
|
|
63
62
|
* stopSequences: [ // StopSequences
|
|
64
63
|
* "STRING_VALUE",
|
|
@@ -101,7 +100,6 @@ declare const UpdatePromptCommand_base: {
|
|
|
101
100
|
* // text: { // PromptModelInferenceConfiguration
|
|
102
101
|
* // temperature: Number("float"),
|
|
103
102
|
* // topP: Number("float"),
|
|
104
|
-
* // topK: Number("int"),
|
|
105
103
|
* // maxTokens: Number("int"),
|
|
106
104
|
* // stopSequences: [ // StopSequences
|
|
107
105
|
* // "STRING_VALUE",
|
|
@@ -3435,11 +3435,6 @@ export interface PromptModelInferenceConfiguration {
|
|
|
3435
3435
|
* @public
|
|
3436
3436
|
*/
|
|
3437
3437
|
topP?: number;
|
|
3438
|
-
/**
|
|
3439
|
-
* <p>The number of most-likely candidates that the model considers for the next token during generation.</p>
|
|
3440
|
-
* @public
|
|
3441
|
-
*/
|
|
3442
|
-
topK?: number;
|
|
3443
3438
|
/**
|
|
3444
3439
|
* <p>The maximum number of tokens to return in the response.</p>
|
|
3445
3440
|
* @public
|
|
@@ -6493,7 +6488,7 @@ export interface PromptVariant {
|
|
|
6493
6488
|
* <p>Contains configurations for the prompt template.</p>
|
|
6494
6489
|
* @public
|
|
6495
6490
|
*/
|
|
6496
|
-
templateConfiguration
|
|
6491
|
+
templateConfiguration: PromptTemplateConfiguration | undefined;
|
|
6497
6492
|
/**
|
|
6498
6493
|
* <p>The unique identifier of the model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> with which to run inference on the prompt.</p>
|
|
6499
6494
|
* @public
|
|
@@ -914,7 +914,6 @@ export interface OutputFlowNodeConfiguration {}
|
|
|
914
914
|
export interface PromptModelInferenceConfiguration {
|
|
915
915
|
temperature?: number;
|
|
916
916
|
topP?: number;
|
|
917
|
-
topK?: number;
|
|
918
917
|
maxTokens?: number;
|
|
919
918
|
stopSequences?: string[];
|
|
920
919
|
}
|
|
@@ -1911,7 +1910,7 @@ export interface PromptMetadataEntry {
|
|
|
1911
1910
|
export interface PromptVariant {
|
|
1912
1911
|
name: string | undefined;
|
|
1913
1912
|
templateType: PromptTemplateType | undefined;
|
|
1914
|
-
templateConfiguration
|
|
1913
|
+
templateConfiguration: PromptTemplateConfiguration | undefined;
|
|
1915
1914
|
modelId?: string;
|
|
1916
1915
|
inferenceConfiguration?: PromptInferenceConfiguration;
|
|
1917
1916
|
metadata?: PromptMetadataEntry[];
|
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.674.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,10 +20,10 @@
|
|
|
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.670.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.670.0",
|
|
25
25
|
"@aws-sdk/core": "3.667.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.670.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.667.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.667.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.667.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.667.0",
|
|
32
32
|
"@aws-sdk/types": "3.667.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.667.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.670.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.669.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.9",
|
|
37
37
|
"@smithy/core": "^2.4.8",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"@smithy/util-middleware": "^3.0.7",
|
|
59
59
|
"@smithy/util-retry": "^3.0.7",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
|
+
"@types/uuid": "^9.0.1",
|
|
61
62
|
"tslib": "^2.6.2",
|
|
62
63
|
"uuid": "^9.0.1"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@tsconfig/node16": "16.1.3",
|
|
66
67
|
"@types/node": "^16.18.96",
|
|
67
|
-
"@types/uuid": "^9.0.4",
|
|
68
68
|
"concurrently": "7.0.0",
|
|
69
69
|
"downlevel-dts": "0.10.1",
|
|
70
70
|
"rimraf": "3.0.2",
|