@aws-sdk/client-bedrock-agent 3.699.0 → 3.702.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 +31 -0
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +12 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +2 -0
- package/dist-types/commands/GetAgentCommand.d.ts +6 -0
- package/dist-types/commands/GetAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +124 -50
- package/dist-types/models/models_1.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +40 -14
- package/dist-types/ts3.4/models/models_1.d.ts +14 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __export(src_exports, {
|
|
|
90
90
|
DeletePromptCommand: () => DeletePromptCommand,
|
|
91
91
|
DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
|
|
92
92
|
DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog: () => DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
|
|
93
|
+
EmbeddingDataType: () => EmbeddingDataType,
|
|
93
94
|
FlowConditionFilterSensitiveLog: () => FlowConditionFilterSensitiveLog,
|
|
94
95
|
FlowConnectionConfiguration: () => FlowConnectionConfiguration,
|
|
95
96
|
FlowConnectionType: () => FlowConnectionType,
|
|
@@ -150,6 +151,8 @@ __export(src_exports, {
|
|
|
150
151
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
151
152
|
MemoryType: () => MemoryType,
|
|
152
153
|
MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
|
|
154
|
+
OrchestrationExecutor: () => OrchestrationExecutor,
|
|
155
|
+
OrchestrationType: () => OrchestrationType,
|
|
153
156
|
ParsingStrategy: () => ParsingStrategy,
|
|
154
157
|
PatternObjectFilterConfigurationFilterSensitiveLog: () => PatternObjectFilterConfigurationFilterSensitiveLog,
|
|
155
158
|
PatternObjectFilterFilterSensitiveLog: () => PatternObjectFilterFilterSensitiveLog,
|
|
@@ -590,9 +593,21 @@ var AgentStatus = {
|
|
|
590
593
|
UPDATING: "UPDATING",
|
|
591
594
|
VERSIONING: "VERSIONING"
|
|
592
595
|
};
|
|
596
|
+
var OrchestrationExecutor;
|
|
597
|
+
((OrchestrationExecutor3) => {
|
|
598
|
+
OrchestrationExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
599
|
+
if (value.lambda !== void 0)
|
|
600
|
+
return visitor.lambda(value.lambda);
|
|
601
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
602
|
+
}, "visit");
|
|
603
|
+
})(OrchestrationExecutor || (OrchestrationExecutor = {}));
|
|
593
604
|
var MemoryType = {
|
|
594
605
|
SESSION_SUMMARY: "SESSION_SUMMARY"
|
|
595
606
|
};
|
|
607
|
+
var OrchestrationType = {
|
|
608
|
+
CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
|
|
609
|
+
DEFAULT: "DEFAULT"
|
|
610
|
+
};
|
|
596
611
|
var CreationMode = {
|
|
597
612
|
DEFAULT: "DEFAULT",
|
|
598
613
|
OVERRIDDEN: "OVERRIDDEN"
|
|
@@ -948,6 +963,10 @@ var SortOrder = {
|
|
|
948
963
|
var KnowledgeBaseType = {
|
|
949
964
|
VECTOR: "VECTOR"
|
|
950
965
|
};
|
|
966
|
+
var EmbeddingDataType = {
|
|
967
|
+
BINARY: "BINARY",
|
|
968
|
+
FLOAT32: "FLOAT32"
|
|
969
|
+
};
|
|
951
970
|
var KnowledgeBaseStorageType = {
|
|
952
971
|
MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
|
|
953
972
|
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
@@ -1014,11 +1033,13 @@ var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1014
1033
|
var AgentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1015
1034
|
...obj,
|
|
1016
1035
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1036
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1017
1037
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1018
1038
|
}), "AgentFilterSensitiveLog");
|
|
1019
1039
|
var CreateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1020
1040
|
...obj,
|
|
1021
1041
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1042
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1022
1043
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1023
1044
|
}), "CreateAgentRequestFilterSensitiveLog");
|
|
1024
1045
|
var CreateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -1032,6 +1053,7 @@ var GetAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1032
1053
|
var UpdateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1033
1054
|
...obj,
|
|
1034
1055
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1056
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1035
1057
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1036
1058
|
}), "UpdateAgentRequestFilterSensitiveLog");
|
|
1037
1059
|
var UpdateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -1404,6 +1426,7 @@ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1404
1426
|
agentName: [],
|
|
1405
1427
|
agentResourceRoleArn: [],
|
|
1406
1428
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1429
|
+
customOrchestration: (_) => (0, import_smithy_client._json)(_),
|
|
1407
1430
|
customerEncryptionKeyArn: [],
|
|
1408
1431
|
description: [],
|
|
1409
1432
|
foundationModel: [],
|
|
@@ -1411,6 +1434,7 @@ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1411
1434
|
idleSessionTTLInSeconds: [],
|
|
1412
1435
|
instruction: [],
|
|
1413
1436
|
memoryConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
1437
|
+
orchestrationType: [],
|
|
1414
1438
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
1415
1439
|
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1416
1440
|
})
|
|
@@ -2136,6 +2160,7 @@ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2136
2160
|
(0, import_smithy_client.take)(input, {
|
|
2137
2161
|
agentName: [],
|
|
2138
2162
|
agentResourceRoleArn: [],
|
|
2163
|
+
customOrchestration: (_) => (0, import_smithy_client._json)(_),
|
|
2139
2164
|
customerEncryptionKeyArn: [],
|
|
2140
2165
|
description: [],
|
|
2141
2166
|
foundationModel: [],
|
|
@@ -2143,6 +2168,7 @@ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2143
2168
|
idleSessionTTLInSeconds: [],
|
|
2144
2169
|
instruction: [],
|
|
2145
2170
|
memoryConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2171
|
+
orchestrationType: [],
|
|
2146
2172
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
|
|
2147
2173
|
})
|
|
2148
2174
|
);
|
|
@@ -3649,6 +3675,7 @@ var de_Agent = /* @__PURE__ */ __name((output, context) => {
|
|
|
3649
3675
|
agentVersion: import_smithy_client.expectString,
|
|
3650
3676
|
clientToken: import_smithy_client.expectString,
|
|
3651
3677
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3678
|
+
customOrchestration: import_smithy_client._json,
|
|
3652
3679
|
customerEncryptionKeyArn: import_smithy_client.expectString,
|
|
3653
3680
|
description: import_smithy_client.expectString,
|
|
3654
3681
|
failureReasons: import_smithy_client._json,
|
|
@@ -3657,6 +3684,7 @@ var de_Agent = /* @__PURE__ */ __name((output, context) => {
|
|
|
3657
3684
|
idleSessionTTLInSeconds: import_smithy_client.expectInt32,
|
|
3658
3685
|
instruction: import_smithy_client.expectString,
|
|
3659
3686
|
memoryConfiguration: import_smithy_client._json,
|
|
3687
|
+
orchestrationType: import_smithy_client.expectString,
|
|
3660
3688
|
preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3661
3689
|
promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
|
|
3662
3690
|
recommendedActions: import_smithy_client._json,
|
|
@@ -5386,7 +5414,9 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5386
5414
|
ThrottlingException,
|
|
5387
5415
|
ValidationException,
|
|
5388
5416
|
AgentStatus,
|
|
5417
|
+
OrchestrationExecutor,
|
|
5389
5418
|
MemoryType,
|
|
5419
|
+
OrchestrationType,
|
|
5390
5420
|
CreationMode,
|
|
5391
5421
|
PromptState,
|
|
5392
5422
|
PromptType,
|
|
@@ -5432,6 +5462,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5432
5462
|
IngestionJobSortByAttribute,
|
|
5433
5463
|
SortOrder,
|
|
5434
5464
|
KnowledgeBaseType,
|
|
5465
|
+
EmbeddingDataType,
|
|
5435
5466
|
KnowledgeBaseStorageType,
|
|
5436
5467
|
KnowledgeBaseStatus,
|
|
5437
5468
|
APISchemaFilterSensitiveLog,
|
|
@@ -145,9 +145,21 @@ export const AgentStatus = {
|
|
|
145
145
|
UPDATING: "UPDATING",
|
|
146
146
|
VERSIONING: "VERSIONING",
|
|
147
147
|
};
|
|
148
|
+
export var OrchestrationExecutor;
|
|
149
|
+
(function (OrchestrationExecutor) {
|
|
150
|
+
OrchestrationExecutor.visit = (value, visitor) => {
|
|
151
|
+
if (value.lambda !== undefined)
|
|
152
|
+
return visitor.lambda(value.lambda);
|
|
153
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
154
|
+
};
|
|
155
|
+
})(OrchestrationExecutor || (OrchestrationExecutor = {}));
|
|
148
156
|
export const MemoryType = {
|
|
149
157
|
SESSION_SUMMARY: "SESSION_SUMMARY",
|
|
150
158
|
};
|
|
159
|
+
export const OrchestrationType = {
|
|
160
|
+
CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
|
|
161
|
+
DEFAULT: "DEFAULT",
|
|
162
|
+
};
|
|
151
163
|
export const CreationMode = {
|
|
152
164
|
DEFAULT: "DEFAULT",
|
|
153
165
|
OVERRIDDEN: "OVERRIDDEN",
|
|
@@ -503,6 +515,10 @@ export const SortOrder = {
|
|
|
503
515
|
export const KnowledgeBaseType = {
|
|
504
516
|
VECTOR: "VECTOR",
|
|
505
517
|
};
|
|
518
|
+
export const EmbeddingDataType = {
|
|
519
|
+
BINARY: "BINARY",
|
|
520
|
+
FLOAT32: "FLOAT32",
|
|
521
|
+
};
|
|
506
522
|
export const KnowledgeBaseStorageType = {
|
|
507
523
|
MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
|
|
508
524
|
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
@@ -569,11 +585,13 @@ export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
569
585
|
export const AgentFilterSensitiveLog = (obj) => ({
|
|
570
586
|
...obj,
|
|
571
587
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
588
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
572
589
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
573
590
|
});
|
|
574
591
|
export const CreateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
575
592
|
...obj,
|
|
576
593
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
594
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
577
595
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
578
596
|
});
|
|
579
597
|
export const CreateAgentResponseFilterSensitiveLog = (obj) => ({
|
|
@@ -587,6 +605,7 @@ export const GetAgentResponseFilterSensitiveLog = (obj) => ({
|
|
|
587
605
|
export const UpdateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
588
606
|
...obj,
|
|
589
607
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
608
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
590
609
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
591
610
|
});
|
|
592
611
|
export const UpdateAgentResponseFilterSensitiveLog = (obj) => ({
|
|
@@ -32,6 +32,7 @@ export const se_CreateAgentCommand = async (input, context) => {
|
|
|
32
32
|
agentName: [],
|
|
33
33
|
agentResourceRoleArn: [],
|
|
34
34
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
35
|
+
customOrchestration: (_) => _json(_),
|
|
35
36
|
customerEncryptionKeyArn: [],
|
|
36
37
|
description: [],
|
|
37
38
|
foundationModel: [],
|
|
@@ -39,6 +40,7 @@ export const se_CreateAgentCommand = async (input, context) => {
|
|
|
39
40
|
idleSessionTTLInSeconds: [],
|
|
40
41
|
instruction: [],
|
|
41
42
|
memoryConfiguration: (_) => _json(_),
|
|
43
|
+
orchestrationType: [],
|
|
42
44
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
43
45
|
tags: (_) => _json(_),
|
|
44
46
|
}));
|
|
@@ -724,6 +726,7 @@ export const se_UpdateAgentCommand = async (input, context) => {
|
|
|
724
726
|
body = JSON.stringify(take(input, {
|
|
725
727
|
agentName: [],
|
|
726
728
|
agentResourceRoleArn: [],
|
|
729
|
+
customOrchestration: (_) => _json(_),
|
|
727
730
|
customerEncryptionKeyArn: [],
|
|
728
731
|
description: [],
|
|
729
732
|
foundationModel: [],
|
|
@@ -731,6 +734,7 @@ export const se_UpdateAgentCommand = async (input, context) => {
|
|
|
731
734
|
idleSessionTTLInSeconds: [],
|
|
732
735
|
instruction: [],
|
|
733
736
|
memoryConfiguration: (_) => _json(_),
|
|
737
|
+
orchestrationType: [],
|
|
734
738
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
735
739
|
}));
|
|
736
740
|
b.m("PUT").h(headers).b(body);
|
|
@@ -2228,6 +2232,7 @@ const de_Agent = (output, context) => {
|
|
|
2228
2232
|
agentVersion: __expectString,
|
|
2229
2233
|
clientToken: __expectString,
|
|
2230
2234
|
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2235
|
+
customOrchestration: _json,
|
|
2231
2236
|
customerEncryptionKeyArn: __expectString,
|
|
2232
2237
|
description: __expectString,
|
|
2233
2238
|
failureReasons: _json,
|
|
@@ -2236,6 +2241,7 @@ const de_Agent = (output, context) => {
|
|
|
2236
2241
|
idleSessionTTLInSeconds: __expectInt32,
|
|
2237
2242
|
instruction: __expectString,
|
|
2238
2243
|
memoryConfiguration: _json,
|
|
2244
|
+
orchestrationType: __expectString,
|
|
2239
2245
|
preparedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2240
2246
|
promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
|
|
2241
2247
|
recommendedActions: _json,
|
|
@@ -71,6 +71,12 @@ declare const CreateAgentCommand_base: {
|
|
|
71
71
|
* instruction: "STRING_VALUE",
|
|
72
72
|
* foundationModel: "STRING_VALUE",
|
|
73
73
|
* description: "STRING_VALUE",
|
|
74
|
+
* orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
|
|
75
|
+
* customOrchestration: { // CustomOrchestration
|
|
76
|
+
* executor: { // OrchestrationExecutor Union: only one key present
|
|
77
|
+
* lambda: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* },
|
|
74
80
|
* idleSessionTTLInSeconds: Number("int"),
|
|
75
81
|
* agentResourceRoleArn: "STRING_VALUE",
|
|
76
82
|
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
@@ -122,6 +128,12 @@ declare const CreateAgentCommand_base: {
|
|
|
122
128
|
* // agentStatus: "CREATING" || "PREPARING" || "PREPARED" || "NOT_PREPARED" || "DELETING" || "FAILED" || "VERSIONING" || "UPDATING", // required
|
|
123
129
|
* // foundationModel: "STRING_VALUE",
|
|
124
130
|
* // description: "STRING_VALUE",
|
|
131
|
+
* // orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
|
|
132
|
+
* // customOrchestration: { // CustomOrchestration
|
|
133
|
+
* // executor: { // OrchestrationExecutor Union: only one key present
|
|
134
|
+
* // lambda: "STRING_VALUE",
|
|
135
|
+
* // },
|
|
136
|
+
* // },
|
|
125
137
|
* // idleSessionTTLInSeconds: Number("int"), // required
|
|
126
138
|
* // agentResourceRoleArn: "STRING_VALUE", // required
|
|
127
139
|
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
@@ -77,6 +77,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
77
77
|
* embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
78
78
|
* bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
|
|
79
79
|
* dimensions: Number("int"),
|
|
80
|
+
* embeddingDataType: "FLOAT32" || "BINARY",
|
|
80
81
|
* },
|
|
81
82
|
* },
|
|
82
83
|
* },
|
|
@@ -157,6 +158,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
157
158
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
158
159
|
* // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
|
|
159
160
|
* // dimensions: Number("int"),
|
|
161
|
+
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
160
162
|
* // },
|
|
161
163
|
* // },
|
|
162
164
|
* // },
|
|
@@ -50,6 +50,12 @@ declare const GetAgentCommand_base: {
|
|
|
50
50
|
* // agentStatus: "CREATING" || "PREPARING" || "PREPARED" || "NOT_PREPARED" || "DELETING" || "FAILED" || "VERSIONING" || "UPDATING", // required
|
|
51
51
|
* // foundationModel: "STRING_VALUE",
|
|
52
52
|
* // description: "STRING_VALUE",
|
|
53
|
+
* // orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
|
|
54
|
+
* // customOrchestration: { // CustomOrchestration
|
|
55
|
+
* // executor: { // OrchestrationExecutor Union: only one key present
|
|
56
|
+
* // lambda: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
53
59
|
* // idleSessionTTLInSeconds: Number("int"), // required
|
|
54
60
|
* // agentResourceRoleArn: "STRING_VALUE", // required
|
|
55
61
|
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
-
import { GetAgentKnowledgeBaseRequest, GetAgentKnowledgeBaseResponse } from "../models/
|
|
4
|
+
import { GetAgentKnowledgeBaseRequest, GetAgentKnowledgeBaseResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
-
import { GetKnowledgeBaseRequest, GetKnowledgeBaseResponse } from "../models/
|
|
4
|
+
import { GetKnowledgeBaseRequest, GetKnowledgeBaseResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -53,6 +53,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
53
53
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
54
54
|
* // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
|
|
55
55
|
* // dimensions: Number("int"),
|
|
56
|
+
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
56
57
|
* // },
|
|
57
58
|
* // },
|
|
58
59
|
* // },
|
|
@@ -40,6 +40,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
40
40
|
* instruction: "STRING_VALUE",
|
|
41
41
|
* foundationModel: "STRING_VALUE", // required
|
|
42
42
|
* description: "STRING_VALUE",
|
|
43
|
+
* orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
|
|
44
|
+
* customOrchestration: { // CustomOrchestration
|
|
45
|
+
* executor: { // OrchestrationExecutor Union: only one key present
|
|
46
|
+
* lambda: "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
43
49
|
* idleSessionTTLInSeconds: Number("int"),
|
|
44
50
|
* agentResourceRoleArn: "STRING_VALUE", // required
|
|
45
51
|
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
@@ -88,6 +94,12 @@ declare const UpdateAgentCommand_base: {
|
|
|
88
94
|
* // agentStatus: "CREATING" || "PREPARING" || "PREPARED" || "NOT_PREPARED" || "DELETING" || "FAILED" || "VERSIONING" || "UPDATING", // required
|
|
89
95
|
* // foundationModel: "STRING_VALUE",
|
|
90
96
|
* // description: "STRING_VALUE",
|
|
97
|
+
* // orchestrationType: "DEFAULT" || "CUSTOM_ORCHESTRATION",
|
|
98
|
+
* // customOrchestration: { // CustomOrchestration
|
|
99
|
+
* // executor: { // OrchestrationExecutor Union: only one key present
|
|
100
|
+
* // lambda: "STRING_VALUE",
|
|
101
|
+
* // },
|
|
102
|
+
* // },
|
|
91
103
|
* // idleSessionTTLInSeconds: Number("int"), // required
|
|
92
104
|
* // agentResourceRoleArn: "STRING_VALUE", // required
|
|
93
105
|
* // customerEncryptionKeyArn: "STRING_VALUE",
|
|
@@ -65,6 +65,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
65
65
|
* embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
66
66
|
* bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
|
|
67
67
|
* dimensions: Number("int"),
|
|
68
|
+
* embeddingDataType: "FLOAT32" || "BINARY",
|
|
68
69
|
* },
|
|
69
70
|
* },
|
|
70
71
|
* },
|
|
@@ -142,6 +143,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
142
143
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
143
144
|
* // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
|
|
144
145
|
* // dimensions: Number("int"),
|
|
146
|
+
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
145
147
|
* // },
|
|
146
148
|
* // },
|
|
147
149
|
* // },
|
|
@@ -787,6 +787,55 @@ export declare const AgentStatus: {
|
|
|
787
787
|
* @public
|
|
788
788
|
*/
|
|
789
789
|
export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
|
|
790
|
+
/**
|
|
791
|
+
* <p>
|
|
792
|
+
* Contains details about the Lambda function containing the orchestration logic carried out upon invoking the custom orchestration.
|
|
793
|
+
* </p>
|
|
794
|
+
* @public
|
|
795
|
+
*/
|
|
796
|
+
export type OrchestrationExecutor = OrchestrationExecutor.LambdaMember | OrchestrationExecutor.$UnknownMember;
|
|
797
|
+
/**
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
export declare namespace OrchestrationExecutor {
|
|
801
|
+
/**
|
|
802
|
+
* <p>
|
|
803
|
+
* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
804
|
+
* </p>
|
|
805
|
+
* @public
|
|
806
|
+
*/
|
|
807
|
+
interface LambdaMember {
|
|
808
|
+
lambda: string;
|
|
809
|
+
$unknown?: never;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* @public
|
|
813
|
+
*/
|
|
814
|
+
interface $UnknownMember {
|
|
815
|
+
lambda?: never;
|
|
816
|
+
$unknown: [string, any];
|
|
817
|
+
}
|
|
818
|
+
interface Visitor<T> {
|
|
819
|
+
lambda: (value: string) => T;
|
|
820
|
+
_: (name: string, value: any) => T;
|
|
821
|
+
}
|
|
822
|
+
const visit: <T>(value: OrchestrationExecutor, visitor: Visitor<T>) => T;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* <p>
|
|
826
|
+
* Details of custom orchestration.
|
|
827
|
+
* </p>
|
|
828
|
+
* @public
|
|
829
|
+
*/
|
|
830
|
+
export interface CustomOrchestration {
|
|
831
|
+
/**
|
|
832
|
+
* <p>
|
|
833
|
+
* The structure of the executor invoking the actions in custom orchestration.
|
|
834
|
+
* </p>
|
|
835
|
+
* @public
|
|
836
|
+
*/
|
|
837
|
+
executor?: OrchestrationExecutor | undefined;
|
|
838
|
+
}
|
|
790
839
|
/**
|
|
791
840
|
* <p>Details about a guardrail associated with a resource.</p>
|
|
792
841
|
* @public
|
|
@@ -830,6 +879,18 @@ export interface MemoryConfiguration {
|
|
|
830
879
|
*/
|
|
831
880
|
storageDays?: number | undefined;
|
|
832
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
* @public
|
|
884
|
+
* @enum
|
|
885
|
+
*/
|
|
886
|
+
export declare const OrchestrationType: {
|
|
887
|
+
readonly CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION";
|
|
888
|
+
readonly DEFAULT: "DEFAULT";
|
|
889
|
+
};
|
|
890
|
+
/**
|
|
891
|
+
* @public
|
|
892
|
+
*/
|
|
893
|
+
export type OrchestrationType = (typeof OrchestrationType)[keyof typeof OrchestrationType];
|
|
833
894
|
/**
|
|
834
895
|
* <p>Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the <code>promptType</code>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
835
896
|
* @public
|
|
@@ -1047,6 +1108,20 @@ export interface Agent {
|
|
|
1047
1108
|
* @public
|
|
1048
1109
|
*/
|
|
1049
1110
|
description?: string | undefined;
|
|
1111
|
+
/**
|
|
1112
|
+
* <p>
|
|
1113
|
+
* Specifies the orchestration strategy for the agent.
|
|
1114
|
+
* </p>
|
|
1115
|
+
* @public
|
|
1116
|
+
*/
|
|
1117
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
1118
|
+
/**
|
|
1119
|
+
* <p>
|
|
1120
|
+
* Contains custom orchestration configurations for the agent.
|
|
1121
|
+
* </p>
|
|
1122
|
+
* @public
|
|
1123
|
+
*/
|
|
1124
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
1050
1125
|
/**
|
|
1051
1126
|
* <p>The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.</p>
|
|
1052
1127
|
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.</p>
|
|
@@ -1419,6 +1494,20 @@ export interface CreateAgentRequest {
|
|
|
1419
1494
|
* @public
|
|
1420
1495
|
*/
|
|
1421
1496
|
description?: string | undefined;
|
|
1497
|
+
/**
|
|
1498
|
+
* <p>
|
|
1499
|
+
* Specifies the type of orchestration strategy for the agent. This is set to <code>DEFAULT</code> orchestration type, by default.
|
|
1500
|
+
* </p>
|
|
1501
|
+
* @public
|
|
1502
|
+
*/
|
|
1503
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
1504
|
+
/**
|
|
1505
|
+
* <p>
|
|
1506
|
+
* Contains details of the custom orchestration configured for the agent.
|
|
1507
|
+
* </p>
|
|
1508
|
+
* @public
|
|
1509
|
+
*/
|
|
1510
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
1422
1511
|
/**
|
|
1423
1512
|
* <p>The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.</p>
|
|
1424
1513
|
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.</p>
|
|
@@ -1669,6 +1758,20 @@ export interface UpdateAgentRequest {
|
|
|
1669
1758
|
* @public
|
|
1670
1759
|
*/
|
|
1671
1760
|
description?: string | undefined;
|
|
1761
|
+
/**
|
|
1762
|
+
* <p>
|
|
1763
|
+
* Specifies the type of orchestration strategy for the agent. This is set to <code>DEFAULT</code> orchestration type, by default.
|
|
1764
|
+
* </p>
|
|
1765
|
+
* @public
|
|
1766
|
+
*/
|
|
1767
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
1768
|
+
/**
|
|
1769
|
+
* <p>
|
|
1770
|
+
* Contains details of the custom orchestration configured for the agent.
|
|
1771
|
+
* </p>
|
|
1772
|
+
* @public
|
|
1773
|
+
*/
|
|
1774
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
1672
1775
|
/**
|
|
1673
1776
|
* <p>The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.</p>
|
|
1674
1777
|
* <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.</p>
|
|
@@ -7267,6 +7370,18 @@ export declare const KnowledgeBaseType: {
|
|
|
7267
7370
|
* @public
|
|
7268
7371
|
*/
|
|
7269
7372
|
export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
|
|
7373
|
+
/**
|
|
7374
|
+
* @public
|
|
7375
|
+
* @enum
|
|
7376
|
+
*/
|
|
7377
|
+
export declare const EmbeddingDataType: {
|
|
7378
|
+
readonly BINARY: "BINARY";
|
|
7379
|
+
readonly FLOAT32: "FLOAT32";
|
|
7380
|
+
};
|
|
7381
|
+
/**
|
|
7382
|
+
* @public
|
|
7383
|
+
*/
|
|
7384
|
+
export type EmbeddingDataType = (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
|
|
7270
7385
|
/**
|
|
7271
7386
|
* <p>The vector configuration details for the Bedrock embeddings model.</p>
|
|
7272
7387
|
* @public
|
|
@@ -7277,6 +7392,15 @@ export interface BedrockEmbeddingModelConfiguration {
|
|
|
7277
7392
|
* @public
|
|
7278
7393
|
*/
|
|
7279
7394
|
dimensions?: number | undefined;
|
|
7395
|
+
/**
|
|
7396
|
+
* <p>The data type for the vectors when using a model to convert text into vector
|
|
7397
|
+
* embeddings. The model must support the specified data type for vector embeddings.
|
|
7398
|
+
* Floating-point (float32) is the default data type, and is supported by most models
|
|
7399
|
+
* for vector embeddings. See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html">Supported embeddings
|
|
7400
|
+
* models</a> for information on the available models and their vector data types.</p>
|
|
7401
|
+
* @public
|
|
7402
|
+
*/
|
|
7403
|
+
embeddingDataType?: EmbeddingDataType | undefined;
|
|
7280
7404
|
}
|
|
7281
7405
|
/**
|
|
7282
7406
|
* <p>The configuration details for the embeddings model.</p>
|
|
@@ -7817,56 +7941,6 @@ export interface DisassociateAgentKnowledgeBaseRequest {
|
|
|
7817
7941
|
*/
|
|
7818
7942
|
export interface DisassociateAgentKnowledgeBaseResponse {
|
|
7819
7943
|
}
|
|
7820
|
-
/**
|
|
7821
|
-
* @public
|
|
7822
|
-
*/
|
|
7823
|
-
export interface GetAgentKnowledgeBaseRequest {
|
|
7824
|
-
/**
|
|
7825
|
-
* <p>The unique identifier of the agent with which the knowledge base is associated.</p>
|
|
7826
|
-
* @public
|
|
7827
|
-
*/
|
|
7828
|
-
agentId: string | undefined;
|
|
7829
|
-
/**
|
|
7830
|
-
* <p>The version of the agent with which the knowledge base is associated.</p>
|
|
7831
|
-
* @public
|
|
7832
|
-
*/
|
|
7833
|
-
agentVersion: string | undefined;
|
|
7834
|
-
/**
|
|
7835
|
-
* <p>The unique identifier of the knowledge base associated with the agent.</p>
|
|
7836
|
-
* @public
|
|
7837
|
-
*/
|
|
7838
|
-
knowledgeBaseId: string | undefined;
|
|
7839
|
-
}
|
|
7840
|
-
/**
|
|
7841
|
-
* @public
|
|
7842
|
-
*/
|
|
7843
|
-
export interface GetAgentKnowledgeBaseResponse {
|
|
7844
|
-
/**
|
|
7845
|
-
* <p>Contains details about a knowledge base attached to an agent.</p>
|
|
7846
|
-
* @public
|
|
7847
|
-
*/
|
|
7848
|
-
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
7849
|
-
}
|
|
7850
|
-
/**
|
|
7851
|
-
* @public
|
|
7852
|
-
*/
|
|
7853
|
-
export interface GetKnowledgeBaseRequest {
|
|
7854
|
-
/**
|
|
7855
|
-
* <p>The unique identifier of the knowledge base you want to get information on.</p>
|
|
7856
|
-
* @public
|
|
7857
|
-
*/
|
|
7858
|
-
knowledgeBaseId: string | undefined;
|
|
7859
|
-
}
|
|
7860
|
-
/**
|
|
7861
|
-
* @public
|
|
7862
|
-
*/
|
|
7863
|
-
export interface GetKnowledgeBaseResponse {
|
|
7864
|
-
/**
|
|
7865
|
-
* <p>Contains details about the knowledge base.</p>
|
|
7866
|
-
* @public
|
|
7867
|
-
*/
|
|
7868
|
-
knowledgeBase: KnowledgeBase | undefined;
|
|
7869
|
-
}
|
|
7870
7944
|
/**
|
|
7871
7945
|
* @internal
|
|
7872
7946
|
*/
|
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, FlowDefinition, FlowValidation, KnowledgeBase, KnowledgeBaseConfiguration, KnowledgeBaseState, KnowledgeBaseStatus, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, StorageConfiguration } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface GetAgentKnowledgeBaseRequest {
|
|
7
|
+
/**
|
|
8
|
+
* <p>The unique identifier of the agent with which the knowledge base is associated.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
agentId: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>The version of the agent with which the knowledge base is associated.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
agentVersion: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* <p>The unique identifier of the knowledge base associated with the agent.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
knowledgeBaseId: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface GetAgentKnowledgeBaseResponse {
|
|
27
|
+
/**
|
|
28
|
+
* <p>Contains details about a knowledge base attached to an agent.</p>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export interface GetKnowledgeBaseRequest {
|
|
37
|
+
/**
|
|
38
|
+
* <p>The unique identifier of the knowledge base you want to get information on.</p>
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
knowledgeBaseId: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export interface GetKnowledgeBaseResponse {
|
|
47
|
+
/**
|
|
48
|
+
* <p>Contains details about the knowledge base.</p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
knowledgeBase: KnowledgeBase | undefined;
|
|
52
|
+
}
|
|
3
53
|
/**
|
|
4
54
|
* @public
|
|
5
55
|
*/
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
GetKnowledgeBaseRequest,
|
|
10
10
|
GetKnowledgeBaseResponse,
|
|
11
|
-
} from "../models/
|
|
11
|
+
} from "../models/models_1";
|
|
12
12
|
export { __MetadataBearer };
|
|
13
13
|
export { $Command };
|
|
14
14
|
export interface GetKnowledgeBaseCommandInput extends GetKnowledgeBaseRequest {}
|
|
@@ -259,6 +259,27 @@ export declare const AgentStatus: {
|
|
|
259
259
|
readonly VERSIONING: "VERSIONING";
|
|
260
260
|
};
|
|
261
261
|
export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
|
|
262
|
+
export type OrchestrationExecutor =
|
|
263
|
+
| OrchestrationExecutor.LambdaMember
|
|
264
|
+
| OrchestrationExecutor.$UnknownMember;
|
|
265
|
+
export declare namespace OrchestrationExecutor {
|
|
266
|
+
interface LambdaMember {
|
|
267
|
+
lambda: string;
|
|
268
|
+
$unknown?: never;
|
|
269
|
+
}
|
|
270
|
+
interface $UnknownMember {
|
|
271
|
+
lambda?: never;
|
|
272
|
+
$unknown: [string, any];
|
|
273
|
+
}
|
|
274
|
+
interface Visitor<T> {
|
|
275
|
+
lambda: (value: string) => T;
|
|
276
|
+
_: (name: string, value: any) => T;
|
|
277
|
+
}
|
|
278
|
+
const visit: <T>(value: OrchestrationExecutor, visitor: Visitor<T>) => T;
|
|
279
|
+
}
|
|
280
|
+
export interface CustomOrchestration {
|
|
281
|
+
executor?: OrchestrationExecutor | undefined;
|
|
282
|
+
}
|
|
262
283
|
export interface GuardrailConfiguration {
|
|
263
284
|
guardrailIdentifier?: string | undefined;
|
|
264
285
|
guardrailVersion?: string | undefined;
|
|
@@ -271,6 +292,12 @@ export interface MemoryConfiguration {
|
|
|
271
292
|
enabledMemoryTypes: MemoryType[] | undefined;
|
|
272
293
|
storageDays?: number | undefined;
|
|
273
294
|
}
|
|
295
|
+
export declare const OrchestrationType: {
|
|
296
|
+
readonly CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION";
|
|
297
|
+
readonly DEFAULT: "DEFAULT";
|
|
298
|
+
};
|
|
299
|
+
export type OrchestrationType =
|
|
300
|
+
(typeof OrchestrationType)[keyof typeof OrchestrationType];
|
|
274
301
|
export interface InferenceConfiguration {
|
|
275
302
|
temperature?: number | undefined;
|
|
276
303
|
topP?: number | undefined;
|
|
@@ -317,6 +344,8 @@ export interface Agent {
|
|
|
317
344
|
agentStatus: AgentStatus | undefined;
|
|
318
345
|
foundationModel?: string | undefined;
|
|
319
346
|
description?: string | undefined;
|
|
347
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
348
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
320
349
|
idleSessionTTLInSeconds: number | undefined;
|
|
321
350
|
agentResourceRoleArn: string | undefined;
|
|
322
351
|
customerEncryptionKeyArn?: string | undefined;
|
|
@@ -400,6 +429,8 @@ export interface CreateAgentRequest {
|
|
|
400
429
|
instruction?: string | undefined;
|
|
401
430
|
foundationModel?: string | undefined;
|
|
402
431
|
description?: string | undefined;
|
|
432
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
433
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
403
434
|
idleSessionTTLInSeconds?: number | undefined;
|
|
404
435
|
agentResourceRoleArn?: string | undefined;
|
|
405
436
|
customerEncryptionKeyArn?: string | undefined;
|
|
@@ -457,6 +488,8 @@ export interface UpdateAgentRequest {
|
|
|
457
488
|
instruction?: string | undefined;
|
|
458
489
|
foundationModel: string | undefined;
|
|
459
490
|
description?: string | undefined;
|
|
491
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
492
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
460
493
|
idleSessionTTLInSeconds?: number | undefined;
|
|
461
494
|
agentResourceRoleArn: string | undefined;
|
|
462
495
|
customerEncryptionKeyArn?: string | undefined;
|
|
@@ -2808,8 +2841,15 @@ export declare const KnowledgeBaseType: {
|
|
|
2808
2841
|
};
|
|
2809
2842
|
export type KnowledgeBaseType =
|
|
2810
2843
|
(typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
|
|
2844
|
+
export declare const EmbeddingDataType: {
|
|
2845
|
+
readonly BINARY: "BINARY";
|
|
2846
|
+
readonly FLOAT32: "FLOAT32";
|
|
2847
|
+
};
|
|
2848
|
+
export type EmbeddingDataType =
|
|
2849
|
+
(typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
|
|
2811
2850
|
export interface BedrockEmbeddingModelConfiguration {
|
|
2812
2851
|
dimensions?: number | undefined;
|
|
2852
|
+
embeddingDataType?: EmbeddingDataType | undefined;
|
|
2813
2853
|
}
|
|
2814
2854
|
export interface EmbeddingModelConfiguration {
|
|
2815
2855
|
bedrockEmbeddingModelConfiguration?:
|
|
@@ -2953,20 +2993,6 @@ export interface DisassociateAgentKnowledgeBaseRequest {
|
|
|
2953
2993
|
knowledgeBaseId: string | undefined;
|
|
2954
2994
|
}
|
|
2955
2995
|
export interface DisassociateAgentKnowledgeBaseResponse {}
|
|
2956
|
-
export interface GetAgentKnowledgeBaseRequest {
|
|
2957
|
-
agentId: string | undefined;
|
|
2958
|
-
agentVersion: string | undefined;
|
|
2959
|
-
knowledgeBaseId: string | undefined;
|
|
2960
|
-
}
|
|
2961
|
-
export interface GetAgentKnowledgeBaseResponse {
|
|
2962
|
-
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
2963
|
-
}
|
|
2964
|
-
export interface GetKnowledgeBaseRequest {
|
|
2965
|
-
knowledgeBaseId: string | undefined;
|
|
2966
|
-
}
|
|
2967
|
-
export interface GetKnowledgeBaseResponse {
|
|
2968
|
-
knowledgeBase: KnowledgeBase | undefined;
|
|
2969
|
-
}
|
|
2970
2996
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2971
2997
|
export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
|
|
2972
2998
|
obj: CreateAgentActionGroupRequest
|
|
@@ -16,6 +16,20 @@ import {
|
|
|
16
16
|
PromptTemplateType,
|
|
17
17
|
StorageConfiguration,
|
|
18
18
|
} from "./models_0";
|
|
19
|
+
export interface GetAgentKnowledgeBaseRequest {
|
|
20
|
+
agentId: string | undefined;
|
|
21
|
+
agentVersion: string | undefined;
|
|
22
|
+
knowledgeBaseId: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface GetAgentKnowledgeBaseResponse {
|
|
25
|
+
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface GetKnowledgeBaseRequest {
|
|
28
|
+
knowledgeBaseId: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface GetKnowledgeBaseResponse {
|
|
31
|
+
knowledgeBase: KnowledgeBase | undefined;
|
|
32
|
+
}
|
|
19
33
|
export interface ListAgentKnowledgeBasesRequest {
|
|
20
34
|
agentId: string | undefined;
|
|
21
35
|
agentVersion: 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.702.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",
|