langchain/libs/core/langchain_core/tracers
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
..
__init__.py core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
base.py fix: call _on_llm_error() (#13581) 2023-12-04 19:44:50 -08:00
context.py BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
evaluation.py BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
langchain_v1.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
langchain.py IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
log_stream.py Use deepcopy in RunLogPatch (#14244) 2023-12-08 14:09:36 -05:00
root_listeners.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
run_collector.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
schemas.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
stdout.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00