better-sse
better-sse copied to clipboard
LanggraphJS / LangchainJS Adapter?
Hi,
just let me pin this as idea: LanggrahpJS workflow can return a stream object, which you can use to iterate over it and hand over the information to server sent events. Maybe, it could make sense to forsee a special adapter amongst better-sse. Even concerning having a kind of user specific event mechanism.
https://langchain-ai.github.io/langgraphjs/how-tos/streaming-events-from-within-tools/#define-graph-and-tools
for example.