fix(core): serialization patch (#34455)

- `allowed_objects` kwarg in `load`
- escape lc-ser formatted dicts on `dump`
- fix for jinja2

---------

Co-authored-by: Mason Daugherty <github@mdrxy.com>
This commit is contained in:
ccurme
2025-12-22 18:33:31 -05:00
committed by GitHub
parent 6a416c6186
commit 5ec0fa69de
25 changed files with 1769 additions and 116 deletions

View File

@@ -274,6 +274,7 @@ def test_groq_serialization() -> None:
dump,
valid_namespaces=["langchain_groq"],
secrets_map={"GROQ_API_KEY": api_key2},
allowed_objects="all",
)
assert type(llm2) is ChatGroq