Streaming for LangChain Agents + FastAPI

From the creator

In chapter 10 of the LangChain series we'll work from LangChain streaming 101 through to developing streaming for LangChain Agents and serving it through FastAPI. With what we cover here, you'll be able to go from never having used streaming to deploying it in production in no time. We'll focus on using OpenAI's GPT-3.5-turbo model via LangChain's ChatOpenAI object. Learning how to do simple terminal (StdOut) streaming with LLMs, up to parsing stream outputs with Async Iterator streaming. 📌 Code notebook: https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/09-langchain-streaming/09-langchain-streaming.ipynb 📌 FastAPI template code: https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/09-langchain-streaming/main.py 🌲 Subscribe for Latest Articles and Videos: https://www.pinecone.io/newsletter-signup/ 👋🏼 AI Development: https://aurelio.ai 👾 Discord: https://discord.gg/c5QtDB9RAP Twitter: https://twitter.com/jamescalam LinkedIn: https://www.linkedin.com/in/jamescalam/ 00:00 Streaming for LLMs and Agents 01:38 Simple StdOut Streaming in LangChain 05:03 Streaming with LangChain Agents 07:56 Final Output Streaming 10:02 Custom Callback Handlers in LangChain 14:16 FastAPI with LangChain Agent Streaming 22:56 Confirming we have Agent Streaming 24:32 Custom Callback Handlers for Async 26:26 Final Things to Consider #artificialintelligence #langchain #openai #chatgpt #nlp #deeplearning

Stop watching · start building
Matched to ChatGPT

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.