convert_dict_to_message#

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

将字典转换为消息。

Parameters:
  • _dict (映射[字符串, 任意类型])

  • is_chunk (布尔值)

Return type:

BaseMessage | BaseMessageChunk