79580800

Date: 2025-04-18 09:56:32
Score: 0.5
Natty:
Report link

you need specific 'edges' in 'add_conditional_edges'
Method 1:

graph_builder.add_conditional_edges(
    "node", routing_function, path_map
)

Method 2:

def routing_function(state: State) -> typing.Literal['node_1', 'node_2]:
    pass

graph_builder.add_conditional_edges(
    "node", routing_function
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RockyDon