Choice [[Arrows]] are a special kind of arrow which cause a function/tool call when they are coming from an [[AI nodes|AI node]]. When two or more choice arrows are leaving an AI node, the LLM will be asked to choose between one of the choice arrow labels. Only the chosen arrow will be executed.
Choice arrows are yellow and labeled. They pass their chat history by default, so they can be used like [[Basic arrows]].
![[Pasted image 20240721140120.png]]
When a choice arrow is rejected, all of the nodes downstream will be rejected (not execute) unless they have multiple sources of a particular variable.
![[Pasted image 20240721140143.png]]