From 213d1b3fd72d2572050402b6be25cad590a9cb95 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 29 Jul 2024 17:26:36 +0800 Subject: refactor: demo agent (#81) --- agents/demo/tools.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'agents/demo/tools.sh') 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 <> "$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 -- cgit v1.2.3