langchain_core.messages.base.message_to_dict¶

langchain_core.messages.base.message_to_dict(message: BaseMessage) dict[source]¶

Convert a Message to a dictionary.

Parameters

message – Message to convert.

Returns

Message as a dict.