langchain_community.adapters.openai.convert_message_to_dict¶

langchain_community.adapters.openai.convert_message_to_dict(message: BaseMessage) dict[source]¶

Convert a LangChain message to a dictionary.

Parameters

message – The LangChain message.

Returns

The dictionary.

Examples using convert_message_to_dict¶