langchain/libs/core/langchain_core
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
..
_api core[patch]: deprecation docstring with lib (#18350) 2024-03-01 00:44:13 +00:00
beta core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
callbacks docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
document_loaders community: If load() has been overridden, use it in default lazy_load() (#18690) 2024-03-07 11:52:19 -05:00
documents core[minor]: move document compressor base (#17910) 2024-02-26 17:20:50 -08:00
example_selectors docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
globals IMPROVEMENT: filter global warnings properly (#13754) 2023-11-22 16:26:37 -08:00
language_models core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
load core[patch]: support JS message serial namespaces (#18151) 2024-02-26 16:19:46 -08:00
messages core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
output_parsers core[patch]: improve PydanticOutputParser typing (#18740) 2024-03-07 19:25:24 -08:00
outputs docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
prompts core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
pydantic_v1 Separate out langchain_core package (#13577) 2023-11-20 13:09:30 -08:00
runnables core[patch]: Automatic upgrade to AddableDict in transform and atransform (#18743) 2024-03-07 21:23:12 -05:00
tracers core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
utils core[patch]: deprecate hwchase17/langchain-hub, address path traversal (#18600) 2024-03-05 12:49:38 -08:00
__init__.py core[patch], community[patch]: mark runnable context, lc load as beta (#15603) 2024-01-05 17:54:26 -05:00
agents.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
caches.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
chat_history.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
chat_sessions.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
embeddings.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
env.py core[patch]: update langchain-core runtime library name (#14884) 2023-12-20 14:35:48 -08:00
exceptions.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
memory.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
prompt_values.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -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 docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
stores.py core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
sys_info.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
tools.py core: upgrade mypy to recent mypy (#18753) 2024-03-07 15:25:19 -05:00
vectorstores.py docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00