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.

Parameters

message (BaseMessage) –

Return type

dict

Examples using convert_message_to_dict¶