langchain.adapters.openai.convert_dict_to_message

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

Convert a dictionary to a LangChain message.

Parameters

_dict – The dictionary.

Returns

The LangChain message.