convert_dict_to_message#

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

将字典转换为LangChain消息。

Parameters:

_dict (Mapping[str, Any]) – 字典。

Returns:

LangChain 消息。

Return type:

BaseMessage