langchain/libs/core/langchain_core/runnables
Nuno Campos 99000c612e
Propagate context vars in all classes/methods (#15329)
- Any direct usage of ThreadPoolExecutor or asyncio.run_in_executor
needs manual handling of context vars

<!-- Thank you for contributing to LangChain!

Please title your PR "<package>: <description>", where <package> is
whichever of langchain, community, core, experimental, etc. is being
modified.

Replace this entire comment with:
  - **Description:** a description of the change, 
  - **Issue:** the issue # it fixes if applicable,
  - **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR
gets announced, and you'd like a mention, we'll gladly shout you out!

Please make sure your PR is passing linting and testing before
submitting. Run `make format`, `make lint` and `make test` from the root
of the package you've modified to check this locally.

See contribution guidelines for more information on how to write/run
tests, lint, etc: https://python.langchain.com/docs/contributing/

If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.

If no one reviews your PR within a few days, please @-mention one of
@baskaryan, @eyurtsev, @hwchase17.
 -->
2023-12-29 15:59:00 -08:00
..
__init__.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
base.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
branch.py core(minor): Implement stream and astream for RunnableBranch (#14805) 2023-12-20 15:37:56 -05:00
config.py Propagate context vars in all classes/methods (#15329) 2023-12-29 15:59:00 -08:00
configurable.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
fallbacks.py manual mapping (#14422) 2023-12-08 16:29:33 -08:00
graph_draw.py Add Runnable.get_graph() to get a graph representation of a Runnable (#15040) 2023-12-22 11:40:45 -08:00
graph.py [core] print ascii (#15179) 2023-12-26 11:43:14 -08:00
history.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
passthrough.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
retry.py manual mapping (#14422) 2023-12-08 16:29:33 -08:00
router.py manual mapping (#14422) 2023-12-08 16:29:33 -08:00
utils.py Fix runnable vistitor for funcs without pos args (#15182) 2023-12-26 12:42:24 -08:00