convert_message_to_dict#
- langchain_community.chat_models.baidu_qianfan_endpoint.convert_message_to_dict(
- message: BaseMessage,
Convert a message to a dictionary that can be passed to the API.
- Parameters:
message (BaseMessage)
- Return type:
dict
Examples using convert_message_to_dict