langchain/libs/core/tests/unit_tests
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 BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
data Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
documents REFACTOR: combine core documents files (#13733) 2023-11-22 10:10:26 -08:00
example_selectors BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
examples Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
fake REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
language_models BUGFIX: Add import types and typevars from core (#13829) 2023-11-24 17:04:10 -08:00
load BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
messages BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
output_parsers BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
outputs BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
prompts BUGFIX: add prompt imports for backwards compat (#13702) 2023-11-21 23:04:20 -08:00
runnables RunnableLambda: create afunc instance from func when not provided (#13408) 2023-11-28 11:18:26 +00:00
tracers BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
utils langchain[patch], core[patch]: Make common utils public (#13932) 2023-11-27 15:34:46 -08:00
__init__.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
prompt_file.txt Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
test_globals.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
test_messages.py BUGFIX: handle tool message type when converting to string (#13626) 2023-11-21 18:20:58 -08:00
test_outputs.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
test_tools.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00