@aws-sdk/client-bedrock-agent 3.696.0 → 3.701.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 +25 -0
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +12 -0
- package/dist-types/commands/GetAgentCommand.d.ts +6 -0
- package/dist-types/commands/GetAgentKnowledgeBaseCommand.d.ts +2 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +103 -30
- package/dist-types/models/models_1.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetAgentKnowledgeBaseCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +33 -9
- package/dist-types/ts3.4/models/models_1.d.ts +9 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -150,6 +150,8 @@ __export(src_exports, {
|
|
|
150
150
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
151
151
|
MemoryType: () => MemoryType,
|
|
152
152
|
MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
|
|
153
|
+
OrchestrationExecutor: () => OrchestrationExecutor,
|
|
154
|
+
OrchestrationType: () => OrchestrationType,
|
|
153
155
|
ParsingStrategy: () => ParsingStrategy,
|
|
154
156
|
PatternObjectFilterConfigurationFilterSensitiveLog: () => PatternObjectFilterConfigurationFilterSensitiveLog,
|
|
155
157
|
PatternObjectFilterFilterSensitiveLog: () => PatternObjectFilterFilterSensitiveLog,
|
|
@@ -590,9 +592,21 @@ var AgentStatus = {
|
|
|
590
592
|
UPDATING: "UPDATING",
|
|
591
593
|
VERSIONING: "VERSIONING"
|
|
592
594
|
};
|
|
595
|
+
var OrchestrationExecutor;
|
|
596
|
+
((OrchestrationExecutor3) => {
|
|
597
|
+
OrchestrationExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
598
|
+
if (value.lambda !== void 0)
|
|
599
|
+
return visitor.lambda(value.lambda);
|
|
600
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
601
|
+
}, "visit");
|
|
602
|
+
})(OrchestrationExecutor || (OrchestrationExecutor = {}));
|
|
593
603
|
var MemoryType = {
|
|
594
604
|
SESSION_SUMMARY: "SESSION_SUMMARY"
|
|
595
605
|
};
|
|
606
|
+
var OrchestrationType = {
|
|
607
|
+
CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
|
|
608
|
+
DEFAULT: "DEFAULT"
|
|
609
|
+
};
|
|
596
610
|
var CreationMode = {
|
|
597
611
|
DEFAULT: "DEFAULT",
|
|
598
612
|
OVERRIDDEN: "OVERRIDDEN"
|
|
@@ -1014,11 +1028,13 @@ var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1014
1028
|
var AgentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1015
1029
|
...obj,
|
|
1016
1030
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1031
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1017
1032
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1018
1033
|
}), "AgentFilterSensitiveLog");
|
|
1019
1034
|
var CreateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1020
1035
|
...obj,
|
|
1021
1036
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1037
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1022
1038
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1023
1039
|
}), "CreateAgentRequestFilterSensitiveLog");
|
|
1024
1040
|
var CreateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -1032,6 +1048,7 @@ var GetAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1032
1048
|
var UpdateAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1033
1049
|
...obj,
|
|
1034
1050
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1051
|
+
...obj.customOrchestration && { customOrchestration: obj.customOrchestration },
|
|
1035
1052
|
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1036
1053
|
}), "UpdateAgentRequestFilterSensitiveLog");
|
|
1037
1054
|
var UpdateAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -1404,6 +1421,7 @@ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1404
1421
|
agentName: [],
|
|
1405
1422
|
agentResourceRoleArn: [],
|
|
1406
1423
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1424
|
+
customOrchestration: (_) => (0, import_smithy_client._json)(_),
|
|
1407
1425
|
customerEncryptionKeyArn: [],
|
|
1408
1426
|
description: [],
|
|
1409
1427
|
foundationModel: [],
|
|
@@ -1411,6 +1429,7 @@ var se_CreateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1411
1429
|
idleSessionTTLInSeconds: [],
|
|
1412
1430
|
instruction: [],
|
|
1413
1431
|
memoryConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
1432
|
+
orchestrationType: [],
|
|
1414
1433
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
1415
1434
|
tags: (_) => (0, import_smithy_client._json)(_)
|
|
1416
1435
|
})
|
|
@@ -2136,6 +2155,7 @@ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2136
2155
|
(0, import_smithy_client.take)(input, {
|
|
2137
2156
|
agentName: [],
|
|
2138
2157
|
agentResourceRoleArn: [],
|
|
2158
|
+
customOrchestration: (_) => (0, import_smithy_client._json)(_),
|
|
2139
2159
|
customerEncryptionKeyArn: [],
|
|
2140
2160
|
description: [],
|
|
2141
2161
|
foundationModel: [],
|
|
@@ -2143,6 +2163,7 @@ var se_UpdateAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2143
2163
|
idleSessionTTLInSeconds: [],
|
|
2144
2164
|
instruction: [],
|
|
2145
2165
|
memoryConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2166
|
+
orchestrationType: [],
|
|
2146
2167
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
|
|
2147
2168
|
})
|
|
2148
2169
|
);
|
|
@@ -3649,6 +3670,7 @@ var de_Agent = /* @__PURE__ */ __name((output, context) => {
|
|
|
3649
3670
|
agentVersion: import_smithy_client.expectString,
|
|
3650
3671
|
clientToken: import_smithy_client.expectString,
|
|
3651
3672
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3673
|
+
customOrchestration: import_smithy_client._json,
|
|
3652
3674
|
customerEncryptionKeyArn: import_smithy_client.expectString,
|
|
3653
3675
|
description: import_smithy_client.expectString,
|
|
3654
3676
|
failureReasons: import_smithy_client._json,
|
|
@@ -3657,6 +3679,7 @@ var de_Agent = /* @__PURE__ */ __name((output, context) => {
|
|
|
3657
3679
|
idleSessionTTLInSeconds: import_smithy_client.expectInt32,
|
|
3658
3680
|
instruction: import_smithy_client.expectString,
|
|
3659
3681
|
memoryConfiguration: import_smithy_client._json,
|
|
3682
|
+
orchestrationType: import_smithy_client.expectString,
|
|
3660
3683
|
preparedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3661
3684
|
promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
|
|
3662
3685
|
recommendedActions: import_smithy_client._json,
|
|
@@ -5386,7 +5409,9 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5386
5409
|
ThrottlingException,
|
|
5387
5410
|
ValidationException,
|
|
5388
5411
|
AgentStatus,
|
|
5412
|
+
OrchestrationExecutor,
|
|
5389
5413
|
MemoryType,
|
|
5414
|
+
OrchestrationType,
|
|
5390
5415
|
CreationMode,
|
|
5391
5416
|
PromptState,
|
|
5392
5417
|
PromptType,
|
|
@@ -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",
|
|
@@ -569,11 +581,13 @@ export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
569
581
|
export const AgentFilterSensitiveLog = (obj) => ({
|
|
570
582
|
...obj,
|
|
571
583
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
584
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
572
585
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
573
586
|
});
|
|
574
587
|
export const CreateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
575
588
|
...obj,
|
|
576
589
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
590
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
577
591
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
578
592
|
});
|
|
579
593
|
export const CreateAgentResponseFilterSensitiveLog = (obj) => ({
|
|
@@ -587,6 +601,7 @@ export const GetAgentResponseFilterSensitiveLog = (obj) => ({
|
|
|
587
601
|
export const UpdateAgentRequestFilterSensitiveLog = (obj) => ({
|
|
588
602
|
...obj,
|
|
589
603
|
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
604
|
+
...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
|
|
590
605
|
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
591
606
|
});
|
|
592
607
|
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",
|
|
@@ -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,8 @@
|
|
|
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
|
|
4
|
+
import { GetAgentKnowledgeBaseRequest } from "../models/models_0";
|
|
5
|
+
import { GetAgentKnowledgeBaseResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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",
|
|
@@ -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>
|
|
@@ -7837,36 +7940,6 @@ export interface GetAgentKnowledgeBaseRequest {
|
|
|
7837
7940
|
*/
|
|
7838
7941
|
knowledgeBaseId: string | undefined;
|
|
7839
7942
|
}
|
|
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
7943
|
/**
|
|
7871
7944
|
* @internal
|
|
7872
7945
|
*/
|
|
@@ -1,5 +1,35 @@
|
|
|
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 GetAgentKnowledgeBaseResponse {
|
|
7
|
+
/**
|
|
8
|
+
* <p>Contains details about a knowledge base attached to an agent.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface GetKnowledgeBaseRequest {
|
|
17
|
+
/**
|
|
18
|
+
* <p>The unique identifier of the knowledge base you want to get information on.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
knowledgeBaseId: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface GetKnowledgeBaseResponse {
|
|
27
|
+
/**
|
|
28
|
+
* <p>Contains details about the knowledge base.</p>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
knowledgeBase: KnowledgeBase | undefined;
|
|
32
|
+
}
|
|
3
33
|
/**
|
|
4
34
|
* @public
|
|
5
35
|
*/
|
|
@@ -5,10 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
GetAgentKnowledgeBaseResponse,
|
|
11
|
-
} from "../models/models_0";
|
|
8
|
+
import { GetAgentKnowledgeBaseRequest } from "../models/models_0";
|
|
9
|
+
import { GetAgentKnowledgeBaseResponse } from "../models/models_1";
|
|
12
10
|
export { __MetadataBearer };
|
|
13
11
|
export { $Command };
|
|
14
12
|
export interface GetAgentKnowledgeBaseCommandInput
|
|
@@ -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;
|
|
@@ -2958,15 +2991,6 @@ export interface GetAgentKnowledgeBaseRequest {
|
|
|
2958
2991
|
agentVersion: string | undefined;
|
|
2959
2992
|
knowledgeBaseId: string | undefined;
|
|
2960
2993
|
}
|
|
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
2994
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2971
2995
|
export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
|
|
2972
2996
|
obj: CreateAgentActionGroupRequest
|
|
@@ -16,6 +16,15 @@ import {
|
|
|
16
16
|
PromptTemplateType,
|
|
17
17
|
StorageConfiguration,
|
|
18
18
|
} from "./models_0";
|
|
19
|
+
export interface GetAgentKnowledgeBaseResponse {
|
|
20
|
+
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface GetKnowledgeBaseRequest {
|
|
23
|
+
knowledgeBaseId: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface GetKnowledgeBaseResponse {
|
|
26
|
+
knowledgeBase: KnowledgeBase | undefined;
|
|
27
|
+
}
|
|
19
28
|
export interface ListAgentKnowledgeBasesRequest {
|
|
20
29
|
agentId: string | undefined;
|
|
21
30
|
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.701.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.699.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.699.0",
|
|
25
25
|
"@aws-sdk/core": "3.696.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.699.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|