-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
sounds like you'd like to have realtime callback events. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
"Hi, I have a similar problem to the OP. Essentially at points in a chain(s) I'd like to stream back a custom message to the client. Ideally (but not necessarily) something syntactically like:
I've looked at the The Would something like the Thanks |
Beta Was this translation helpful? Give feedback.
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.