progress notification send from server to client #107

Closed
opened 2026-02-16 00:18:50 -05:00 by yindo · 2 comments
Owner

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 socket might 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 server in
https://python.langchain.com/docs/langserve#limitations
does this the feature that most satisfies my case? if this feature is missed, any other suggestion?

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 socket` might 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 server` in https://python.langchain.com/docs/langserve#limitations does this the feature that most satisfies my case? if this feature is missed, any other suggestion?
yindo closed this issue 2026-02-16 00:18:50 -05:00
Author
Owner

@rever1and commented on GitHub (Jan 30, 2024):

sounds like you'd like to have realtime callback events.

@rever1and commented on GitHub (Jan 30, 2024): sounds like you'd like to have realtime callback events.
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#107