The tool/function-calling cookbook includes a "name"
parameter in a message with role "tool"
:
messages.append({
"role":"tool",
"tool_call_id":tool_call_id,
"name": tool_function_name,
"content":results
})
However, the API reference for tool messages indicates that the supported properties are “role”, “content”, and “tool_call_id”.
Should developers expect “name” to be a supported parameter for tool messages?