interface FlowNodeConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_bedrock.CfnFlow.FlowNodeConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlow_FlowNodeConfigurationProperty |
Java | software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeConfigurationProperty |
Python | aws_cdk.aws_bedrock.CfnFlow.FlowNodeConfigurationProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnFlow » FlowNodeConfigurationProperty |
Contains configurations for a node in your flow.
For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
declare const collector: any;
declare const input: any;
declare const iterator: any;
declare const output: any;
const flowNodeConfigurationProperty: bedrock.CfnFlow.FlowNodeConfigurationProperty = {
agent: {
agentAliasArn: 'agentAliasArn',
},
collector: collector,
condition: {
conditions: [{
name: 'name',
// the properties below are optional
expression: 'expression',
}],
},
input: input,
iterator: iterator,
knowledgeBase: {
knowledgeBaseId: 'knowledgeBaseId',
// the properties below are optional
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
modelId: 'modelId',
},
lambdaFunction: {
lambdaArn: 'lambdaArn',
},
lex: {
botAliasArn: 'botAliasArn',
localeId: 'localeId',
},
output: output,
prompt: {
sourceConfiguration: {
inline: {
modelId: 'modelId',
templateConfiguration: {
text: {
text: 'text',
// the properties below are optional
inputVariables: [{
name: 'name',
}],
},
},
templateType: 'templateType',
// the properties below are optional
inferenceConfiguration: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topP: 123,
},
},
},
resource: {
promptArn: 'promptArn',
},
},
// the properties below are optional
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
},
retrieval: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
storage: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
agent? | IResolvable | Agent | Contains configurations for an agent node in your flow. |
collector? | any | Contains configurations for a collector node in your flow. |
condition? | IResolvable | Condition | Contains configurations for a Condition node in your flow. |
input? | any | Contains configurations for an input flow node in your flow. |
iterator? | any | Contains configurations for an iterator node in your flow. |
knowledge | IResolvable | Knowledge | Contains configurations for a knowledge base node in your flow. |
lambda | IResolvable | Lambda | Contains configurations for a Lambda function node in your flow. |
lex? | IResolvable | Lex | Contains configurations for a Lex node in your flow. |
output? | any | Contains configurations for an output flow node in your flow. |
prompt? | IResolvable | Prompt | Contains configurations for a prompt node in your flow. |
retrieval? | IResolvable | Retrieval | Contains configurations for a Retrieval node in your flow. |
storage? | IResolvable | Storage | Contains configurations for a Storage node in your flow. |
agent?
Type:
IResolvable
|
Agent
(optional)
Contains configurations for an agent node in your flow.
Invokes an alias of an agent and returns the response.
collector?
Type:
any
(optional)
Contains configurations for a collector node in your flow.
Collects an iteration of inputs and consolidates them into an array of outputs.
condition?
Type:
IResolvable
|
Condition
(optional)
Contains configurations for a Condition node in your flow.
Defines conditions that lead to different branches of the flow.
input?
Type:
any
(optional)
Contains configurations for an input flow node in your flow.
The first node in the flow. inputs
can't be specified for this node.
iterator?
Type:
any
(optional)
Contains configurations for an iterator node in your flow.
Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output.
The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
knowledgeBase?
Type:
IResolvable
|
Knowledge
(optional)
Contains configurations for a knowledge base node in your flow.
Queries a knowledge base and returns the retrieved results or generated response.
lambdaFunction?
Type:
IResolvable
|
Lambda
(optional)
Contains configurations for a Lambda function node in your flow.
Invokes an AWS Lambda function.
lex?
Type:
IResolvable
|
Lex
(optional)
Contains configurations for a Lex node in your flow.
Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
output?
Type:
any
(optional)
Contains configurations for an output flow node in your flow.
The last node in the flow. outputs
can't be specified for this node.
prompt?
Type:
IResolvable
|
Prompt
(optional)
Contains configurations for a prompt node in your flow.
Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
retrieval?
Type:
IResolvable
|
Retrieval
(optional)
Contains configurations for a Retrieval node in your flow.
Retrieves data from an Amazon S3 location and returns it as the output.
storage?
Type:
IResolvable
|
Storage
(optional)
Contains configurations for a Storage node in your flow.
Stores an input in an Amazon S3 location.