From 732eae532c8e8632db95ab80e0dde5071e744386 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 10 Jul 2024 18:53:32 +0800 Subject: feat: adjust the way of returning data to LLM (#69) --- agents/demo/tools.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'agents/demo/tools.sh') diff --git a/agents/demo/tools.sh b/agents/demo/tools.sh index 4b5849b..98f3d47 100755 --- a/agents/demo/tools.sh +++ b/agents/demo/tools.sh @@ -3,9 +3,10 @@ set -e # @cmd Get the system info get_sysinfo() { - echo "OS: $(uname)" - echo "Arch: $(arch)" - echo "User: $USER" + cat <> "$LLM_OUTPUT" +OS: $(uname) +Arch: $(arch) +EOF } # See more details at https://github.com/sigoden/argc -- cgit v1.2.3