Ask a question to get started
Enter to send•Shift+Enter new line
Convert tool output to ToolMessage content format.
ToolMessage
Handles str, list[dict] (content blocks), and arbitrary objects by attempting JSON serialization with fallback to str().
str
list[dict]
msg_content_output( output: Any, ) -> str | list[dict]
output
Any
Tool execution output of any type.