langchain/libs/core/langchain_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
..
_api REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
callbacks core[patch]: add response kwarg to on_llm_error 2023-12-04 15:04:48 -08:00
documents REFACTOR: combine core documents files (#13733) 2023-11-22 10:10:26 -08:00
example_selectors IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
globals IMPROVEMENT: filter global warnings properly (#13754) 2023-11-22 16:26:37 -08:00
language_models core[patch]: add response kwarg to on_llm_error 2023-12-04 15:04:48 -08:00
load core[patch]: Add **kwargs to Langchain's dumps() to allow passing of json.dumps() … (#10628) 2023-11-30 08:52:24 -08:00
messages Fix Azure Openai function calling in streaming mode (#13768) 2023-12-03 12:07:15 -08:00
output_parsers In Runnable.stream_log build up final_output from adding output chunks (#12781) 2023-11-28 21:50:41 +00:00
outputs REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
prompts Fixing empty input variable crashing PromptTemplate validations (#14314) 2023-12-05 13:13:08 -08:00
pydantic_v1 Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
runnables [core/minor] Runnables: Implement a context api (#14046) 2023-12-06 15:02:29 -08:00
tracers Use deepcopy in RunLogPatch (#14244) 2023-12-08 14:09:36 -05:00
utils langchain[patch], core[patch]: Make common utils public (#13932) 2023-11-27 15:34:46 -08:00
__init__.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
agents.py core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
caches.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
chat_history.py Adding BaseChatMessageHistory.__str__ (#14311) 2023-12-05 16:22:31 -05:00
chat_sessions.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
embeddings.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
env.py Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
exceptions.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
memory.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
prompt_values.py BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
py.typed core[minor], langchain[patch], experimental[patch]: Added missing py.typed to langchain_core (#14143) 2023-12-01 19:15:23 -08:00
retrievers.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
stores.py core[patch], langchain[patch]: ByteStore (#14312) 2023-12-06 10:05:43 -08:00
tools.py IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00
vectorstores.py IMPROVEMENT: Conditionally import core type hints (#13700) 2023-11-21 21:38:49 -08:00