LangChain - LangGraph for Stateful Agents
Identify the error in this Langchain routing code snippet:
def route_condition(context):
if context['value'] > 10:
return True
elif context['value'] < 5:
return False
routes = ['path1', 'path2']
# Routing uses route_condition
