langchain_community.chat_models.tongyi.convert_message_to_dict¶

langchain_community.chat_models.tongyi.convert_message_to_dict(message: BaseMessage) dict[source]¶

Convert a message to a dict.

Examples using convert_message_to_dict¶