Concepts

Runnable Sequence

Executes multiple runnables sequentially via the | operator, with auto-flattening, and smart streaming support that correctly detects which step is the actual streaming source vs. a downstream transformer.

Why it exists

Lets you build a chain by piping components together instead of manually calling each one and passing results by hand.

View source on GitHub
educhain.py
from educhain.core.sequence import RunnableSequence

chain = prompt | model | parser

Related