From 1b96d4ee4cadf05163d653373423a615723240aa Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 14 Nov 2024 21:54:44 +0800 Subject: feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123) --- agents/coder/tools.sh | 2 ++ agents/demo/tools.sh | 2 ++ agents/todo/tools.sh | 2 ++ 3 files changed, 6 insertions(+) (limited to 'agents') diff --git a/agents/coder/tools.sh b/agents/coder/tools.sh index 0001c46..6e599e6 100755 --- a/agents/coder/tools.sh +++ b/agents/coder/tools.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e +# @env LLM_OUTPUT=/dev/stdout The output path + # @cmd Create a new file at the specified path with contents. # @option --path! The path where the file should be created # @option --contents! The contents of the file diff --git a/agents/demo/tools.sh b/agents/demo/tools.sh index af8ddc8..fc0533a 100755 --- a/agents/demo/tools.sh +++ b/agents/demo/tools.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e +# @env LLM_OUTPUT=/dev/stdout The output path + # @cmd Get the ip info get_ipinfo() { curl -fsSL https://httpbin.org/ip >> "$LLM_OUTPUT" diff --git a/agents/todo/tools.sh b/agents/todo/tools.sh index c67109d..6d31f64 100755 --- a/agents/todo/tools.sh +++ b/agents/todo/tools.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e +# @env LLM_OUTPUT=/dev/stdout The output path + # @cmd Add a new todo item # @option --desc! The todo description add_todo() { -- cgit v1.2.3