AI Agent Frameworks / Quiz
LCEL: Chains as Pipes
prompt | model | parser. The pipe operator is LangChain's whole composition story, and every pipe joint is a seam your tests can grab.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 8 min
// MISSION BRIEF
Your Mission
LangChain Expression Language (LCEL) composes chains with the | operator: each component is a Runnable, and the output of one feeds the next. For a tester, the payoff is seams: every stage can be invoked, swapped, or faked in isolation.
Scoring: equal weight per question.
// FIRST CONTACT
Battle teaser
chain = prompt | model | StrOutputParser(). What does the | operator build?
- AA bitwise OR of three objects
- BThree independent chains that run in parallel
- CA composed sequence of Runnables where each component's output becomes the next one's input
- DA shell pipeline running in a subprocess
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
langchainlcelchainsai-agents