You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/langchain_core/messages
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>
3 months ago
..
__init__.py
ai.py core[patch]: fix ToolCall "type" when streaming (#24218) 3 months ago
base.py core: Move json parsing in base chat model / output parser to bg thread (#24031) 3 months ago
chat.py core: docstrings `messages` (#23788) 4 months ago
function.py core: docstrings `messages` (#23788) 4 months ago
human.py core: docstrings `messages` (#23788) 4 months ago
modifier.py core: docstrings `messages` (#23788) 4 months ago
system.py core: docstrings `messages` (#23788) 4 months ago
tool.py core[patch]: fix ToolCall "type" when streaming (#24218) 3 months ago
utils.py core[patch]: allow message utils to work with lcel (#23743) 3 months ago