liveBook · Manning

Runnable interface

The Runnable interface is a LangChain programming abstraction for components that accept input, perform processing, produce output, and support composition in workflows.

How 2 Manning books explain it

AI Agents and Applications

The Runnable interface is a common LangChain programming interface for components that can be invoked and composed in workflows.

How it is used
Provides a common interface for composing and executing LangChain workflow components.
How deep it goes
Defines the interface and execution methods, then demonstrates composition, parallelism, and wrapping custom Python functions.
Examples
Demonstrates text chunking with RunnableLambda and a question-answering chain with a retriever and RunnablePassthrough.
What you can do after
Apply it via LangChain to compose and invoke chains, including custom processing steps.

Read how AI Agents and Applications explains Runnable interface →

Build AI-Enhanced Web Apps

A runnable is a composable LangChain unit of work that accepts input, performs processing, and produces output, with support for invocation, batching, and streaming.

How it is used
Composes reusable data-processing and AI workflows from interchangeable units of work.
How deep it goes
Defines the interface and demonstrates sequential, parallel, and custom-function composition without detailing execution internals.
Examples
Uses a vowel-counting model chain and a Wikipedia-search agent integrated with a web application.
What you can do after
Apply it via LangChain.js to compose sequential or parallel workflows and wrap custom JavaScript functions.

Read how Build AI-Enhanced Web Apps explains Runnable interface →

What to know first

Related concepts

Questions about Runnable interface

What is Runnable interface?

The Runnable interface is a LangChain programming abstraction for components that accept input, perform processing, produce output, and support composition in workflows.

Which Manning books explain Runnable interface?

AI Agents and Applications and Build AI-Enhanced Web Apps.

What should I know before learning Runnable interface?

Manning books that teach Runnable interface usually introduce function and language model first.

What kinds of Runnable interface are there?

Kinds of Runnable interface include pipeline.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.