Refactor tool execution pipeline

This commit is contained in:
2026-06-21 14:30:40 +08:00
parent 3e5f0658b3
commit 99c1e9cd6c
81 changed files with 3587 additions and 5317 deletions
@@ -0,0 +1,14 @@
name: weather_forecast
desc: 查询指定城市未来7天的每日天气预报(白天/夜间天气、最高/最低温度)。用于"明天天气""这周天气"等问题
type: http
tool: weather
command: forecast
path: /target/release/weather
risk_level: low
timeout_secs: 10
env:
- QWEATHER_KEY
params:
- name: location
required: true
desc: 城市名称,如"北京"、"上海"、"合肥"。支持地级市和县级市
@@ -0,0 +1,14 @@
name: weather_hourly
desc: 查询指定城市未来24小时逐小时天气(温度、天气状况、风力、降水概率)。用于"今晚会下雨吗""下午几点最热"等精确时间天气问题
type: http
tool: weather
command: hourly
path: /target/release/weather
risk_level: low
timeout_secs: 10
env:
- QWEATHER_KEY
params:
- name: location
required: true
desc: 城市名称,如"北京"、"上海"、"合肥"。支持地级市和县级市
+14
View File
@@ -0,0 +1,14 @@
name: weather_now
desc: 查询指定城市的实时天气(温度、体感温度、风向风力、湿度、气压、能见度)。用于回答"今天天气怎么样""北京多少度"等即时天气问题
type: http
tool: weather
command: now
path: /target/release/weather
risk_level: low
timeout_secs: 10
env:
- QWEATHER_KEY
params:
- name: location
required: true
desc: 城市名称,如"北京"、"上海"、"合肥"。支持地级市和县级市