Skip to main content

One doc tagged with "branching"

View all tags

Parallel Execution and Branching

Real chains are rarely a single straight line. RunnableParallel runs several steps against the same input concurrently, RunnablePassthrough threads the original input through unchanged so a later step can still see it, and RunnableBranch picks one path out of several based on a condition.