langchain_community.adapters.openai.convert_dict_to_message¶

langchain_community.adapters.openai.convert_dict_to_message(_dict: Mapping[str, Any]) BaseMessage[source]¶

Convert a dictionary to a LangChain message.

Parameters

_dict (Mapping[str, Any]) – The dictionary.

Returns

The LangChain message.

Return type

BaseMessage