The below section contains two examples using the LangChain.js framework, along with helper functions from the experimental AI SDK RSC showing off how to create complex, full stack streaming applications with React Server Components.
The Agents example contains an agent which streams data back to the client using the streamEvents API.
Go to AgentsThe Tools example shows how to invoke a simple tool calling model, and stream back the result.
Go to Tools