tools = [
    {
        "type": "function",
        "function": {
            "name": "get_user_stats",
            "description": "获取用户的跑步历史数据，包括总公里数、周均里程、最长跑距",
            "parameters": {
                "type": "object",
                "properties": {
                    "user_id": {
                        "type": "string",
                        "description": "用户 ID"
                    }
                },
                "required": ["user_id"]
            }
        }
    },
    {
        "type": "function",
        "name": "lookup_vdot",
        "description": "根据配速查询 VDOT 值和预测各距离完赛时间",
        "parameters": {
            "type": "object",
            "properties": {
                "pace_per_km": {
                    "type": "number",
                    "description": "配速，单位分钟/km，如 5.0 表示 5:00/km"
                }
            },
            "required": ["pace_per_km"]
        }
    }
]