@aws-sdk/client-bedrock-agent 3.799.0 → 3.800.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 +21 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +6 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +10 -2
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +5 -1
- package/dist-types/commands/GetFlowCommand.d.ts +5 -1
- package/dist-types/commands/GetFlowVersionCommand.d.ts +5 -1
- package/dist-types/commands/StopIngestionJobCommand.d.ts +2 -1
- package/dist-types/commands/UpdateFlowCommand.d.ts +10 -2
- package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +79 -32
- package/dist-types/models/models_1.d.ts +22 -1
- package/dist-types/ts3.4/commands/StopIngestionJobCommand.d.ts +2 -4
- package/dist-types/ts3.4/models/models_0.d.ts +44 -6
- package/dist-types/ts3.4/models/models_1.d.ts +7 -1
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -158,6 +158,7 @@ __export(index_exports, {
|
|
|
158
158
|
IngestionJobFilterOperator: () => IngestionJobFilterOperator,
|
|
159
159
|
IngestionJobSortByAttribute: () => IngestionJobSortByAttribute,
|
|
160
160
|
IngestionJobStatus: () => IngestionJobStatus,
|
|
161
|
+
InlineCodeFlowNodeConfigurationFilterSensitiveLog: () => InlineCodeFlowNodeConfigurationFilterSensitiveLog,
|
|
161
162
|
InlineContentFilterSensitiveLog: () => InlineContentFilterSensitiveLog,
|
|
162
163
|
InlineContentType: () => InlineContentType,
|
|
163
164
|
InternalServerException: () => InternalServerException,
|
|
@@ -246,6 +247,7 @@ __export(index_exports, {
|
|
|
246
247
|
StorageConfigurationFilterSensitiveLog: () => StorageConfigurationFilterSensitiveLog,
|
|
247
248
|
StorageFlowNodeServiceConfiguration: () => StorageFlowNodeServiceConfiguration,
|
|
248
249
|
SupplementalDataStorageLocationType: () => SupplementalDataStorageLocationType,
|
|
250
|
+
SupportedLanguages: () => SupportedLanguages,
|
|
249
251
|
SystemContentBlock: () => SystemContentBlock,
|
|
250
252
|
SystemContentBlockFilterSensitiveLog: () => SystemContentBlockFilterSensitiveLog,
|
|
251
253
|
TagResourceCommand: () => TagResourceCommand,
|
|
@@ -792,6 +794,9 @@ var FlowConnectionType = {
|
|
|
792
794
|
CONDITIONAL: "Conditional",
|
|
793
795
|
DATA: "Data"
|
|
794
796
|
};
|
|
797
|
+
var SupportedLanguages = {
|
|
798
|
+
PYTHON_3: "Python_3"
|
|
799
|
+
};
|
|
795
800
|
var PromptInferenceConfiguration;
|
|
796
801
|
((PromptInferenceConfiguration3) => {
|
|
797
802
|
PromptInferenceConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -895,6 +900,7 @@ var FlowNodeConfiguration;
|
|
|
895
900
|
if (value.retrieval !== void 0) return visitor.retrieval(value.retrieval);
|
|
896
901
|
if (value.iterator !== void 0) return visitor.iterator(value.iterator);
|
|
897
902
|
if (value.collector !== void 0) return visitor.collector(value.collector);
|
|
903
|
+
if (value.inlineCode !== void 0) return visitor.inlineCode(value.inlineCode);
|
|
898
904
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
899
905
|
}, "visit");
|
|
900
906
|
})(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
|
|
@@ -909,6 +915,7 @@ var FlowNodeType = {
|
|
|
909
915
|
AGENT: "Agent",
|
|
910
916
|
COLLECTOR: "Collector",
|
|
911
917
|
CONDITION: "Condition",
|
|
918
|
+
INLINE_CODE: "InlineCode",
|
|
912
919
|
INPUT: "Input",
|
|
913
920
|
ITERATOR: "Iterator",
|
|
914
921
|
KNOWLEDGE_BASE: "KnowledgeBase",
|
|
@@ -1266,6 +1273,10 @@ var ConditionFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((o
|
|
|
1266
1273
|
...obj,
|
|
1267
1274
|
...obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }
|
|
1268
1275
|
}), "ConditionFlowNodeConfigurationFilterSensitiveLog");
|
|
1276
|
+
var InlineCodeFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1277
|
+
...obj,
|
|
1278
|
+
...obj.code && { code: import_smithy_client.SENSITIVE_STRING }
|
|
1279
|
+
}), "InlineCodeFlowNodeConfigurationFilterSensitiveLog");
|
|
1269
1280
|
var ContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1270
1281
|
if (obj.text !== void 0) return { text: obj.text };
|
|
1271
1282
|
if (obj.cachePoint !== void 0) return { cachePoint: obj.cachePoint };
|
|
@@ -1340,6 +1351,8 @@ var FlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1340
1351
|
if (obj.retrieval !== void 0) return { retrieval: obj.retrieval };
|
|
1341
1352
|
if (obj.iterator !== void 0) return { iterator: obj.iterator };
|
|
1342
1353
|
if (obj.collector !== void 0) return { collector: obj.collector };
|
|
1354
|
+
if (obj.inlineCode !== void 0)
|
|
1355
|
+
return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
|
|
1343
1356
|
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1344
1357
|
}, "FlowNodeConfigurationFilterSensitiveLog");
|
|
1345
1358
|
var FlowNodeInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -3867,6 +3880,7 @@ var se_FlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
3867
3880
|
agent: /* @__PURE__ */ __name((value) => ({ agent: (0, import_smithy_client._json)(value) }), "agent"),
|
|
3868
3881
|
collector: /* @__PURE__ */ __name((value) => ({ collector: (0, import_smithy_client._json)(value) }), "collector"),
|
|
3869
3882
|
condition: /* @__PURE__ */ __name((value) => ({ condition: (0, import_smithy_client._json)(value) }), "condition"),
|
|
3883
|
+
inlineCode: /* @__PURE__ */ __name((value) => ({ inlineCode: (0, import_smithy_client._json)(value) }), "inlineCode"),
|
|
3870
3884
|
input: /* @__PURE__ */ __name((value) => ({ input: (0, import_smithy_client._json)(value) }), "input"),
|
|
3871
3885
|
iterator: /* @__PURE__ */ __name((value) => ({ iterator: (0, import_smithy_client._json)(value) }), "iterator"),
|
|
3872
3886
|
knowledgeBase: /* @__PURE__ */ __name((value) => ({ knowledgeBase: (0, import_smithy_client._json)(value) }), "knowledgeBase"),
|
|
@@ -4358,6 +4372,11 @@ var de_FlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
|
4358
4372
|
condition: (0, import_smithy_client._json)(output.condition)
|
|
4359
4373
|
};
|
|
4360
4374
|
}
|
|
4375
|
+
if (output.inlineCode != null) {
|
|
4376
|
+
return {
|
|
4377
|
+
inlineCode: (0, import_smithy_client._json)(output.inlineCode)
|
|
4378
|
+
};
|
|
4379
|
+
}
|
|
4361
4380
|
if (output.input != null) {
|
|
4362
4381
|
return {
|
|
4363
4382
|
input: (0, import_smithy_client._json)(output.input)
|
|
@@ -6342,6 +6361,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
6342
6361
|
DataSourceStatus,
|
|
6343
6362
|
FlowConnectionConfiguration,
|
|
6344
6363
|
FlowConnectionType,
|
|
6364
|
+
SupportedLanguages,
|
|
6345
6365
|
PromptInferenceConfiguration,
|
|
6346
6366
|
CachePointType,
|
|
6347
6367
|
ContentBlock,
|
|
@@ -6412,6 +6432,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
6412
6432
|
UpdateDataSourceResponseFilterSensitiveLog,
|
|
6413
6433
|
FlowConditionFilterSensitiveLog,
|
|
6414
6434
|
ConditionFlowNodeConfigurationFilterSensitiveLog,
|
|
6435
|
+
InlineCodeFlowNodeConfigurationFilterSensitiveLog,
|
|
6415
6436
|
ContentBlockFilterSensitiveLog,
|
|
6416
6437
|
MessageFilterSensitiveLog,
|
|
6417
6438
|
SystemContentBlockFilterSensitiveLog,
|
|
@@ -278,6 +278,9 @@ export const FlowConnectionType = {
|
|
|
278
278
|
CONDITIONAL: "Conditional",
|
|
279
279
|
DATA: "Data",
|
|
280
280
|
};
|
|
281
|
+
export const SupportedLanguages = {
|
|
282
|
+
PYTHON_3: "Python_3",
|
|
283
|
+
};
|
|
281
284
|
export var PromptInferenceConfiguration;
|
|
282
285
|
(function (PromptInferenceConfiguration) {
|
|
283
286
|
PromptInferenceConfiguration.visit = (value, visitor) => {
|
|
@@ -410,6 +413,8 @@ export var FlowNodeConfiguration;
|
|
|
410
413
|
return visitor.iterator(value.iterator);
|
|
411
414
|
if (value.collector !== undefined)
|
|
412
415
|
return visitor.collector(value.collector);
|
|
416
|
+
if (value.inlineCode !== undefined)
|
|
417
|
+
return visitor.inlineCode(value.inlineCode);
|
|
413
418
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
414
419
|
};
|
|
415
420
|
})(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
|
|
@@ -424,6 +429,7 @@ export const FlowNodeType = {
|
|
|
424
429
|
AGENT: "Agent",
|
|
425
430
|
COLLECTOR: "Collector",
|
|
426
431
|
CONDITION: "Condition",
|
|
432
|
+
INLINE_CODE: "InlineCode",
|
|
427
433
|
INPUT: "Input",
|
|
428
434
|
ITERATOR: "Iterator",
|
|
429
435
|
KNOWLEDGE_BASE: "KnowledgeBase",
|
|
@@ -793,6 +799,10 @@ export const ConditionFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
793
799
|
...obj,
|
|
794
800
|
...(obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }),
|
|
795
801
|
});
|
|
802
|
+
export const InlineCodeFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
|
|
803
|
+
...obj,
|
|
804
|
+
...(obj.code && { code: SENSITIVE_STRING }),
|
|
805
|
+
});
|
|
796
806
|
export const ContentBlockFilterSensitiveLog = (obj) => {
|
|
797
807
|
if (obj.text !== undefined)
|
|
798
808
|
return { text: obj.text };
|
|
@@ -894,6 +904,8 @@ export const FlowNodeConfigurationFilterSensitiveLog = (obj) => {
|
|
|
894
904
|
return { iterator: obj.iterator };
|
|
895
905
|
if (obj.collector !== undefined)
|
|
896
906
|
return { collector: obj.collector };
|
|
907
|
+
if (obj.inlineCode !== undefined)
|
|
908
|
+
return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
|
|
897
909
|
if (obj.$unknown !== undefined)
|
|
898
910
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
899
911
|
};
|
|
@@ -2352,6 +2352,7 @@ const se_FlowNodeConfiguration = (input, context) => {
|
|
|
2352
2352
|
agent: (value) => ({ agent: _json(value) }),
|
|
2353
2353
|
collector: (value) => ({ collector: _json(value) }),
|
|
2354
2354
|
condition: (value) => ({ condition: _json(value) }),
|
|
2355
|
+
inlineCode: (value) => ({ inlineCode: _json(value) }),
|
|
2355
2356
|
input: (value) => ({ input: _json(value) }),
|
|
2356
2357
|
iterator: (value) => ({ iterator: _json(value) }),
|
|
2357
2358
|
knowledgeBase: (value) => ({ knowledgeBase: _json(value) }),
|
|
@@ -2873,6 +2874,11 @@ const de_FlowNodeConfiguration = (output, context) => {
|
|
|
2873
2874
|
condition: _json(output.condition),
|
|
2874
2875
|
};
|
|
2875
2876
|
}
|
|
2877
|
+
if (output.inlineCode != null) {
|
|
2878
|
+
return {
|
|
2879
|
+
inlineCode: _json(output.inlineCode),
|
|
2880
|
+
};
|
|
2881
|
+
}
|
|
2876
2882
|
if (output.input != null) {
|
|
2877
2883
|
return {
|
|
2878
2884
|
input: _json(output.input),
|
|
@@ -43,7 +43,7 @@ declare const CreateFlowCommand_base: {
|
|
|
43
43
|
* nodes: [ // FlowNodes
|
|
44
44
|
* { // FlowNode
|
|
45
45
|
* name: "STRING_VALUE", // required
|
|
46
|
-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
46
|
+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
47
47
|
* configuration: { // FlowNodeConfiguration Union: only one key present
|
|
48
48
|
* input: {},
|
|
49
49
|
* output: {},
|
|
@@ -175,6 +175,10 @@ declare const CreateFlowCommand_base: {
|
|
|
175
175
|
* },
|
|
176
176
|
* iterator: {},
|
|
177
177
|
* collector: {},
|
|
178
|
+
* inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
179
|
+
* code: "STRING_VALUE", // required
|
|
180
|
+
* language: "Python_3", // required
|
|
181
|
+
* },
|
|
178
182
|
* },
|
|
179
183
|
* inputs: [ // FlowNodeInputs
|
|
180
184
|
* { // FlowNodeInput
|
|
@@ -231,7 +235,7 @@ declare const CreateFlowCommand_base: {
|
|
|
231
235
|
* // nodes: [ // FlowNodes
|
|
232
236
|
* // { // FlowNode
|
|
233
237
|
* // name: "STRING_VALUE", // required
|
|
234
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
238
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
235
239
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
236
240
|
* // input: {},
|
|
237
241
|
* // output: {},
|
|
@@ -363,6 +367,10 @@ declare const CreateFlowCommand_base: {
|
|
|
363
367
|
* // },
|
|
364
368
|
* // iterator: {},
|
|
365
369
|
* // collector: {},
|
|
370
|
+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
371
|
+
* // code: "STRING_VALUE", // required
|
|
372
|
+
* // language: "Python_3", // required
|
|
373
|
+
* // },
|
|
366
374
|
* // },
|
|
367
375
|
* // inputs: [ // FlowNodeInputs
|
|
368
376
|
* // { // FlowNodeInput
|
|
@@ -55,7 +55,7 @@ declare const CreateFlowVersionCommand_base: {
|
|
|
55
55
|
* // nodes: [ // FlowNodes
|
|
56
56
|
* // { // FlowNode
|
|
57
57
|
* // name: "STRING_VALUE", // required
|
|
58
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
58
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
59
59
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
60
60
|
* // input: {},
|
|
61
61
|
* // output: {},
|
|
@@ -187,6 +187,10 @@ declare const CreateFlowVersionCommand_base: {
|
|
|
187
187
|
* // },
|
|
188
188
|
* // iterator: {},
|
|
189
189
|
* // collector: {},
|
|
190
|
+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
191
|
+
* // code: "STRING_VALUE", // required
|
|
192
|
+
* // language: "Python_3", // required
|
|
193
|
+
* // },
|
|
190
194
|
* // },
|
|
191
195
|
* // inputs: [ // FlowNodeInputs
|
|
192
196
|
* // { // FlowNodeInput
|
|
@@ -54,7 +54,7 @@ declare const GetFlowCommand_base: {
|
|
|
54
54
|
* // nodes: [ // FlowNodes
|
|
55
55
|
* // { // FlowNode
|
|
56
56
|
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
57
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
58
58
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
59
59
|
* // input: {},
|
|
60
60
|
* // output: {},
|
|
@@ -186,6 +186,10 @@ declare const GetFlowCommand_base: {
|
|
|
186
186
|
* // },
|
|
187
187
|
* // iterator: {},
|
|
188
188
|
* // collector: {},
|
|
189
|
+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
190
|
+
* // code: "STRING_VALUE", // required
|
|
191
|
+
* // language: "Python_3", // required
|
|
192
|
+
* // },
|
|
189
193
|
* // },
|
|
190
194
|
* // inputs: [ // FlowNodeInputs
|
|
191
195
|
* // { // FlowNodeInput
|
|
@@ -54,7 +54,7 @@ declare const GetFlowVersionCommand_base: {
|
|
|
54
54
|
* // nodes: [ // FlowNodes
|
|
55
55
|
* // { // FlowNode
|
|
56
56
|
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
57
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
58
58
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
59
59
|
* // input: {},
|
|
60
60
|
* // output: {},
|
|
@@ -186,6 +186,10 @@ declare const GetFlowVersionCommand_base: {
|
|
|
186
186
|
* // },
|
|
187
187
|
* // iterator: {},
|
|
188
188
|
* // collector: {},
|
|
189
|
+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
190
|
+
* // code: "STRING_VALUE", // required
|
|
191
|
+
* // language: "Python_3", // required
|
|
192
|
+
* // },
|
|
189
193
|
* // },
|
|
190
194
|
* // inputs: [ // FlowNodeInputs
|
|
191
195
|
* // { // FlowNodeInput
|
|
@@ -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 { StopIngestionJobRequest
|
|
4
|
+
import { StopIngestionJobRequest } from "../models/models_0";
|
|
5
|
+
import { StopIngestionJobResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -43,7 +43,7 @@ declare const UpdateFlowCommand_base: {
|
|
|
43
43
|
* nodes: [ // FlowNodes
|
|
44
44
|
* { // FlowNode
|
|
45
45
|
* name: "STRING_VALUE", // required
|
|
46
|
-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
46
|
+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
47
47
|
* configuration: { // FlowNodeConfiguration Union: only one key present
|
|
48
48
|
* input: {},
|
|
49
49
|
* output: {},
|
|
@@ -175,6 +175,10 @@ declare const UpdateFlowCommand_base: {
|
|
|
175
175
|
* },
|
|
176
176
|
* iterator: {},
|
|
177
177
|
* collector: {},
|
|
178
|
+
* inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
179
|
+
* code: "STRING_VALUE", // required
|
|
180
|
+
* language: "Python_3", // required
|
|
181
|
+
* },
|
|
178
182
|
* },
|
|
179
183
|
* inputs: [ // FlowNodeInputs
|
|
180
184
|
* { // FlowNodeInput
|
|
@@ -228,7 +232,7 @@ declare const UpdateFlowCommand_base: {
|
|
|
228
232
|
* // nodes: [ // FlowNodes
|
|
229
233
|
* // { // FlowNode
|
|
230
234
|
* // name: "STRING_VALUE", // required
|
|
231
|
-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
235
|
+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
232
236
|
* // configuration: { // FlowNodeConfiguration Union: only one key present
|
|
233
237
|
* // input: {},
|
|
234
238
|
* // output: {},
|
|
@@ -360,6 +364,10 @@ declare const UpdateFlowCommand_base: {
|
|
|
360
364
|
* // },
|
|
361
365
|
* // iterator: {},
|
|
362
366
|
* // collector: {},
|
|
367
|
+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
368
|
+
* // code: "STRING_VALUE", // required
|
|
369
|
+
* // language: "Python_3", // required
|
|
370
|
+
* // },
|
|
363
371
|
* // },
|
|
364
372
|
* // inputs: [ // FlowNodeInputs
|
|
365
373
|
* // { // FlowNodeInput
|
|
@@ -39,7 +39,7 @@ declare const ValidateFlowDefinitionCommand_base: {
|
|
|
39
39
|
* nodes: [ // FlowNodes
|
|
40
40
|
* { // FlowNode
|
|
41
41
|
* name: "STRING_VALUE", // required
|
|
42
|
-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
|
|
42
|
+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
|
|
43
43
|
* configuration: { // FlowNodeConfiguration Union: only one key present
|
|
44
44
|
* input: {},
|
|
45
45
|
* output: {},
|
|
@@ -171,6 +171,10 @@ declare const ValidateFlowDefinitionCommand_base: {
|
|
|
171
171
|
* },
|
|
172
172
|
* iterator: {},
|
|
173
173
|
* collector: {},
|
|
174
|
+
* inlineCode: { // InlineCodeFlowNodeConfiguration
|
|
175
|
+
* code: "STRING_VALUE", // required
|
|
176
|
+
* language: "Python_3", // required
|
|
177
|
+
* },
|
|
174
178
|
* },
|
|
175
179
|
* inputs: [ // FlowNodeInputs
|
|
176
180
|
* { // FlowNodeInput
|
|
@@ -397,7 +397,7 @@ export interface CreateAgentActionGroupRequest {
|
|
|
397
397
|
* Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only.
|
|
398
398
|
* When operating computer use functionality, we recommend taking additional security precautions,
|
|
399
399
|
* such as executing computer actions in virtual environments with restricted data access and limited internet connectivity.
|
|
400
|
-
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
400
|
+
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
401
401
|
* </p>
|
|
402
402
|
* </important>
|
|
403
403
|
* <ul>
|
|
@@ -424,7 +424,7 @@ export interface CreateAgentActionGroupRequest {
|
|
|
424
424
|
* <p>The configuration settings for a computer use action.</p>
|
|
425
425
|
* <important>
|
|
426
426
|
* <p>
|
|
427
|
-
* Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
427
|
+
* Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
428
428
|
* </p>
|
|
429
429
|
* </important>
|
|
430
430
|
* @public
|
|
@@ -507,7 +507,7 @@ export interface AgentActionGroup {
|
|
|
507
507
|
* <p>The configuration settings for a computer use action.</p>
|
|
508
508
|
* <important>
|
|
509
509
|
* <p>
|
|
510
|
-
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
510
|
+
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
511
511
|
* </p>
|
|
512
512
|
* </important>
|
|
513
513
|
* @public
|
|
@@ -803,7 +803,7 @@ export interface UpdateAgentActionGroupRequest {
|
|
|
803
803
|
* Computer use is a new Anthropic Claude model capability (in beta) available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only.
|
|
804
804
|
* When operating computer use functionality, we recommend taking additional security precautions,
|
|
805
805
|
* such as executing computer actions in virtual environments with restricted data access and limited internet connectivity.
|
|
806
|
-
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
806
|
+
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
807
807
|
* </p>
|
|
808
808
|
* </important>
|
|
809
809
|
* <ul>
|
|
@@ -831,7 +831,7 @@ export interface UpdateAgentActionGroupRequest {
|
|
|
831
831
|
* <p>The configuration settings for a computer use action.</p>
|
|
832
832
|
* <important>
|
|
833
833
|
* <p>
|
|
834
|
-
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
834
|
+
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
835
835
|
* </p>
|
|
836
836
|
* </important>
|
|
837
837
|
* @public
|
|
@@ -1030,7 +1030,7 @@ export interface InferenceConfiguration {
|
|
|
1030
1030
|
*/
|
|
1031
1031
|
temperature?: number | undefined;
|
|
1032
1032
|
/**
|
|
1033
|
-
* <p>While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for <code>Top P</code> determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set <code>topP</code> to
|
|
1033
|
+
* <p>While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for <code>Top P</code> determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set <code>topP</code> to 0.8, the model only selects the next token from the top 80% of the probability distribution of next tokens.</p>
|
|
1034
1034
|
* @public
|
|
1035
1035
|
*/
|
|
1036
1036
|
topP?: number | undefined;
|
|
@@ -1109,7 +1109,7 @@ export interface PromptConfiguration {
|
|
|
1109
1109
|
* <ul>
|
|
1110
1110
|
* <li>
|
|
1111
1111
|
* <p>
|
|
1112
|
-
* <code>PRE_PROCESSING</code> – <code>
|
|
1112
|
+
* <code>PRE_PROCESSING</code> – <code>DISABLED</code>
|
|
1113
1113
|
* </p>
|
|
1114
1114
|
* </li>
|
|
1115
1115
|
* <li>
|
|
@@ -4108,6 +4108,35 @@ export interface ConditionFlowNodeConfiguration {
|
|
|
4108
4108
|
*/
|
|
4109
4109
|
conditions: FlowCondition[] | undefined;
|
|
4110
4110
|
}
|
|
4111
|
+
/**
|
|
4112
|
+
* @public
|
|
4113
|
+
* @enum
|
|
4114
|
+
*/
|
|
4115
|
+
export declare const SupportedLanguages: {
|
|
4116
|
+
readonly PYTHON_3: "Python_3";
|
|
4117
|
+
};
|
|
4118
|
+
/**
|
|
4119
|
+
* @public
|
|
4120
|
+
*/
|
|
4121
|
+
export type SupportedLanguages = (typeof SupportedLanguages)[keyof typeof SupportedLanguages];
|
|
4122
|
+
/**
|
|
4123
|
+
* <p>Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.</p>
|
|
4124
|
+
* @public
|
|
4125
|
+
*/
|
|
4126
|
+
export interface InlineCodeFlowNodeConfiguration {
|
|
4127
|
+
/**
|
|
4128
|
+
* <p>The code that's executed in your inline code node. The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow.</p>
|
|
4129
|
+
* <p>The code must be valid in the programming <code>language</code> that you specify.</p>
|
|
4130
|
+
* @public
|
|
4131
|
+
*/
|
|
4132
|
+
code: string | undefined;
|
|
4133
|
+
/**
|
|
4134
|
+
* <p>The programming language used by your inline code node.</p>
|
|
4135
|
+
* <p>The code must be valid in the programming <code>language</code> that you specify. Currently, only Python 3 (<code>Python_3</code>) is supported.</p>
|
|
4136
|
+
* @public
|
|
4137
|
+
*/
|
|
4138
|
+
language: SupportedLanguages | undefined;
|
|
4139
|
+
}
|
|
4111
4140
|
/**
|
|
4112
4141
|
* <p>Contains configurations for the input flow node for a flow. This node takes the input from flow invocation and passes it to the next node in the data type that you specify.</p>
|
|
4113
4142
|
* @public
|
|
@@ -4873,7 +4902,7 @@ export interface StorageFlowNodeConfiguration {
|
|
|
4873
4902
|
* <p>Contains configurations for a node in your flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html">Node types in Amazon Bedrock works</a> in the Amazon Bedrock User Guide.</p>
|
|
4874
4903
|
* @public
|
|
4875
4904
|
*/
|
|
4876
|
-
export type FlowNodeConfiguration = FlowNodeConfiguration.AgentMember | FlowNodeConfiguration.CollectorMember | FlowNodeConfiguration.ConditionMember | FlowNodeConfiguration.InputMember | FlowNodeConfiguration.IteratorMember | FlowNodeConfiguration.KnowledgeBaseMember | FlowNodeConfiguration.LambdaFunctionMember | FlowNodeConfiguration.LexMember | FlowNodeConfiguration.OutputMember | FlowNodeConfiguration.PromptMember | FlowNodeConfiguration.RetrievalMember | FlowNodeConfiguration.StorageMember | FlowNodeConfiguration.$UnknownMember;
|
|
4905
|
+
export type FlowNodeConfiguration = FlowNodeConfiguration.AgentMember | FlowNodeConfiguration.CollectorMember | FlowNodeConfiguration.ConditionMember | FlowNodeConfiguration.InlineCodeMember | FlowNodeConfiguration.InputMember | FlowNodeConfiguration.IteratorMember | FlowNodeConfiguration.KnowledgeBaseMember | FlowNodeConfiguration.LambdaFunctionMember | FlowNodeConfiguration.LexMember | FlowNodeConfiguration.OutputMember | FlowNodeConfiguration.PromptMember | FlowNodeConfiguration.RetrievalMember | FlowNodeConfiguration.StorageMember | FlowNodeConfiguration.$UnknownMember;
|
|
4877
4906
|
/**
|
|
4878
4907
|
* @public
|
|
4879
4908
|
*/
|
|
@@ -4895,6 +4924,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4895
4924
|
retrieval?: never;
|
|
4896
4925
|
iterator?: never;
|
|
4897
4926
|
collector?: never;
|
|
4927
|
+
inlineCode?: never;
|
|
4898
4928
|
$unknown?: never;
|
|
4899
4929
|
}
|
|
4900
4930
|
/**
|
|
@@ -4914,6 +4944,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4914
4944
|
retrieval?: never;
|
|
4915
4945
|
iterator?: never;
|
|
4916
4946
|
collector?: never;
|
|
4947
|
+
inlineCode?: never;
|
|
4917
4948
|
$unknown?: never;
|
|
4918
4949
|
}
|
|
4919
4950
|
/**
|
|
@@ -4933,10 +4964,11 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4933
4964
|
retrieval?: never;
|
|
4934
4965
|
iterator?: never;
|
|
4935
4966
|
collector?: never;
|
|
4967
|
+
inlineCode?: never;
|
|
4936
4968
|
$unknown?: never;
|
|
4937
4969
|
}
|
|
4938
4970
|
/**
|
|
4939
|
-
* <p>Contains configurations for a
|
|
4971
|
+
* <p>Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.</p>
|
|
4940
4972
|
* @public
|
|
4941
4973
|
*/
|
|
4942
4974
|
interface ConditionMember {
|
|
@@ -4952,6 +4984,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4952
4984
|
retrieval?: never;
|
|
4953
4985
|
iterator?: never;
|
|
4954
4986
|
collector?: never;
|
|
4987
|
+
inlineCode?: never;
|
|
4955
4988
|
$unknown?: never;
|
|
4956
4989
|
}
|
|
4957
4990
|
/**
|
|
@@ -4971,6 +5004,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4971
5004
|
retrieval?: never;
|
|
4972
5005
|
iterator?: never;
|
|
4973
5006
|
collector?: never;
|
|
5007
|
+
inlineCode?: never;
|
|
4974
5008
|
$unknown?: never;
|
|
4975
5009
|
}
|
|
4976
5010
|
/**
|
|
@@ -4990,6 +5024,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
4990
5024
|
retrieval?: never;
|
|
4991
5025
|
iterator?: never;
|
|
4992
5026
|
collector?: never;
|
|
5027
|
+
inlineCode?: never;
|
|
4993
5028
|
$unknown?: never;
|
|
4994
5029
|
}
|
|
4995
5030
|
/**
|
|
@@ -5009,10 +5044,11 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5009
5044
|
retrieval?: never;
|
|
5010
5045
|
iterator?: never;
|
|
5011
5046
|
collector?: never;
|
|
5047
|
+
inlineCode?: never;
|
|
5012
5048
|
$unknown?: never;
|
|
5013
5049
|
}
|
|
5014
5050
|
/**
|
|
5015
|
-
* <p>Contains configurations for a
|
|
5051
|
+
* <p>Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.</p>
|
|
5016
5052
|
* @public
|
|
5017
5053
|
*/
|
|
5018
5054
|
interface StorageMember {
|
|
@@ -5028,6 +5064,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5028
5064
|
retrieval?: never;
|
|
5029
5065
|
iterator?: never;
|
|
5030
5066
|
collector?: never;
|
|
5067
|
+
inlineCode?: never;
|
|
5031
5068
|
$unknown?: never;
|
|
5032
5069
|
}
|
|
5033
5070
|
/**
|
|
@@ -5047,10 +5084,11 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5047
5084
|
retrieval?: never;
|
|
5048
5085
|
iterator?: never;
|
|
5049
5086
|
collector?: never;
|
|
5087
|
+
inlineCode?: never;
|
|
5050
5088
|
$unknown?: never;
|
|
5051
5089
|
}
|
|
5052
5090
|
/**
|
|
5053
|
-
* <p>Contains configurations for a
|
|
5091
|
+
* <p>Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.</p>
|
|
5054
5092
|
* @public
|
|
5055
5093
|
*/
|
|
5056
5094
|
interface RetrievalMember {
|
|
@@ -5066,6 +5104,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5066
5104
|
retrieval: RetrievalFlowNodeConfiguration;
|
|
5067
5105
|
iterator?: never;
|
|
5068
5106
|
collector?: never;
|
|
5107
|
+
inlineCode?: never;
|
|
5069
5108
|
$unknown?: never;
|
|
5070
5109
|
}
|
|
5071
5110
|
/**
|
|
@@ -5086,6 +5125,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5086
5125
|
retrieval?: never;
|
|
5087
5126
|
iterator: IteratorFlowNodeConfiguration;
|
|
5088
5127
|
collector?: never;
|
|
5128
|
+
inlineCode?: never;
|
|
5089
5129
|
$unknown?: never;
|
|
5090
5130
|
}
|
|
5091
5131
|
/**
|
|
@@ -5105,6 +5145,27 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5105
5145
|
retrieval?: never;
|
|
5106
5146
|
iterator?: never;
|
|
5107
5147
|
collector: CollectorFlowNodeConfiguration;
|
|
5148
|
+
inlineCode?: never;
|
|
5149
|
+
$unknown?: never;
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* <p>Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.</p>
|
|
5153
|
+
* @public
|
|
5154
|
+
*/
|
|
5155
|
+
interface InlineCodeMember {
|
|
5156
|
+
input?: never;
|
|
5157
|
+
output?: never;
|
|
5158
|
+
knowledgeBase?: never;
|
|
5159
|
+
condition?: never;
|
|
5160
|
+
lex?: never;
|
|
5161
|
+
prompt?: never;
|
|
5162
|
+
lambdaFunction?: never;
|
|
5163
|
+
storage?: never;
|
|
5164
|
+
agent?: never;
|
|
5165
|
+
retrieval?: never;
|
|
5166
|
+
iterator?: never;
|
|
5167
|
+
collector?: never;
|
|
5168
|
+
inlineCode: InlineCodeFlowNodeConfiguration;
|
|
5108
5169
|
$unknown?: never;
|
|
5109
5170
|
}
|
|
5110
5171
|
/**
|
|
@@ -5123,6 +5184,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5123
5184
|
retrieval?: never;
|
|
5124
5185
|
iterator?: never;
|
|
5125
5186
|
collector?: never;
|
|
5187
|
+
inlineCode?: never;
|
|
5126
5188
|
$unknown: [string, any];
|
|
5127
5189
|
}
|
|
5128
5190
|
interface Visitor<T> {
|
|
@@ -5138,6 +5200,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
5138
5200
|
retrieval: (value: RetrievalFlowNodeConfiguration) => T;
|
|
5139
5201
|
iterator: (value: IteratorFlowNodeConfiguration) => T;
|
|
5140
5202
|
collector: (value: CollectorFlowNodeConfiguration) => T;
|
|
5203
|
+
inlineCode: (value: InlineCodeFlowNodeConfiguration) => T;
|
|
5141
5204
|
_: (name: string, value: any) => T;
|
|
5142
5205
|
}
|
|
5143
5206
|
const visit: <T>(value: FlowNodeConfiguration, visitor: Visitor<T>) => T;
|
|
@@ -5202,6 +5265,7 @@ export declare const FlowNodeType: {
|
|
|
5202
5265
|
readonly AGENT: "Agent";
|
|
5203
5266
|
readonly COLLECTOR: "Collector";
|
|
5204
5267
|
readonly CONDITION: "Condition";
|
|
5268
|
+
readonly INLINE_CODE: "InlineCode";
|
|
5205
5269
|
readonly INPUT: "Input";
|
|
5206
5270
|
readonly ITERATOR: "Iterator";
|
|
5207
5271
|
readonly KNOWLEDGE_BASE: "KnowledgeBase";
|
|
@@ -8138,27 +8202,6 @@ export interface StopIngestionJobRequest {
|
|
|
8138
8202
|
*/
|
|
8139
8203
|
ingestionJobId: string | undefined;
|
|
8140
8204
|
}
|
|
8141
|
-
/**
|
|
8142
|
-
* @public
|
|
8143
|
-
*/
|
|
8144
|
-
export interface StopIngestionJobResponse {
|
|
8145
|
-
/**
|
|
8146
|
-
* <p>Contains information about the stopped data ingestion job.</p>
|
|
8147
|
-
* @public
|
|
8148
|
-
*/
|
|
8149
|
-
ingestionJob: IngestionJob | undefined;
|
|
8150
|
-
}
|
|
8151
|
-
/**
|
|
8152
|
-
* <p>Contains information about the identifier of the document to ingest into a custom data source.</p>
|
|
8153
|
-
* @public
|
|
8154
|
-
*/
|
|
8155
|
-
export interface CustomDocumentIdentifier {
|
|
8156
|
-
/**
|
|
8157
|
-
* <p>The identifier of the document to ingest into a custom data source.</p>
|
|
8158
|
-
* @public
|
|
8159
|
-
*/
|
|
8160
|
-
id: string | undefined;
|
|
8161
|
-
}
|
|
8162
8205
|
/**
|
|
8163
8206
|
* @internal
|
|
8164
8207
|
*/
|
|
@@ -8339,6 +8382,10 @@ export declare const FlowConditionFilterSensitiveLog: (obj: FlowCondition) => an
|
|
|
8339
8382
|
* @internal
|
|
8340
8383
|
*/
|
|
8341
8384
|
export declare const ConditionFlowNodeConfigurationFilterSensitiveLog: (obj: ConditionFlowNodeConfiguration) => any;
|
|
8385
|
+
/**
|
|
8386
|
+
* @internal
|
|
8387
|
+
*/
|
|
8388
|
+
export declare const InlineCodeFlowNodeConfigurationFilterSensitiveLog: (obj: InlineCodeFlowNodeConfiguration) => any;
|
|
8342
8389
|
/**
|
|
8343
8390
|
* @internal
|
|
8344
8391
|
*/
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary,
|
|
2
|
+
import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, FlowDefinition, FlowValidation, IngestionJob, KnowledgeBaseState, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, S3Location } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface StopIngestionJobResponse {
|
|
7
|
+
/**
|
|
8
|
+
* <p>Contains information about the stopped data ingestion job.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
ingestionJob: IngestionJob | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* <p>Contains information about the identifier of the document to ingest into a custom data source.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomDocumentIdentifier {
|
|
18
|
+
/**
|
|
19
|
+
* <p>The identifier of the document to ingest into a custom data source.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
id: string | undefined;
|
|
23
|
+
}
|
|
3
24
|
/**
|
|
4
25
|
* @public
|
|
5
26
|
* @enum
|
|
@@ -5,10 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../BedrockAgentClient";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
StopIngestionJobResponse,
|
|
11
|
-
} from "../models/models_0";
|
|
8
|
+
import { StopIngestionJobRequest } from "../models/models_0";
|
|
9
|
+
import { StopIngestionJobResponse } from "../models/models_1";
|
|
12
10
|
export { __MetadataBearer };
|
|
13
11
|
export { $Command };
|
|
14
12
|
export interface StopIngestionJobCommandInput extends StopIngestionJobRequest {}
|
|
@@ -1091,6 +1091,15 @@ export interface FlowCondition {
|
|
|
1091
1091
|
export interface ConditionFlowNodeConfiguration {
|
|
1092
1092
|
conditions: FlowCondition[] | undefined;
|
|
1093
1093
|
}
|
|
1094
|
+
export declare const SupportedLanguages: {
|
|
1095
|
+
readonly PYTHON_3: "Python_3";
|
|
1096
|
+
};
|
|
1097
|
+
export type SupportedLanguages =
|
|
1098
|
+
(typeof SupportedLanguages)[keyof typeof SupportedLanguages];
|
|
1099
|
+
export interface InlineCodeFlowNodeConfiguration {
|
|
1100
|
+
code: string | undefined;
|
|
1101
|
+
language: SupportedLanguages | undefined;
|
|
1102
|
+
}
|
|
1094
1103
|
export interface InputFlowNodeConfiguration {}
|
|
1095
1104
|
export interface IteratorFlowNodeConfiguration {}
|
|
1096
1105
|
export interface KnowledgeBaseFlowNodeConfiguration {
|
|
@@ -1454,6 +1463,7 @@ export type FlowNodeConfiguration =
|
|
|
1454
1463
|
| FlowNodeConfiguration.AgentMember
|
|
1455
1464
|
| FlowNodeConfiguration.CollectorMember
|
|
1456
1465
|
| FlowNodeConfiguration.ConditionMember
|
|
1466
|
+
| FlowNodeConfiguration.InlineCodeMember
|
|
1457
1467
|
| FlowNodeConfiguration.InputMember
|
|
1458
1468
|
| FlowNodeConfiguration.IteratorMember
|
|
1459
1469
|
| FlowNodeConfiguration.KnowledgeBaseMember
|
|
@@ -1478,6 +1488,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1478
1488
|
retrieval?: never;
|
|
1479
1489
|
iterator?: never;
|
|
1480
1490
|
collector?: never;
|
|
1491
|
+
inlineCode?: never;
|
|
1481
1492
|
$unknown?: never;
|
|
1482
1493
|
}
|
|
1483
1494
|
interface OutputMember {
|
|
@@ -1493,6 +1504,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1493
1504
|
retrieval?: never;
|
|
1494
1505
|
iterator?: never;
|
|
1495
1506
|
collector?: never;
|
|
1507
|
+
inlineCode?: never;
|
|
1496
1508
|
$unknown?: never;
|
|
1497
1509
|
}
|
|
1498
1510
|
interface KnowledgeBaseMember {
|
|
@@ -1508,6 +1520,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1508
1520
|
retrieval?: never;
|
|
1509
1521
|
iterator?: never;
|
|
1510
1522
|
collector?: never;
|
|
1523
|
+
inlineCode?: never;
|
|
1511
1524
|
$unknown?: never;
|
|
1512
1525
|
}
|
|
1513
1526
|
interface ConditionMember {
|
|
@@ -1523,6 +1536,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1523
1536
|
retrieval?: never;
|
|
1524
1537
|
iterator?: never;
|
|
1525
1538
|
collector?: never;
|
|
1539
|
+
inlineCode?: never;
|
|
1526
1540
|
$unknown?: never;
|
|
1527
1541
|
}
|
|
1528
1542
|
interface LexMember {
|
|
@@ -1538,6 +1552,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1538
1552
|
retrieval?: never;
|
|
1539
1553
|
iterator?: never;
|
|
1540
1554
|
collector?: never;
|
|
1555
|
+
inlineCode?: never;
|
|
1541
1556
|
$unknown?: never;
|
|
1542
1557
|
}
|
|
1543
1558
|
interface PromptMember {
|
|
@@ -1553,6 +1568,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1553
1568
|
retrieval?: never;
|
|
1554
1569
|
iterator?: never;
|
|
1555
1570
|
collector?: never;
|
|
1571
|
+
inlineCode?: never;
|
|
1556
1572
|
$unknown?: never;
|
|
1557
1573
|
}
|
|
1558
1574
|
interface LambdaFunctionMember {
|
|
@@ -1568,6 +1584,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1568
1584
|
retrieval?: never;
|
|
1569
1585
|
iterator?: never;
|
|
1570
1586
|
collector?: never;
|
|
1587
|
+
inlineCode?: never;
|
|
1571
1588
|
$unknown?: never;
|
|
1572
1589
|
}
|
|
1573
1590
|
interface StorageMember {
|
|
@@ -1583,6 +1600,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1583
1600
|
retrieval?: never;
|
|
1584
1601
|
iterator?: never;
|
|
1585
1602
|
collector?: never;
|
|
1603
|
+
inlineCode?: never;
|
|
1586
1604
|
$unknown?: never;
|
|
1587
1605
|
}
|
|
1588
1606
|
interface AgentMember {
|
|
@@ -1598,6 +1616,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1598
1616
|
retrieval?: never;
|
|
1599
1617
|
iterator?: never;
|
|
1600
1618
|
collector?: never;
|
|
1619
|
+
inlineCode?: never;
|
|
1601
1620
|
$unknown?: never;
|
|
1602
1621
|
}
|
|
1603
1622
|
interface RetrievalMember {
|
|
@@ -1613,6 +1632,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1613
1632
|
retrieval: RetrievalFlowNodeConfiguration;
|
|
1614
1633
|
iterator?: never;
|
|
1615
1634
|
collector?: never;
|
|
1635
|
+
inlineCode?: never;
|
|
1616
1636
|
$unknown?: never;
|
|
1617
1637
|
}
|
|
1618
1638
|
interface IteratorMember {
|
|
@@ -1628,6 +1648,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1628
1648
|
retrieval?: never;
|
|
1629
1649
|
iterator: IteratorFlowNodeConfiguration;
|
|
1630
1650
|
collector?: never;
|
|
1651
|
+
inlineCode?: never;
|
|
1631
1652
|
$unknown?: never;
|
|
1632
1653
|
}
|
|
1633
1654
|
interface CollectorMember {
|
|
@@ -1643,6 +1664,23 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1643
1664
|
retrieval?: never;
|
|
1644
1665
|
iterator?: never;
|
|
1645
1666
|
collector: CollectorFlowNodeConfiguration;
|
|
1667
|
+
inlineCode?: never;
|
|
1668
|
+
$unknown?: never;
|
|
1669
|
+
}
|
|
1670
|
+
interface InlineCodeMember {
|
|
1671
|
+
input?: never;
|
|
1672
|
+
output?: never;
|
|
1673
|
+
knowledgeBase?: never;
|
|
1674
|
+
condition?: never;
|
|
1675
|
+
lex?: never;
|
|
1676
|
+
prompt?: never;
|
|
1677
|
+
lambdaFunction?: never;
|
|
1678
|
+
storage?: never;
|
|
1679
|
+
agent?: never;
|
|
1680
|
+
retrieval?: never;
|
|
1681
|
+
iterator?: never;
|
|
1682
|
+
collector?: never;
|
|
1683
|
+
inlineCode: InlineCodeFlowNodeConfiguration;
|
|
1646
1684
|
$unknown?: never;
|
|
1647
1685
|
}
|
|
1648
1686
|
interface $UnknownMember {
|
|
@@ -1658,6 +1696,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1658
1696
|
retrieval?: never;
|
|
1659
1697
|
iterator?: never;
|
|
1660
1698
|
collector?: never;
|
|
1699
|
+
inlineCode?: never;
|
|
1661
1700
|
$unknown: [string, any];
|
|
1662
1701
|
}
|
|
1663
1702
|
interface Visitor<T> {
|
|
@@ -1673,6 +1712,7 @@ export declare namespace FlowNodeConfiguration {
|
|
|
1673
1712
|
retrieval: (value: RetrievalFlowNodeConfiguration) => T;
|
|
1674
1713
|
iterator: (value: IteratorFlowNodeConfiguration) => T;
|
|
1675
1714
|
collector: (value: CollectorFlowNodeConfiguration) => T;
|
|
1715
|
+
inlineCode: (value: InlineCodeFlowNodeConfiguration) => T;
|
|
1676
1716
|
_: (name: string, value: any) => T;
|
|
1677
1717
|
}
|
|
1678
1718
|
const visit: <T>(value: FlowNodeConfiguration, visitor: Visitor<T>) => T;
|
|
@@ -1699,6 +1739,7 @@ export declare const FlowNodeType: {
|
|
|
1699
1739
|
readonly AGENT: "Agent";
|
|
1700
1740
|
readonly COLLECTOR: "Collector";
|
|
1701
1741
|
readonly CONDITION: "Condition";
|
|
1742
|
+
readonly INLINE_CODE: "InlineCode";
|
|
1702
1743
|
readonly INPUT: "Input";
|
|
1703
1744
|
readonly ITERATOR: "Iterator";
|
|
1704
1745
|
readonly KNOWLEDGE_BASE: "KnowledgeBase";
|
|
@@ -3135,12 +3176,6 @@ export interface StopIngestionJobRequest {
|
|
|
3135
3176
|
dataSourceId: string | undefined;
|
|
3136
3177
|
ingestionJobId: string | undefined;
|
|
3137
3178
|
}
|
|
3138
|
-
export interface StopIngestionJobResponse {
|
|
3139
|
-
ingestionJob: IngestionJob | undefined;
|
|
3140
|
-
}
|
|
3141
|
-
export interface CustomDocumentIdentifier {
|
|
3142
|
-
id: string | undefined;
|
|
3143
|
-
}
|
|
3144
3179
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
3145
3180
|
export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
|
|
3146
3181
|
obj: CreateAgentActionGroupRequest
|
|
@@ -3268,6 +3303,9 @@ export declare const FlowConditionFilterSensitiveLog: (
|
|
|
3268
3303
|
export declare const ConditionFlowNodeConfigurationFilterSensitiveLog: (
|
|
3269
3304
|
obj: ConditionFlowNodeConfiguration
|
|
3270
3305
|
) => any;
|
|
3306
|
+
export declare const InlineCodeFlowNodeConfigurationFilterSensitiveLog: (
|
|
3307
|
+
obj: InlineCodeFlowNodeConfiguration
|
|
3308
|
+
) => any;
|
|
3271
3309
|
export declare const ContentBlockFilterSensitiveLog: (obj: ContentBlock) => any;
|
|
3272
3310
|
export declare const MessageFilterSensitiveLog: (obj: Message) => any;
|
|
3273
3311
|
export declare const SystemContentBlockFilterSensitiveLog: (
|
|
@@ -5,15 +5,21 @@ import {
|
|
|
5
5
|
AgentStatus,
|
|
6
6
|
AgentVersion,
|
|
7
7
|
AgentVersionSummary,
|
|
8
|
-
CustomDocumentIdentifier,
|
|
9
8
|
FlowDefinition,
|
|
10
9
|
FlowValidation,
|
|
10
|
+
IngestionJob,
|
|
11
11
|
KnowledgeBaseState,
|
|
12
12
|
PromptInferenceConfiguration,
|
|
13
13
|
PromptTemplateConfiguration,
|
|
14
14
|
PromptTemplateType,
|
|
15
15
|
S3Location,
|
|
16
16
|
} from "./models_0";
|
|
17
|
+
export interface StopIngestionJobResponse {
|
|
18
|
+
ingestionJob: IngestionJob | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface CustomDocumentIdentifier {
|
|
21
|
+
id: string | undefined;
|
|
22
|
+
}
|
|
17
23
|
export declare const ContentDataSourceType: {
|
|
18
24
|
readonly CUSTOM: "CUSTOM";
|
|
19
25
|
readonly S3: "S3";
|
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.800.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",
|