langchain/libs
JP-Ellis f77659463a
core[patch]: allow message utils to work with lcel (#23743)
The functions `convert_to_messages` has had an expansion of the
arguments it can take:

1. Previously, it only could take a `Sequence` in order to iterate over
it. This has been broadened slightly to an `Iterable` (which should have
no other impact).
2. Support for `PromptValue` and `BaseChatPromptTemplate` has been
added. These are generated when combining messages using the overloaded
`+` operator.

Functions which rely on `convert_to_messages` (namely `filter_messages`,
`merge_message_runs` and `trim_messages`) have had the type of their
arguments similarly expanded.

Resolves #23706.

<!--
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
-->

---------

Signed-off-by: JP-Ellis <josh@jpellis.me>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-07-15 08:58:05 -07:00
..
cli cli[patch]: ruff 0.5 (#23833) 2024-07-03 18:33:15 +00:00
community docs: Spell check fixes (#24217) 2024-07-15 15:51:43 +00:00
core core[patch]: allow message utils to work with lcel (#23743) 2024-07-15 08:58:05 -07:00
experimental multiple: use modern installer in poetry (#23998) 2024-07-08 18:50:48 -07:00
langchain langchain[minor]: Generic configurable model (#23419) 2024-07-15 01:11:01 +00:00
partners fireworks[patch]: use firefunction-v2 in standard tests (#24264) 2024-07-15 13:15:08 +00:00
standard-tests standard-tests[patch]: update test_bind_runnables_as_tools (#24241) 2024-07-15 08:35:07 -04:00
text-splitters docs: Spell check fixes (#24217) 2024-07-15 15:51:43 +00:00