Skip to main content

Module router_node

Module router_node 

Source
Expand description

Router graph node — uses the LLM to choose between multiple routing options.

Structs§

RouterNode
A graph node that asks the LLM to select one of a fixed set of options, then stores the chosen option in state under _route.