Discover and explore top open-source AI tools and projects—updated daily.
rogeriochavesLLM app framework emphasizing composability via streams
Top 69.8% on SourcePulse
LangStream is a Python library designed for building robust LLM applications with a focus on composability and a minimal core. It offers a lighter alternative to frameworks like LangChain, enabling developers to create complex LLM workflows by composing simple, type-hinted "Streams."
How It Works
LangStream's core abstraction is the Stream, which represents a single operation, such as an LLM call, data parsing, or prompt formatting. These streams are built using Python's AsyncGenerator and can be composed sequentially using methods like and_then, map, collect, join, and gather. This functional programming approach, combined with strict type signatures for stream inputs and outputs, promotes code clarity, reduces bugs, and simplifies debugging by allowing access to intermediate results.
Quick Start & Requirements
pip install langstream openaiHighlighted Details
and_then, map, collect, join, gather) for building complex pipelines.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is relatively new, with ongoing efforts to expand integrations and documentation. Some planned features, like a default memory mechanism, are still under development.
1 year ago
Inactive