# Tool definitions — structured descriptions the LLM reads
TOOL_DEFINITIONS = [
    {
        "type": "function",
        "function": {
            "name": "calculator",
            "description": "Evaluate a mathematical expression. Use this for any
arithmetic: addition, subtraction, multiplication, division, percentages.",
            "parameters": {
                "type": "object",
                "properties": {
                    "expression": {
                        "type": "string",
                        "description": "The mathematical expression to evaluate.
Example: '(150 * 1.2) + 50'"
                    }
                },
                "required": ["expression"]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "unit_converter",
            "description": "Convert a value between units (km/miles, kg/lbs,
celsius/fahrenheit).",
            "parameters": {
                "type": "object",
                "properties": {
                    "value":     {"type": "number", "description": "The value to convert"},
                    "from_unit": {"type": "string", "description": "The unit to convert from"},
                    "to_unit":   {"type": "string", "description": "The unit to convert to"}
                },
                "required": ["value", "from_unit", "to_unit"]
            }
        }
    }
]
