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/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']}
```
9 months ago
..
__init__.py core[patch], langchain[patch]: fix required deps (#14373) 10 months ago
base.py fix: call _on_llm_error() (#13581) 10 months ago
context.py BUG: more core fixes (#13665) 10 months ago
evaluation.py BUG: more core fixes (#13665) 10 months ago
langchain.py IMPROVEMENT: Conditionally import core type hints (#13700) 10 months ago
langchain_v1.py
log_stream.py Use deepcopy in RunLogPatch (#14244) 9 months ago
root_listeners.py
run_collector.py
schemas.py
stdout.py