aboutsummaryrefslogtreecommitdiffstats
path: root/tools/demo_sh.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-09 21:17:12 +0800
committerGitHub <noreply@github.com>2024-07-09 21:17:12 +0800
commit02e335c99526fe52dee0d0a016aee6bf62d874c2 (patch)
tree48d347d9d1652cfa62ec778de65509952534b8ff /tools/demo_sh.sh
parent0dbdc9e7109b77895743a6d8d11b83caf906e726 (diff)
downloadllm-functions-docker-02e335c99526fe52dee0d0a016aee6bf62d874c2.tar.gz
refactor: demo tools/agents (#67)
Diffstat (limited to 'tools/demo_sh.sh')
-rwxr-xr-xtools/demo_sh.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/demo_sh.sh b/tools/demo_sh.sh
new file mode 100755
index 0000000..da35e8f
--- /dev/null
+++ b/tools/demo_sh.sh
@@ -0,0 +1,16 @@
+# @describe Demonstrate how to create a tool using Bash and how to use comment tags.
+# @option --string! Define a required string property
+# @option --string-enum![foo|bar] Define a required string property with enum
+# @option --string-optional Define a optional string property
+# @flag --boolean Define a boolean property
+# @option --integer! <INT> Define a required integer property
+# @option --number! <NUM> Define a required number property
+# @option --array+ <VALUE> Define a required string array property
+# @option --array-optional* Define a optional string array property
+
+main() {
+ ( set -o posix ; set ) | grep ^argc_
+ printenv | grep '^LLM_'
+}
+
+eval "$(argc --argc-eval "$0" "$@")" \ No newline at end of file