AI Agents · Concept
Routing
A routing workflow classifies an input and sends it to the task that matches the request. LangGraph shows this pattern with both the Graph API and Functional API.
Last updated
Syntax
router = llm.with_structured_output(Route)
router_workflow = router_builder.compile()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Graph APIFunctional APIstructured outputconditional edgesentrypointstream_events