Print a pretty representation of the message.
pretty_print(
self,
) -> NoneExample:
from langchain_core.messages import AIMessage
msg = AIMessage(content="The capital of France is Paris.")
msg.pretty_print()
Results in:
================================== Ai Message ==================================
The capital of France is Paris.