langchain_community.chat_models.tongyi.convert_dict_to_message

langchain_community.chat_models.tongyi.convert_dict_to_message(_dict: Mapping[str, Any], is_chunk: bool = False) Union[BaseMessage, BaseMessageChunk][source]

将字典转换为消息。

参数
  • _dict (Mapping[str, Any]) –

  • is_chunk (bool) –

返回类型

Union[BaseMessage, BaseMessageChunk]