tool_result_to_messages
tool
user
std_msgs/String.data
{"data": "..."}
history
assistant
tool_calls
tool_call_id
history.len() <= max