Logic
Some workflows require additional logic to complete a task, such as deciding to answer with different prompts or models and selecting to call various data sources.
These nodes operate as follows:
Routing In
The Routing In node is used to decide whether to follow a path of the LLM flow. This node receives two inputs:
The content: The message that it will send between one of the two paths
The selection: A message with the words "True" or "False", used to decide which of the two paths to call.
The two outputs connect to the two flow paths to choose from.
Routing out
The "Routing out" node works with the "Routing in" node to select the correct output based on the initial routing logic.
Last updated