Validate Flow Definition
| bedrockagent_validate_flow_definition | R Documentation |
Validates the definition of a flow¶
Description¶
Validates the definition of a flow.
Usage¶
bedrockagent_validate_flow_definition(definition)
Arguments¶
definition |
[required] The definition of a flow to validate. |
Value¶
A list with the following syntax:
list(
validations = list(
list(
message = "string",
severity = "Warning"|"Error",
details = list(
cyclicConnection = list(
connection = "string"
),
duplicateConnections = list(
source = "string",
target = "string"
),
duplicateConditionExpression = list(
node = "string",
expression = "string"
),
unreachableNode = list(
node = "string"
),
unknownConnectionSource = list(
connection = "string"
),
unknownConnectionSourceOutput = list(
connection = "string"
),
unknownConnectionTarget = list(
connection = "string"
),
unknownConnectionTargetInput = list(
connection = "string"
),
unknownConnectionCondition = list(
connection = "string"
),
malformedConditionExpression = list(
node = "string",
condition = "string",
cause = "string"
),
malformedNodeInputExpression = list(
node = "string",
input = "string",
cause = "string"
),
mismatchedNodeInputType = list(
node = "string",
input = "string",
expectedType = "String"|"Number"|"Boolean"|"Object"|"Array"
),
mismatchedNodeOutputType = list(
node = "string",
output = "string",
expectedType = "String"|"Number"|"Boolean"|"Object"|"Array"
),
incompatibleConnectionDataType = list(
connection = "string"
),
missingConnectionConfiguration = list(
connection = "string"
),
missingDefaultCondition = list(
node = "string"
),
missingEndingNodes = list(),
missingNodeConfiguration = list(
node = "string"
),
missingNodeInput = list(
node = "string",
input = "string"
),
missingNodeOutput = list(
node = "string",
output = "string"
),
missingStartingNodes = list(),
multipleNodeInputConnections = list(
node = "string",
input = "string"
),
unfulfilledNodeInput = list(
node = "string",
input = "string"
),
unsatisfiedConnectionConditions = list(
connection = "string"
),
unspecified = list(),
unknownNodeInput = list(
node = "string",
input = "string"
),
unknownNodeOutput = list(
node = "string",
output = "string"
),
missingLoopInputNode = list(
loopNode = "string"
),
missingLoopControllerNode = list(
loopNode = "string"
),
multipleLoopInputNodes = list(
loopNode = "string"
),
multipleLoopControllerNodes = list(
loopNode = "string"
),
loopIncompatibleNodeType = list(
node = "string",
incompatibleNodeType = "Input"|"Condition"|"Iterator"|"Collector",
incompatibleNodeName = "string"
),
invalidLoopBoundary = list(
connection = "string",
source = "string",
target = "string"
)
),
type = "CyclicConnection"|"DuplicateConnections"|"DuplicateConditionExpression"|"UnreachableNode"|"UnknownConnectionSource"|"UnknownConnectionSourceOutput"|"UnknownConnectionTarget"|"UnknownConnectionTargetInput"|"UnknownConnectionCondition"|"MalformedConditionExpression"|"MalformedNodeInputExpression"|"MismatchedNodeInputType"|"MismatchedNodeOutputType"|"IncompatibleConnectionDataType"|"MissingConnectionConfiguration"|"MissingDefaultCondition"|"MissingEndingNodes"|"MissingNodeConfiguration"|"MissingNodeInput"|"MissingNodeOutput"|"MissingStartingNodes"|"MultipleNodeInputConnections"|"UnfulfilledNodeInput"|"UnsatisfiedConnectionConditions"|"Unspecified"|"UnknownNodeInput"|"UnknownNodeOutput"|"MissingLoopInputNode"|"MissingLoopControllerNode"|"MultipleLoopInputNodes"|"MultipleLoopControllerNodes"|"LoopIncompatibleNodeType"|"InvalidLoopBoundary"
)
)
)
Request syntax¶
svc$validate_flow_definition(
definition = list(
nodes = list(
list(
name = "string",
type = "Input"|"Output"|"KnowledgeBase"|"Condition"|"Lex"|"Prompt"|"LambdaFunction"|"Storage"|"Agent"|"Retrieval"|"Iterator"|"Collector"|"InlineCode"|"Loop"|"LoopInput"|"LoopController",
configuration = list(
input = list(),
output = list(),
knowledgeBase = list(
knowledgeBaseId = "string",
modelId = "string",
guardrailConfiguration = list(
guardrailIdentifier = "string",
guardrailVersion = "string"
),
numberOfResults = 123,
promptTemplate = list(
textPromptTemplate = "string"
),
inferenceConfiguration = list(
text = list(
temperature = 123.0,
topP = 123.0,
maxTokens = 123,
stopSequences = list(
"string"
)
)
),
rerankingConfiguration = list(
type = "BEDROCK_RERANKING_MODEL",
bedrockRerankingConfiguration = list(
modelConfiguration = list(
modelArn = "string",
additionalModelRequestFields = list(
list()
)
),
numberOfRerankedResults = 123,
metadataConfiguration = list(
selectionMode = "SELECTIVE"|"ALL",
selectiveModeConfiguration = list(
fieldsToInclude = list(
list(
fieldName = "string"
)
),
fieldsToExclude = list(
list(
fieldName = "string"
)
)
)
)
)
),
orchestrationConfiguration = list(
promptTemplate = list(
textPromptTemplate = "string"
),
inferenceConfig = list(
text = list(
temperature = 123.0,
topP = 123.0,
maxTokens = 123,
stopSequences = list(
"string"
)
)
),
additionalModelRequestFields = list(
list()
),
performanceConfig = list(
latency = "standard"|"optimized"
)
)
),
condition = list(
conditions = list(
list(
name = "string",
expression = "string"
)
)
),
lex = list(
botAliasArn = "string",
localeId = "string"
),
prompt = list(
sourceConfiguration = list(
resource = list(
promptArn = "string"
),
inline = list(
templateType = "TEXT"|"CHAT",
templateConfiguration = list(
text = list(
text = "string",
cachePoint = list(
type = "default"
),
inputVariables = list(
list(
name = "string"
)
)
),
chat = list(
messages = list(
list(
role = "user"|"assistant",
content = list(
list(
text = "string",
cachePoint = list(
type = "default"
)
)
)
)
),
system = list(
list(
text = "string",
cachePoint = list(
type = "default"
)
)
),
inputVariables = list(
list(
name = "string"
)
),
toolConfiguration = list(
tools = list(
list(
toolSpec = list(
name = "string",
description = "string",
inputSchema = list(
json = list()
),
strict = TRUE|FALSE
),
cachePoint = list(
type = "default"
)
)
),
toolChoice = list(
auto = list(),
any = list(),
tool = list(
name = "string"
)
)
)
)
),
modelId = "string",
inferenceConfiguration = list(
text = list(
temperature = 123.0,
topP = 123.0,
maxTokens = 123,
stopSequences = list(
"string"
)
)
),
additionalModelRequestFields = list()
)
),
guardrailConfiguration = list(
guardrailIdentifier = "string",
guardrailVersion = "string"
)
),
lambdaFunction = list(
lambdaArn = "string"
),
storage = list(
serviceConfiguration = list(
s3 = list(
bucketName = "string"
)
)
),
agent = list(
agentAliasArn = "string"
),
retrieval = list(
serviceConfiguration = list(
s3 = list(
bucketName = "string"
)
)
),
iterator = list(),
collector = list(),
inlineCode = list(
code = "string",
language = "Python_3"
),
loop = list(
definition = list()
),
loopInput = list(),
loopController = list(
continueCondition = list(
name = "string",
expression = "string"
),
maxIterations = 123
)
),
inputs = list(
list(
name = "string",
type = "String"|"Number"|"Boolean"|"Object"|"Array",
expression = "string",
category = "LoopCondition"|"ReturnValueToLoopStart"|"ExitLoop"
)
),
outputs = list(
list(
name = "string",
type = "String"|"Number"|"Boolean"|"Object"|"Array"
)
)
)
),
connections = list(
list(
type = "Data"|"Conditional",
name = "string",
source = "string",
target = "string",
configuration = list(
data = list(
sourceOutput = "string",
targetInput = "string"
),
conditional = list(
condition = "string"
)
)
)
)
)
)