langchain/libs/core/langchain_core
Nuno Campos fdfb51ad8d
core: Two updates to chat model interface (#19684)
- .stream() and .astream() call on_llm_new_token, removing the need for
subclasses to do so. Backwards compatible because now we don't pass
run_manager into ._stream and ._astream
- .generate() and .agenerate() now handle `stream: bool` kwarg for
_generate and _agenerate. Subclasses handle this arg by delegating to
._stream(), now one less thing they need to do. Backwards compat because
this is an optional arg that we now never pass to the subclasses
- .generate() and .agenerate() now inspect callback handlers to decide
on a default value for stream:bool if not passed in. This auto enables
streaming when using astream_events and astream_log
- as a result of these three changes any usage of .astream_events and
.astream_log should now yield chat model stream events
- In future PRs we can update all subclasses to reflect these two things
now handled by base class, but in meantime all will continue to work
2024-03-27 18:45:01 -07:00
..
_api core[patch]: deprecation docstring with lib (#18350) 2024-03-01 00:44:13 +00:00
beta core: Updated docstring for Context class (#19079) 2024-03-18 21:15:14 -07:00
callbacks [Enhancement] Add support for directly providing a run_id (#18990) 2024-03-18 15:03:04 -07: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
embeddings core[minor]: moved fake llms and embeddings to core (#19226) 2024-03-18 10:01:26 -07:00
example_selectors core[minor]: Add async methods to MaxMarginalRelevanceExampleSelector (#19639) 2024-03-27 16:03:18 -04:00
language_models core: Two updates to chat model interface (#19684) 2024-03-27 18:45:01 -07:00
load load: Optionally disable reading secrets from env (#19596) 2024-03-26 20:32:56 +00:00
messages core[patch]: Update messages namespace to fix API reference docs (#19161) 2024-03-20 09:25:09 -04:00
output_parsers core[minor]: support pydantic v2 models in PydanticOutputParser (#18811) 2024-03-27 15:37:52 -04:00
outputs docs: modules descriptions (#17844) 2024-02-21 15:58:21 -08:00
prompts docs: Update docstring for MessagesPlaceholder (#19601) 2024-03-26 14:34:00 -07:00
pydantic_v1
runnables docs: Improve docstring for Runnable bind method (#19659) 2024-03-27 14:05:41 -04:00
tracers core[major]: On Tool End Observation Casting Fix (#18798) 2024-03-11 10:59:04 -04:00
utils core[minor]: Add utility code to create tool examples (#18602) 2024-03-22 13:17:40 -04: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
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
globals.py core[patch]: Move globals to a module instead of a package (non breaking change) (#19159) 2024-03-19 12:29:12 -04: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 [Enhancement] Add support for directly providing a run_id (#18990) 2024-03-18 15:03:04 -07: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[patch]: ToolException docs/exception message (#17590) 2024-03-27 21:52:36 +00:00
vectorstores.py core[minor]: Add async methods to MaxMarginalRelevanceExampleSelector (#19639) 2024-03-27 16:03:18 -04:00