langchain/libs/core
Eugene Yurtsev 37bee92b8a
Use deepcopy in RunLogPatch (#14244)
This PR adds deepcopy usage in RunLogPatch.

I included a unit-test that shows an issue that was caused in LangServe
in the RemoteClient.

```python
import jsonpatch

s1 = {}
s2 = {'value': []}
s3 = {'value': ['a']}

ops0 = list(jsonpatch.JsonPatch.from_diff(None, s1))
ops1 = list(jsonpatch.JsonPatch.from_diff(s1, s2))
ops2 = list(jsonpatch.JsonPatch.from_diff(s2, s3))
ops = ops0 + ops1 + ops2

jsonpatch.apply_patch(None, ops)
{'value': ['a']}

jsonpatch.apply_patch(None, ops)
{'value': ['a', 'a']}

jsonpatch.apply_patch(None, ops)
{'value': ['a', 'a', 'a']}
```
2023-12-08 14:09:36 -05:00
..
langchain_core Use deepcopy in RunLogPatch (#14244) 2023-12-08 14:09:36 -05:00
scripts INFRA: Lint for imports (#13632) 2023-11-21 17:42:56 -08:00
tests Use deepcopy in RunLogPatch (#14244) 2023-12-08 14:09:36 -05:00
Makefile core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
poetry.lock core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
pyproject.toml core[patch]: Release 0.0.12 (#14415) 2023-12-07 14:37:00 -08:00
README.md Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00

langchain-core