DeepSeek Harness 插件

dsh-weather

Weather tool for DeepSeek Harness: current conditions and multi-day forecasts via Open-Meteo.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
sunshine-lang/dsh-weather
最近更新
2026年8月14日
分类
工具与能力
GitHub stars
7
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/sunshine-lang/dsh-weather
插件名:dsh-weather
作者:sunshine-lang

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器4 个文件
README.md来源说明 · 只读预览
README 语言

dsh-weather

English | 中文

DeepSeek Harness 天气工具:查询任意城市或地点的实时天气与多日预报,数据来自 Open-Meteo——免费、无需 API key、无需注册。

功能特性

  • get_weather 工具:实时温度、体感温度、湿度、风速与天气状况。
  • 可选多日预报(最多 7 天):每日最高/最低温度与天气状况。
  • 支持摄氏 / 华氏温度单位。
  • 无需 API key;数据来源:Open-Meteo

安装

从 GitHub 安装

dsh plugin --profile web add "github:sunshine-lang/dsh-weather"

然后重启 dsh --profile weblib/ 已预构建并提交,安装无需构建权限。

从 npm 安装

dsh plugin --profile web add dsh-weather

从本地源码安装(开发)

dsh plugin --profile web add ./dsh-weather

> 注意:pnpm 对 link: 方式的本地依赖不会自动安装其依赖,需要手动添加到 profile(通过 registry 或 GitHub 安装则会自动处理): > > ``sh > dsh plugin --profile web add @deepseek-ai/dsh-tools @deepseek-ai/cordis @deepseek-ai/schemastery > ``

验证

dsh --profile web --dump-config   # 应能看到 "# == dsh-weather" 层

使用方法

启动 Web UI 后,向模型提问,例如:

> 上海现在天气怎么样? > > 查一下东京的天气,用华氏度,并给出 3 天预报。

模型会调用 get_weather:参数 location(必填),可选 unitscelsius | fahrenheit)和 days(1–7)。

配置

可通过 cordis.patch.yml 或 profile 的 patch 层覆盖任意配置项:

- patch:
    - id: dsh-weather
      config:
        defaultUnits: fahrenheit
        timeoutMs: 15000
        maxForecastDays: 5
配置项默认值含义
defaultUnitscelsius模型未传 units 时使用的温度单位
timeoutMs10000每次天气 API 调用的超时时间(毫秒)
maxForecastDays7days 参数的上限(1–7)

配置无效时插件加载会直接失败,并给出可操作的错误信息。

开发

pnpm install
pnpm build        # tsc → lib/

在 DeepSeek Harness 仓库内构建(类型解析指向工作区源码)时,改用 tsconfig.local.jsontsc -p tsconfig.local.json

同作者更多插件

该作者的全部 DeepSeek Harness 插件(统一入口):dsh-plugins

许可证

MIT。天气数据 © Open-Meteo