feat: 为行程规划 agent 添加 get_travel_time 工具,调用高德驾车 API 验证交通时间

agent 之前完全靠 LLM 猜测地理距离,现在可以查询真实驾车时间,超过 30 分钟会换更近地点。
同时修复 dev 端口未生效的问题(next dev 加 --port 3721)。
This commit is contained in:
2026-03-02 10:21:00 +08:00
parent ea49ce6081
commit 9d891fb702
2 changed files with 53 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --port 3721",
"build": "next build",
"start": "next start",
"lint": "eslint",