@aws-sdk/client-bedrock-agent 3.743.0 → 3.747.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 +2 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +2 -0
- package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentCommand.d.ts +1 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +1 -0
- package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -4032,6 +4032,7 @@ var se_MetadataAttributeValue = /* @__PURE__ */ __name((input, context) => {
|
|
|
4032
4032
|
}, "se_MetadataAttributeValue");
|
|
4033
4033
|
var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4034
4034
|
return (0, import_smithy_client.take)(input, {
|
|
4035
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
4035
4036
|
basePromptTemplate: [],
|
|
4036
4037
|
foundationModel: [],
|
|
4037
4038
|
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
@@ -4629,6 +4630,7 @@ var de_KnowledgeBaseSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
4629
4630
|
}, "de_KnowledgeBaseSummary");
|
|
4630
4631
|
var de_PromptConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
4631
4632
|
return (0, import_smithy_client.take)(output, {
|
|
4633
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
4632
4634
|
basePromptTemplate: import_smithy_client.expectString,
|
|
4633
4635
|
foundationModel: import_smithy_client.expectString,
|
|
4634
4636
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
@@ -2422,6 +2422,7 @@ const se_MetadataAttributeValue = (input, context) => {
|
|
|
2422
2422
|
};
|
|
2423
2423
|
const se_PromptConfiguration = (input, context) => {
|
|
2424
2424
|
return take(input, {
|
|
2425
|
+
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
2425
2426
|
basePromptTemplate: [],
|
|
2426
2427
|
foundationModel: [],
|
|
2427
2428
|
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
@@ -3055,6 +3056,7 @@ const de_KnowledgeBaseSummary = (output, context) => {
|
|
|
3055
3056
|
};
|
|
3056
3057
|
const de_PromptConfiguration = (output, context) => {
|
|
3057
3058
|
return take(output, {
|
|
3059
|
+
additionalModelRequestFields: (_) => de_Document(_, context),
|
|
3058
3060
|
basePromptTemplate: __expectString,
|
|
3059
3061
|
foundationModel: __expectString,
|
|
3060
3062
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
@@ -101,6 +101,7 @@ declare const CreateAgentCommand_base: {
|
|
|
101
101
|
* },
|
|
102
102
|
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
103
103
|
* foundationModel: "STRING_VALUE",
|
|
104
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
104
105
|
* },
|
|
105
106
|
* ],
|
|
106
107
|
* overrideLambda: "STRING_VALUE",
|
|
@@ -169,6 +170,7 @@ declare const CreateAgentCommand_base: {
|
|
|
169
170
|
* // },
|
|
170
171
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
171
172
|
* // foundationModel: "STRING_VALUE",
|
|
173
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
172
174
|
* // },
|
|
173
175
|
* // ],
|
|
174
176
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -28,7 +28,7 @@ declare const DeleteKnowledgeBaseDocumentsCommand_base: {
|
|
|
28
28
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* <p>Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
|
31
|
+
* <p>Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetKnowledgeBaseDocumentsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves specific documents from a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
|
30
|
+
* <p>Retrieves specific documents from a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const IngestKnowledgeBaseDocumentsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Ingests documents directly into the knowledge base that is connected to the data source. The <code>dataSourceType</code> specified in the content for each document must match the type of the data source that you specify in the header. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
|
30
|
+
* <p>Ingests documents directly into the knowledge base that is connected to the data source. The <code>dataSourceType</code> specified in the content for each document must match the type of the data source that you specify in the header. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const ListKnowledgeBaseDocumentsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves all the documents contained in a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-
|
|
30
|
+
* <p>Retrieves all the documents contained in a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-direct-ingestion.html">Ingest changes directly into a knowledge base</a> in the Amazon Bedrock User Guide.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -67,6 +67,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
67
67
|
* },
|
|
68
68
|
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
69
69
|
* foundationModel: "STRING_VALUE",
|
|
70
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
70
71
|
* },
|
|
71
72
|
* ],
|
|
72
73
|
* overrideLambda: "STRING_VALUE",
|
|
@@ -135,6 +136,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
135
136
|
* // },
|
|
136
137
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
137
138
|
* // foundationModel: "STRING_VALUE",
|
|
139
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
138
140
|
* // },
|
|
139
141
|
* // ],
|
|
140
142
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -1052,6 +1052,17 @@ export interface PromptConfiguration {
|
|
|
1052
1052
|
* @public
|
|
1053
1053
|
*/
|
|
1054
1054
|
foundationModel?: string | undefined;
|
|
1055
|
+
/**
|
|
1056
|
+
* <p>If the Converse or ConverseStream operations support the model,
|
|
1057
|
+
* <code>additionalModelRequestFields</code> contains additional inference parameters,
|
|
1058
|
+
* beyond the base set of inference parameters in the <code>inferenceConfiguration</code>
|
|
1059
|
+
* field. </p>
|
|
1060
|
+
* <p>For more information, see <i>Inference request parameters and
|
|
1061
|
+
* response fields for foundation models</i> in the Amazon Bedrock user
|
|
1062
|
+
* guide.</p>
|
|
1063
|
+
* @public
|
|
1064
|
+
*/
|
|
1065
|
+
additionalModelRequestFields?: __DocumentType | undefined;
|
|
1055
1066
|
}
|
|
1056
1067
|
/**
|
|
1057
1068
|
* <p>Contains configurations to override prompts in different parts of an agent sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>
|
|
@@ -342,6 +342,7 @@ export interface PromptConfiguration {
|
|
|
342
342
|
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
343
343
|
parserMode?: CreationMode | undefined;
|
|
344
344
|
foundationModel?: string | undefined;
|
|
345
|
+
additionalModelRequestFields?: __DocumentType | undefined;
|
|
345
346
|
}
|
|
346
347
|
export interface PromptOverrideConfiguration {
|
|
347
348
|
promptConfigurations: PromptConfiguration[] | 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.747.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,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.744.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.744.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.744.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.744.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.0.1",
|
|
35
|
-
"@smithy/core": "^3.1.
|
|
35
|
+
"@smithy/core": "^3.1.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.1",
|
|
37
37
|
"@smithy/hash-node": "^4.0.1",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.0.
|
|
41
|
-
"@smithy/middleware-retry": "^4.0.
|
|
42
|
-
"@smithy/middleware-serde": "^4.0.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.0.3",
|
|
41
|
+
"@smithy/middleware-retry": "^4.0.4",
|
|
42
|
+
"@smithy/middleware-serde": "^4.0.2",
|
|
43
43
|
"@smithy/middleware-stack": "^4.0.1",
|
|
44
44
|
"@smithy/node-config-provider": "^4.0.1",
|
|
45
45
|
"@smithy/node-http-handler": "^4.0.2",
|
|
46
46
|
"@smithy/protocol-http": "^5.0.1",
|
|
47
|
-
"@smithy/smithy-client": "^4.1.
|
|
47
|
+
"@smithy/smithy-client": "^4.1.3",
|
|
48
48
|
"@smithy/types": "^4.1.0",
|
|
49
49
|
"@smithy/url-parser": "^4.0.1",
|
|
50
50
|
"@smithy/util-base64": "^4.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.0.4",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.0.4",
|
|
55
55
|
"@smithy/util-endpoints": "^3.0.1",
|
|
56
56
|
"@smithy/util-middleware": "^4.0.1",
|
|
57
57
|
"@smithy/util-retry": "^4.0.1",
|