mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
pass parameter betweens each Runnables in a chain #126
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 (Feb 22, 2024).
Hi,
I have a
CustomUserTypeinput request, and there's a field ofshared_pass_through_parameterthat containsnon-nature languagedata which would be used in any followedRunnables(except theLLMnode).like the below sample code, the purpose of this field is to pass to final
RunnableLambda(output_process)to output a customized content.Obvious that field will be dropped as it's not included into the output of
process.I can see a solution that wrap all the route chain into a single function, but that will lose the feature of
streaming of LLM.any suggestion?