langchain/libs
Jan Nissen 2e0ddd6fb8
core[minor]: support pydantic v2 models in PydanticOutputParser (#18811)
As mentioned in #18322, the current PydanticOutputParser won't work for
anyone trying to parse to pydantic v2 models. This PR adds a separate
`PydanticV2OutputParser`, as well as a `langchain_core.pydantic_v2`
namespace that will fail on import to any projects using pydantic<2.
Happy to update the docs for output parsers if this is something we're
interesting in adding.

On a separate note, I also updated `check_pydantic.sh` to detect
pydantic imports with leading whitespace and excluded the internal
namespaces. That change can be separated into its own PR if needed.

---------

Co-authored-by: Jan Nissen <jan23@gmail.com>
2024-03-27 15:37:52 -04:00
..
cli cli[patch]: release 0.0.22rc0, chat playground (#19614) 2024-03-26 15:08:56 -07:00
community community[minor]: Add the option to omit schema refresh in Neo4jGraph (#19654) 2024-03-27 14:20:12 -04:00
core core[minor]: support pydantic v2 models in PydanticOutputParser (#18811) 2024-03-27 15:37:52 -04:00
experimental experimental[patch]: Enhance LLMGraphTransformer with async processing and improved readability (#19205) 2024-03-26 23:40:21 -07:00
langchain langchain[minor]: Add async methods to EncoderBackedStore (#19597) 2024-03-27 17:36:36 +00:00
partners cohere[patch]: release 0.1.0rc1 (#19663) 2024-03-27 17:14:56 +00:00
text-splitters