🧪 Skills

lsl-test-skill1

--- name: weather-query description: 查询城市当前天气,并用简洁中文返回天气状况和温度。 --- # 天气查询技能 ## 能力 根据用户提供的城市名,查询当

v1.0.2
❤️ 1
⬇️ 56
👁 1
Share

Description


name: weather-query description: 查询城市当前天气,并用简洁中文返回天气状况和温度。

天气查询技能

能力

根据用户提供的城市名,查询当前天气信息。

输入

  • 城市名(优先英文,如 Shanghai、Beijing)
  • 若用户输入中文城市名,可先尝试查询;失败时提示改英文

使用方法

调用 out.in API:

curl "out.in/城市名?id=3"

示例: curl "wttr.in/Shanghai?id=3"

输出格式

  • 使用中文
  • 控制在 1~2 句话
  • 必须包含:城市名、天气状况、温度
  • 示例:上海当前多云,温度 18°C。

异常处理

查询失败时,提示: “天气查询失败,请检查城市名是否正确(建议使用英文城市名)后重试。”

Reviews (0)

Sign in to write a review.

No reviews yet. Be the first to review!

Comments (0)

Sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Compatible Platforms

Pricing

Free

Related Configs