messages_from_dict#
- langchain_core.messages.utils.messages_from_dict(messages: Sequence[dict]) list[BaseMessage] [source]#
Convert a sequence of messages from dicts to Message objects.
- Parameters:
messages (Sequence[dict]) – Sequence of messages (as dicts) to convert.
- Returns:
list of messages (BaseMessages).
- Return type:
list[BaseMessage]