I believe there is a small but important bug on the API docs on the core docs. The function message
content field has the wrong
description I believe. Here is the screenshot.
I believe the
content field in the
function message should be for the return value from the function just like the
tool message above.