aboutsummaryrefslogtreecommitdiffstats
path: root/tools/get_current_weather.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-14 21:54:44 +0800
committerGitHub <noreply@github.com>2024-11-14 21:54:44 +0800
commit1b96d4ee4cadf05163d653373423a615723240aa (patch)
treeb528d9e7791a2ed1ca8ce36098eec7c160200613 /tools/get_current_weather.sh
parentafbd03f963b08419a3835c9473d757bf936c8b92 (diff)
downloadllm-functions-docker-1b96d4ee4cadf05163d653373423a615723240aa.tar.gz
feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123)
Diffstat (limited to 'tools/get_current_weather.sh')
-rwxr-xr-xtools/get_current_weather.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/get_current_weather.sh b/tools/get_current_weather.sh
index ab3e613..e942290 100755
--- a/tools/get_current_weather.sh
+++ b/tools/get_current_weather.sh
@@ -4,6 +4,8 @@ set -e
# @describe Get the current weather in a given location.
# @option --location! The city and optionally the state or country, e.g., "London", "San Francisco, CA".
+# @env LLM_OUTPUT=/dev/stdout The output path
+
main() {
curl -fsSL "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M" \
>> "$LLM_OUTPUT"