FlowNodeConfiguration
Contains configurations for a node in your flow. For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.
Contents
Important
This data type is a UNION, so only one of the following members can be specified when used or returned.
- agent
-
Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
Type: AgentFlowNodeConfiguration object
Required: No
- collector
-
Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
Type: CollectorFlowNodeConfiguration object
Required: No
- condition
-
Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
Type: ConditionFlowNodeConfiguration object
Required: No
- input
-
Contains configurations for an input flow node in your flow. The first node in the flow.
inputs
can't be specified for this node.Type: InputFlowNodeConfiguration object
Required: No
- iterator
-
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.
Type: IteratorFlowNodeConfiguration object
Required: No
- knowledgeBase
-
Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
Type: KnowledgeBaseFlowNodeConfiguration object
Required: No
- lambdaFunction
-
Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.
Type: LambdaFunctionFlowNodeConfiguration object
Required: No
- lex
-
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.
Type: LexFlowNodeConfiguration object
Required: No
- output
-
Contains configurations for an output flow node in your flow. The last node in the flow.
outputs
can't be specified for this node.Type: OutputFlowNodeConfiguration object
Required: No
- prompt
-
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.
Type: PromptFlowNodeConfiguration object
Required: No
- retrieval
-
Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
Type: RetrievalFlowNodeConfiguration object
Required: No
- storage
-
Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
Type: StorageFlowNodeConfiguration object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: