Return a pretty representation of the message for display.
Example:
from langchain_core.messages import AIMessage
msg = AIMessage(
content="Let me check the weather.",
tool_calls=[
{"name": "get_weather", "args": {"city": "Paris"}, "id": "1"}
],
)
Results in:
>>> print(msg.pretty_repr())
================================== Ai Message ==================================
Let me check the weather.
Tool Calls:
get_weather (1)
Call ID: 1
Args:
city: Paris| Name | Type | Description |
|---|---|---|
html | bool | Default: FalseWhether to return an HTML-formatted string. |