electus1733
11/29/2025, 12:26 PMelectus1733
11/29/2025, 12:29 PMVaibhav (BAML 🐑)
11/29/2025, 8:24 PMVaibhav (BAML 🐑)
11/29/2025, 8:24 PMVaibhav (BAML 🐑)
11/29/2025, 8:35 PMAIMessageChunk), but BAML is giving typed partials (ProfessorConsultationPartial{…} etc.).
In other words:
LangChain: “I know how to stream words/tokens/messages.”
BAML: “I know how to stream typed objects and give you a correct final result.”
Both are valid, just totally different abstractions.
That’s why plugging BAML streaming directly into LangChain’s automatic streaming layer doesn’t work today. You can still use BAML streaming, but LangChain can’t auto-intercept and transform it the way it does for OpenAI.electus1733
11/30/2025, 3:59 PMVaibhav (BAML 🐑)
11/30/2025, 8:14 PMVaibhav (BAML 🐑)
11/30/2025, 8:14 PM