refactor: demo agent (#81)

This commit is contained in:
sigoden
2024-07-29 17:26:36 +08:00
committed by GitHub
parent 226228dfa4
commit 213d1b3fd7
7 changed files with 73 additions and 47 deletions
+3 -6
View File
@@ -1,12 +1,9 @@
#!/usr/bin/env bash
set -e
# @cmd Get the system info
get_sysinfo() {
cat <<EOF >> "$LLM_OUTPUT"
OS: $(uname)
Arch: $(arch)
EOF
# @cmd Get the ip info
get_ipinfo() {
curl -fsSL https://httpbin.org/ip >> "$LLM_OUTPUT"
}
# See more details at https://github.com/sigoden/argc