diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-29 17:26:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 17:26:36 +0800 |
| commit | 213d1b3fd72d2572050402b6be25cad590a9cb95 (patch) | |
| tree | c153a8ededeeb1bb1326e9edbb193685a4198b8b /agents/demo/tools.sh | |
| parent | 226228dfa45aa075f1a74b07885407d9dba6017f (diff) | |
| download | llm-functions-docker-213d1b3fd72d2572050402b6be25cad590a9cb95.tar.gz | |
refactor: demo agent (#81)
Diffstat (limited to 'agents/demo/tools.sh')
| -rwxr-xr-x | agents/demo/tools.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/agents/demo/tools.sh b/agents/demo/tools.sh index 98f3d47..af8ddc8 100755 --- a/agents/demo/tools.sh +++ b/agents/demo/tools.sh @@ -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 |
