mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 14:43:07 +00:00
x
This commit is contained in:
@@ -34,7 +34,7 @@ This highlights functionality that is core to using LangChain.
|
||||
- [How to: stream runnables](/docs/how_to/streaming)
|
||||
- [How to: invoke runnables in parallel](/docs/how_to/parallel/)
|
||||
- [How to: add default invocation args to runnables](/docs/how_to/binding/)
|
||||
- [How to: propagate Runnable Config to child runnables](/docs/how_to/runnables_propagate_config/)
|
||||
- [How to: propagate runnable config to child runnables](/docs/how_to/runnables_propagate_config/)
|
||||
- [How to: turn any function into a runnable](/docs/how_to/functions)
|
||||
- [How to: pass through inputs from one chain step to the next](/docs/how_to/passthrough)
|
||||
- [How to: configure runnable behavior at runtime](/docs/how_to/configure)
|
||||
|
||||
@@ -22,19 +22,21 @@
|
||||
"This guide assumes familiarity with the following concepts:\n",
|
||||
"\n",
|
||||
"- [LangChain Expression Language (LCEL)](/docs/concepts/#langchain-expression-language)\n",
|
||||
"- [LangChain RunnableConfig](/docs/concepts/#runnable-config)\n",
|
||||
":::\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"The [RunnableConfig](https://api.python.langchain.com/en/latest/runnables/langchain_core.runnables.config.RunnableConfig.html) dict contains run time configuration information that needs to be properly\n",
|
||||
"propagated throughout the entire chain. This config contains important thing like `callbacks` and user provided `tags` and `metadata`.\n",
|
||||
"propagated throughout the entire chain. This config contains things like `callbacks` and user provided `tags` and `metadata`.\n",
|
||||
"\n",
|
||||
"If you're composing a chain entirely using LCEL, then `RunnableConfig` will be propagated automatically.\n",
|
||||
"If you're composing a chain entirely using LCEL, then `RunnableConfig` will be propagated automatically on your behalf.\n",
|
||||
"\n",
|
||||
"If you're using `RunnableLambda`, `RunnableGenerator` or `@tool` to create custom components, `langchain` will attempt to propagate callbacks on your behalf from those components to any child `Runnables` when possible.\n",
|
||||
"\n",
|
||||
":::{.callout-important}\n",
|
||||
"\n",
|
||||
"If you're working in an `async` code base and are using `python<=3.10`, you will need to propagate `config` (or `callbacks`) manually since LangChain is unable to do this automatically.\n",
|
||||
"\n",
|
||||
"::"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user