@aws-sdk/client-bedrock-agent 3.670.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 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");
@@ -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
  };
@@ -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 Lanaguage Models (LLMs) can use your data.</p>
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?: PromptTemplateConfiguration;
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?: PromptTemplateConfiguration;
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.670.0",
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",
@@ -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",