Class CfnFlowVersion.FlowNodeConfigurationProperty
Contains configurations for a node in your flow.
Inheritance
Namespace: Amazon.CDK.AwsBedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FlowNodeConfigurationProperty : Object, CfnFlowVersion.IFlowNodeConfigurationProperty
Syntax (vb)
Public Class FlowNodeConfigurationProperty
Inherits Object
Implements CfnFlowVersion.IFlowNodeConfigurationProperty
Remarks
For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Aws_bedrock;
var collector;
var input;
var iterator;
var output;
var flowNodeConfigurationProperty = new FlowNodeConfigurationProperty {
Agent = new AgentFlowNodeConfigurationProperty {
AgentAliasArn = "agentAliasArn"
},
Collector = collector,
Condition = new ConditionFlowNodeConfigurationProperty {
Conditions = new [] { new FlowConditionProperty {
Name = "name",
// the properties below are optional
Expression = "expression"
} }
},
Input = input,
Iterator = iterator,
KnowledgeBase = new KnowledgeBaseFlowNodeConfigurationProperty {
KnowledgeBaseId = "knowledgeBaseId",
// the properties below are optional
GuardrailConfiguration = new GuardrailConfigurationProperty {
GuardrailIdentifier = "guardrailIdentifier",
GuardrailVersion = "guardrailVersion"
},
ModelId = "modelId"
},
LambdaFunction = new LambdaFunctionFlowNodeConfigurationProperty {
LambdaArn = "lambdaArn"
},
Lex = new LexFlowNodeConfigurationProperty {
BotAliasArn = "botAliasArn",
LocaleId = "localeId"
},
Output = output,
Prompt = new PromptFlowNodeConfigurationProperty {
SourceConfiguration = new PromptFlowNodeSourceConfigurationProperty {
Inline = new PromptFlowNodeInlineConfigurationProperty {
ModelId = "modelId",
TemplateConfiguration = new PromptTemplateConfigurationProperty {
Text = new TextPromptTemplateConfigurationProperty {
Text = "text",
// the properties below are optional
InputVariables = new [] { new PromptInputVariableProperty {
Name = "name"
} }
}
},
TemplateType = "templateType",
// the properties below are optional
InferenceConfiguration = new PromptInferenceConfigurationProperty {
Text = new PromptModelInferenceConfigurationProperty {
MaxTokens = 123,
StopSequences = new [] { "stopSequences" },
Temperature = 123,
TopP = 123
}
}
},
Resource = new PromptFlowNodeResourceConfigurationProperty {
PromptArn = "promptArn"
}
},
// the properties below are optional
GuardrailConfiguration = new GuardrailConfigurationProperty {
GuardrailIdentifier = "guardrailIdentifier",
GuardrailVersion = "guardrailVersion"
}
},
Retrieval = new RetrievalFlowNodeConfigurationProperty {
ServiceConfiguration = new RetrievalFlowNodeServiceConfigurationProperty {
S3 = new RetrievalFlowNodeS3ConfigurationProperty {
BucketName = "bucketName"
}
}
},
Storage = new StorageFlowNodeConfigurationProperty {
ServiceConfiguration = new StorageFlowNodeServiceConfigurationProperty {
S3 = new StorageFlowNodeS3ConfigurationProperty {
BucketName = "bucketName"
}
}
}
};
Synopsis
Constructors
Flow |
Properties
Agent | Contains configurations for an agent node in your flow. |
Collector | Contains configurations for a collector node in your flow. |
Condition | Contains configurations for a Condition node in your flow. |
Input | Contains configurations for an input flow node in your flow. |
Iterator | Contains configurations for an iterator node in your flow. |
Knowledge |
Contains configurations for a knowledge base node in your flow. |
Lambda |
Contains configurations for a Lambda function node in your flow. |
Lex | Contains configurations for a Lex node in your flow. |
Output | Contains configurations for an output flow node in your flow. |
Prompt | Contains configurations for a prompt node in your flow. |
Retrieval | Contains configurations for a Retrieval node in your flow. |
Storage | Contains configurations for a Storage node in your flow. |
Constructors
FlowNodeConfigurationProperty()
public FlowNodeConfigurationProperty()
Properties
Agent
Contains configurations for an agent node in your flow.
public object Agent { get; set; }
Property Value
System.
Remarks
Invokes an alias of an agent and returns the response.
Collector
Contains configurations for a collector node in your flow.
public object Collector { get; set; }
Property Value
System.
Remarks
Collects an iteration of inputs and consolidates them into an array of outputs.
Condition
Contains configurations for a Condition node in your flow.
public object Condition { get; set; }
Property Value
System.
Remarks
Defines conditions that lead to different branches of the flow.
Input
Contains configurations for an input flow node in your flow.
public object Input { get; set; }
Property Value
System.
Remarks
The first node in the flow. inputs
can't be specified for this node.
Iterator
Contains configurations for an iterator node in your flow.
public object Iterator { get; set; }
Property Value
System.
Remarks
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
Contains configurations for a knowledge base node in your flow.
public object KnowledgeBase { get; set; }
Property Value
System.
Remarks
Queries a knowledge base and returns the retrieved results or generated response.
LambdaFunction
Contains configurations for a Lambda function node in your flow.
public object LambdaFunction { get; set; }
Property Value
System.
Remarks
Lex
Contains configurations for a Lex node in your flow.
public object Lex { get; set; }
Property Value
System.
Remarks
Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
Output
Contains configurations for an output flow node in your flow.
public object Output { get; set; }
Property Value
System.
Remarks
The last node in the flow. outputs
can't be specified for this node.
Prompt
Contains configurations for a prompt node in your flow.
public object Prompt { get; set; }
Property Value
System.
Remarks
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
Contains configurations for a Retrieval node in your flow.
public object Retrieval { get; set; }
Property Value
System.
Remarks
Retrieves data from an Amazon S3 location and returns it as the output.
Storage
Contains configurations for a Storage node in your flow.
public object Storage { get; set; }
Property Value
System.
Remarks
Stores an input in an Amazon S3 location.