Skip to content

Commit 7bc9fde

Browse files
author
awstools
committed
feat(client-bedrock-agent): Features: Add inline code node to prompt flow
1 parent 7606fc0 commit 7bc9fde

File tree

11 files changed

+18230
-18192
lines changed

11 files changed

+18230
-18192
lines changed

clients/client-bedrock-agent/src/commands/CreateFlowCommand.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
4949
* nodes: [ // FlowNodes
5050
* { // FlowNode
5151
* name: "STRING_VALUE", // required
52-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
52+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
5353
* configuration: { // FlowNodeConfiguration Union: only one key present
5454
* input: {},
5555
* output: {},
@@ -181,6 +181,10 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
181181
* },
182182
* iterator: {},
183183
* collector: {},
184+
* inlineCode: { // InlineCodeFlowNodeConfiguration
185+
* code: "STRING_VALUE", // required
186+
* language: "Python_3", // required
187+
* },
184188
* },
185189
* inputs: [ // FlowNodeInputs
186190
* { // FlowNodeInput
@@ -237,7 +241,7 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
237241
* // nodes: [ // FlowNodes
238242
* // { // FlowNode
239243
* // name: "STRING_VALUE", // required
240-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
244+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
241245
* // configuration: { // FlowNodeConfiguration Union: only one key present
242246
* // input: {},
243247
* // output: {},
@@ -369,6 +373,10 @@ export interface CreateFlowCommandOutput extends CreateFlowResponse, __MetadataB
369373
* // },
370374
* // iterator: {},
371375
* // collector: {},
376+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
377+
* // code: "STRING_VALUE", // required
378+
* // language: "Python_3", // required
379+
* // },
372380
* // },
373381
* // inputs: [ // FlowNodeInputs
374382
* // { // FlowNodeInput

clients/client-bedrock-agent/src/commands/CreateFlowVersionCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface CreateFlowVersionCommandOutput extends CreateFlowVersionRespons
6060
* // nodes: [ // FlowNodes
6161
* // { // FlowNode
6262
* // name: "STRING_VALUE", // required
63-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
63+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
6464
* // configuration: { // FlowNodeConfiguration Union: only one key present
6565
* // input: {},
6666
* // output: {},
@@ -192,6 +192,10 @@ export interface CreateFlowVersionCommandOutput extends CreateFlowVersionRespons
192192
* // },
193193
* // iterator: {},
194194
* // collector: {},
195+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
196+
* // code: "STRING_VALUE", // required
197+
* // language: "Python_3", // required
198+
* // },
195199
* // },
196200
* // inputs: [ // FlowNodeInputs
197201
* // { // FlowNodeInput

clients/client-bedrock-agent/src/commands/GetFlowCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface GetFlowCommandOutput extends GetFlowResponse, __MetadataBearer
5555
* // nodes: [ // FlowNodes
5656
* // { // FlowNode
5757
* // 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
5959
* // configuration: { // FlowNodeConfiguration Union: only one key present
6060
* // input: {},
6161
* // output: {},
@@ -187,6 +187,10 @@ export interface GetFlowCommandOutput extends GetFlowResponse, __MetadataBearer
187187
* // },
188188
* // iterator: {},
189189
* // collector: {},
190+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
191+
* // code: "STRING_VALUE", // required
192+
* // language: "Python_3", // required
193+
* // },
190194
* // },
191195
* // inputs: [ // FlowNodeInputs
192196
* // { // FlowNodeInput

clients/client-bedrock-agent/src/commands/GetFlowVersionCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface GetFlowVersionCommandOutput extends GetFlowVersionResponse, __M
5959
* // nodes: [ // FlowNodes
6060
* // { // FlowNode
6161
* // name: "STRING_VALUE", // required
62-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
62+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
6363
* // configuration: { // FlowNodeConfiguration Union: only one key present
6464
* // input: {},
6565
* // output: {},
@@ -191,6 +191,10 @@ export interface GetFlowVersionCommandOutput extends GetFlowVersionResponse, __M
191191
* // },
192192
* // iterator: {},
193193
* // collector: {},
194+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
195+
* // code: "STRING_VALUE", // required
196+
* // language: "Python_3", // required
197+
* // },
194198
* // },
195199
* // inputs: [ // FlowNodeInputs
196200
* // { // FlowNodeInput

clients/client-bedrock-agent/src/commands/StopIngestionJobCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { StopIngestionJobRequest, StopIngestionJobResponse } from "../models/models_0";
9+
import { StopIngestionJobRequest } from "../models/models_0";
10+
import { StopIngestionJobResponse } from "../models/models_1";
1011
import { de_StopIngestionJobCommand, se_StopIngestionJobCommand } from "../protocols/Aws_restJson1";
1112

1213
/**

clients/client-bedrock-agent/src/commands/UpdateFlowCommand.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
4949
* nodes: [ // FlowNodes
5050
* { // FlowNode
5151
* name: "STRING_VALUE", // required
52-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
52+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
5353
* configuration: { // FlowNodeConfiguration Union: only one key present
5454
* input: {},
5555
* output: {},
@@ -181,6 +181,10 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
181181
* },
182182
* iterator: {},
183183
* collector: {},
184+
* inlineCode: { // InlineCodeFlowNodeConfiguration
185+
* code: "STRING_VALUE", // required
186+
* language: "Python_3", // required
187+
* },
184188
* },
185189
* inputs: [ // FlowNodeInputs
186190
* { // FlowNodeInput
@@ -234,7 +238,7 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
234238
* // nodes: [ // FlowNodes
235239
* // { // FlowNode
236240
* // name: "STRING_VALUE", // required
237-
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
241+
* // type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
238242
* // configuration: { // FlowNodeConfiguration Union: only one key present
239243
* // input: {},
240244
* // output: {},
@@ -366,6 +370,10 @@ export interface UpdateFlowCommandOutput extends UpdateFlowResponse, __MetadataB
366370
* // },
367371
* // iterator: {},
368372
* // collector: {},
373+
* // inlineCode: { // InlineCodeFlowNodeConfiguration
374+
* // code: "STRING_VALUE", // required
375+
* // language: "Python_3", // required
376+
* // },
369377
* // },
370378
* // inputs: [ // FlowNodeInputs
371379
* // { // FlowNodeInput

clients/client-bedrock-agent/src/commands/ValidateFlowDefinitionCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface ValidateFlowDefinitionCommandOutput extends ValidateFlowDefinit
4545
* nodes: [ // FlowNodes
4646
* { // FlowNode
4747
* name: "STRING_VALUE", // required
48-
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector", // required
48+
* type: "Input" || "Output" || "KnowledgeBase" || "Condition" || "Lex" || "Prompt" || "LambdaFunction" || "Storage" || "Agent" || "Retrieval" || "Iterator" || "Collector" || "InlineCode", // required
4949
* configuration: { // FlowNodeConfiguration Union: only one key present
5050
* input: {},
5151
* output: {},
@@ -177,6 +177,10 @@ export interface ValidateFlowDefinitionCommandOutput extends ValidateFlowDefinit
177177
* },
178178
* iterator: {},
179179
* collector: {},
180+
* inlineCode: { // InlineCodeFlowNodeConfiguration
181+
* code: "STRING_VALUE", // required
182+
* language: "Python_3", // required
183+
* },
180184
* },
181185
* inputs: [ // FlowNodeInputs
182186
* { // FlowNodeInput

0 commit comments

Comments
 (0)