langchain/libs/core
Nicolas Bondoux e17edc4d0b
RunnableLambda: create afunc instance from func when not provided (#13408)
Fixes #13407.

This workaround consists in letting the RunnableLambda create its
self.afunc from its self.func when self.afunc is not provided; the
change has no dependency.

<!-- Thank you for contributing to LangChain!

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,
- **Tag maintainer:** for a quicker response, tag the relevant
maintainer (see below),
- **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` to check this
locally.

See contribution guidelines for more information on how to write/run
tests, lint, etc:

https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md

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/extras`
directory.

If no one reviews your PR within a few days, please @-mention one of
@baskaryan, @eyurtsev, @hwchase17.
 -->

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Nuno Campos <nuno@langchain.dev>
2023-11-28 11:18:26 +00:00
..
langchain_core RunnableLambda: create afunc instance from func when not provided (#13408) 2023-11-28 11:18:26 +00:00
scripts INFRA: Lint for imports (#13632) 2023-11-21 17:42:56 -08:00
tests RunnableLambda: create afunc instance from func when not provided (#13408) 2023-11-28 11:18:26 +00:00
Makefile Add option to prefix config keys in configurable_alts (#13714) 2023-11-27 15:25:17 +00:00
poetry.lock RELEASE: 0.0.341 (#13926) 2023-11-27 09:51:12 -08:00
pyproject.toml RELEASE: core 0.0.6 (#13853) 2023-11-25 10:21:14 -08:00
README.md Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00

langchain-core