mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
progress notification send from server to client #107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shaojun on GitHub (Jan 29, 2024).
Originally assigned to: @eyurtsev on GitHub.
Hi,
I'm implementing an lang-graph app, as some steps inside are accessing external services which typically take times, I want the client side to get notified for such server side operations, then the user would not panic in waiting.
I believed in web application, the
web socketmight be a way for this scenario, but i just want to confirm if is there anyway in langserve framework can simplify.I noticed the
Client callbacks are not yet supported for events that originate on the serverinhttps://python.langchain.com/docs/langserve#limitations
does this the feature that most satisfies my case? if this feature is missed, any other suggestion?
@rever1and commented on GitHub (Jan 30, 2024):
sounds like you'd like to have realtime callback events.
@eyurtsev commented on GitHub (Feb 1, 2024):
I'd recommend using astream events API for this purpose rather than callback events.
https://python.langchain.com/docs/expression_language/streaming#using-stream-events
The API is here and was just added to langserve. Let me know if you have questions.