messages.content: Who invented the theory of relativity and in which year?
messages.role: user
messages.role: assistant
messages.arguments: {"invention_name": "theory of relativity", "want_year": true}
messages.name: science_history_get_invention
messages.type: function
tools: [{"type": "function", "function": {"name": "science_history_get_invention", "description": "Retrieve the inventor and year of invention based on the invention's name.", "parameters": {"type": "dict", "properties": {"invention_name": {"type": "string", "description": "The name of the invention."}, "want_year": {"type": "boolean", "default": false, "description": "Return the year of invention if set to true."}}, "required": ["invention_name", "want_year"]}}}]