Open Stadly opened 3 weeks ago
I couldn't find a specific answer to your issue within the repository, but there might be related information elsewhere or it could have been overlooked. However, I did find a similar closed issue that might be relevant: RunnableWithFallbacks
doesn't implement streaming support. This issue was resolved by a pull request that added streaming support for RunnableWithFallbacks
[1].
Your issue seems to involve the includeRaw
option with structured output not producing the expected series of stream events. This might be related to how the streamEvents
method handles structured output when includeRaw
is set to true, but unfortunately, I couldn't find specific documentation or examples addressing this exact scenario.
It might be helpful to check if there are any updates or patches related to streaming and structured output in the latest versions of LangChain.js or to explore the implementation details of the streamEvents
method to understand how it processes includeRaw
with structured output.
To continue talking to Dosu, mention @dosu.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I would have expected a series of
stream
events, and not just two - one with the finalraw
message and one with the finalparsed
message.System Info