summaryrefslogtreecommitdiffstats
path: root/examples/tools/weather.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-26 08:02:35 +0200
committerDanilo M. <danix@danix.xyz>2026-09-26 08:02:35 +0200
commit0c834c81365ee6e2259c4a93009ac241941aecdb (patch)
treedcb3066771ca5ea85bb0e07b056dc24e1843db38 /examples/tools/weather.toml
parent55659f8422bdf6c4d62ba41f00461b304b43be0b (diff)
downloaddesktop-assistant-0c834c81365ee6e2259c4a93009ac241941aecdb.tar.gz
desktop-assistant-0c834c81365ee6e2259c4a93009ac241941aecdb.zip
Add weather tool on OpenWeatherMap, reusing the conky cache for home
A bare city name is ambiguous for the API (plain "Rome" and "Roma" both resolve to Rome, US), so the parameter asks the model for City,CC and the output names the country. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools/weather.toml')
-rw-r--r--examples/tools/weather.toml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/tools/weather.toml b/examples/tools/weather.toml
new file mode 100644
index 0000000..ddf3f8e
--- /dev/null
+++ b/examples/tools/weather.toml
@@ -0,0 +1,13 @@
+description = "Weather now, or the forecast for today or tomorrow. Leave place empty for the user's home."
+command = ["weather.sh", "{place}", "{when}"]
+timeout = 12
+announce.it = ["Controllo il meteo.", "Vediamo che tempo fa."]
+announce.en = ["Checking the weather.", "Let me check the weather."]
+
+[params.place]
+type = "string"
+description = "City and ISO country code, e.g. Rome,IT or Paris,FR (a bare name can match a town in another country). Empty for home."
+
+[params.when]
+type = "string"
+description = "now, today or tomorrow. Empty for now."