Framework

LangChain

Tool calling, chains, routing, fallbacks, agents.

8 patterns supported.

Patterns this framework supports natively

  • Tool UseLet the LLM produce typed calls against an external toolkit instead of producing free-form text the surrounding system has to parse.
  • ReActInterleave a single thought, a single tool call, and a single observation per step so the agent reasons over fresh evidence.
  • RoutingClassify an incoming request and dispatch it to the specialist (lane / agent / model) best suited to handle it.
  • Prompt ChainingDecompose a task into a fixed sequence of LLM calls where each step's output becomes the next step's input.
  • Fallback ChainTry a primary handler; on failure or low confidence, fall through to a sequence of fallback handlers.
  • Structured OutputConstrain the model's output to conform to a JSON Schema (or similar typed shape).
  • ParallelizationRun independent LLM calls concurrently and combine results.
  • Streaming Typed EventsPush partial results to the client as typed events as they become available, rather than waiting for the full response.