You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/utils
Sergey Kozlov db6f266d97
core: improve None value processing in merge_dicts() (#17462)
- **Description:** fix `None` and `0` merging in `merge_dicts()`, add
tests.
```python
from langchain_core.utils._merge import merge_dicts
assert merge_dicts({"a": None}, {"a": 0}) == {"a": 0}
```

---------

Co-authored-by: Sergey Kozlov <sergey.kozlov@ludditelabs.io>
5 months ago
..
__init__.py core[minor]: Image prompt template (#14263) 5 months ago
_merge.py core: improve None value processing in merge_dicts() (#17462) 5 months ago
aiter.py Separate out langchain_core package (#13577) 8 months ago
env.py Improve: remove extra spaces in get_from_env error (#15064) 7 months ago
formatting.py core[patch]: docstring update (#16813) 5 months ago
function_calling.py Fix Dep Recommendation (#16793) 5 months ago
html.py core[patch], community[patch]: link extraction continue on failure (#17200) 5 months ago
image.py core[minor]: Image prompt template (#14263) 5 months ago
input.py infra: add print rule to ruff (#16221) 5 months ago
interactive_env.py core[patch]: simple prompt pretty printing (#15968) 6 months ago
iter.py Separate out langchain_core package (#13577) 8 months ago
json_schema.py Update _retrieve_ref inside json_schema.py to include an isdigit() check (#14745) 6 months ago
loading.py Separate out langchain_core package (#13577) 8 months ago
pydantic.py Separate out langchain_core package (#13577) 8 months ago
strings.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
utils.py Separate out langchain_core package (#13577) 8 months ago