langchain/libs/core/langchain_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
..
_api REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
callbacks IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
documents REFACTOR: combine core documents files (#13733) 2023-11-22 10:10:26 -08:00
example_selectors IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
globals IMPROVEMENT: filter global warnings properly (#13754) 2023-11-22 16:26:37 -08:00
language_models langchain[patch], core[patch]: Make common utils public (#13932) 2023-11-27 15:34:46 -08:00
load
messages BUGFIX: handle tool message type when converting to string (#13626) 2023-11-21 18:20:58 -08:00
output_parsers IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
outputs REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
prompts improvement: fix chat prompt loading from config (#13818) 2023-11-27 11:39:50 -05:00
pydantic_v1
runnables RunnableLambda: create afunc instance from func when not provided (#13408) 2023-11-28 11:18:26 +00:00
tracers IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
utils langchain[patch], core[patch]: Make common utils public (#13932) 2023-11-27 15:34:46 -08:00
__init__.py
agents.py Implement stream() and astream() for agents (#12783) 2023-11-28 08:11:37 +00:00
caches.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
chat_history.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
chat_sessions.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
embeddings.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
env.py
exceptions.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
memory.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
prompt_values.py BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
retrievers.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
stores.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
tools.py IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
vectorstores.py IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00