2026-08-26 18:06:02 +08:00
|
|
|
# Weather 插件
|
|
|
|
|
|
2026-09-11 10:46:52 +08:00
|
|
|
独立进程。启动命令只看 `plugin.json` 的 `launch`。`protocolVersion` 为 1。
|
2026-08-26 18:06:02 +08:00
|
|
|
|
|
|
|
|
## 输入 / 输出
|
|
|
|
|
|
|
|
|
|
- 输入 `cities`(字符串数组,与代码、清单同名)
|
|
|
|
|
- 输出 `summary`
|
|
|
|
|
|
2026-09-11 10:46:52 +08:00
|
|
|
## 凭据与配置
|
2026-08-26 18:06:02 +08:00
|
|
|
|
2026-09-11 10:46:52 +08:00
|
|
|
- LLM:宿主注入 `OPENAI_*`,以及 stdin `credentials.llm`
|
|
|
|
|
- OpenWeather(可选):宿主凭据类型 `openweather`,注入 `OPENWEATHER_API_KEY`。默认 Provider 是免费的 Wttr,不需要这个 Key
|
|
|
|
|
- 天气 URL / 语言:读**本插件目录**的 `appsettings.json`,不读宿主配置
|