langchain/libs
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
..
cli Library Licenses (#13300) 2023-11-28 17:34:27 -08:00
core Use deepcopy in RunLogPatch (#14244) 2023-12-08 14:09:36 -05:00
experimental experimental[patch]: Release 0.0.45 (#14418) 2023-12-07 15:01:39 -08:00
langchain langchain[patch]: xfail unstable vertex test (#14462) 2023-12-08 11:00:37 -08:00