RetrievalGraph result cannot be streamed in open-agent-platform frontend #5641
xlcaptain
started this conversation in
Discussions
Replies: 1 comment
-
I’m facing the same issue. Keen to get a solution. @xlcaptain did you manage to resolve it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
**Describe **
When I use the open-agent-platform frontend to call my custom LangGraph (RetrievalGraph), the response from the backend is in the format:
This prevents the frontend from streaming the output to the user in real time. Instead, the result is only available after the entire process is finished, which is not the expected streaming behavior.
To Reproduce
Expected behavior
I expect the frontend to be able to stream the generated content in real time, with SSE events of the form:
just like in the official examples, rather than receiving events like:
which prevents the frontend from displaying the output in a true streaming fashion.
Additional context
respond
node in my graph is asynchronous and returns a list ofBaseMessage
.Questions
messages
(notmessages|respond:...
) so that the frontend can stream the output as expected?event: messages
?stream_mode
configuration? For example, does settingstream_mode
to"values"
,"messages-tuple"
, or"custom"
affect the SSE event type or the way messages are streamed to the frontend? If so, what is the recommendedstream_mode
setting to ensure the event type is alwaysmessages
?Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions