langchain/libs
Jan Nissen b8922480ed
core[patch]: improve PydanticOutputParser typing (#18740)
This PR adds generic typing to `PydanticOutputParser` so we get a typed
output from `.parse` instead of `Any`. It should provide a better DX by
way of Intellisense and for anyone strictly typing.

Pre-change:

![Screenshot 2024-03-07 at 10 22
31 AM](https://github.com/langchain-ai/langchain/assets/22690160/fd22dde0-9fdc-4283-b283-4c98f0bc46e5)

Post-change:

![Screenshot 2024-03-07 at 10 26
31 AM](https://github.com/langchain-ai/langchain/assets/22690160/7e23d2b7-8f8c-494f-80b3-187530a173ee)

I haven't dug too deep, but I think a similar change could probably be
added to `JsonOutputParser` so we don't have to pull up `.parse`.

Co-authored-by: Jan Nissen <jan23@gmail.com>
2024-03-07 19:25:24 -08:00
..
cli infra: make .gitignore consistent with standard python gitignore (#16828) 2024-02-12 19:43:41 -08:00
community comunity[patch]: Fix neo4j sanitizing values (#18750) 2024-03-07 19:21:52 -08:00
core core[patch]: improve PydanticOutputParser typing (#18740) 2024-03-07 19:25:24 -08:00
experimental experimental[minor]: add support for modin in pandas agent (#18749) 2024-03-07 19:23:07 -08:00
langchain Add dangerous parameter to requests tool (#18697) 2024-03-07 15:10:56 -05:00
partners langchain-mongodb: Standardize mongodb collection/index names in tests (#18755) 2024-03-07 17:16:04 -05:00
text-splitters docs: text splitters readme (#18359) 2024-03-01 03:00:42 +00:00