aboutsummaryrefslogtreecommitdiffstats
path: root/Argcfile.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-29 07:32:26 +0800
committerGitHub <noreply@github.com>2024-07-29 07:32:26 +0800
commita7342a1cbf0ae558db9005870ddb20a539daac68 (patch)
treea5b4f3ddaf2421f12967291f6ce4a89243b03360 /Argcfile.sh
parent4d18d6346d4aea16cc9dac1bcfc3ccc4c15a7bd0 (diff)
downloadllm-functions-docker-a7342a1cbf0ae558db9005870ddb20a539daac68.tar.gz
feat: add web_search_* tools, rm some search_* tools (#78)
Diffstat (limited to 'Argcfile.sh')
-rw-r--r--Argcfile.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index 7e1e73b..19903d7 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -453,8 +453,8 @@ clean@agent() {
# @cmd Link a tool as web_search tool
#
# Example:
-# argc link-web-search search_bing.sh
-# @arg tool![`_choice_tool`] The tool work as web_search
+# argc link-web-search web_search_perplexity.sh
+# @arg tool![`_choice_web_search`] The tool work as web_search
link-web-search() {
_link_tool $1 web_search
}
@@ -463,7 +463,7 @@ link-web-search() {
#
# Example:
# argc link-code-interpreter execute_py_code.py
-# @arg tool![`_choice_tool`] The tool work as code_interpreter
+# @arg tool![`_choice_code_interpreter`] The tool work as code_interpreter
link-code-interpreter() {
_link_tool $1 code_interpreter
}
@@ -608,6 +608,14 @@ _choice_tool() {
done
}
+_choice_web_search() {
+ _choice_tool | grep '^web_search_'
+}
+
+_choice_code_interpreter() {
+ _choice_tool | grep '^execute_.*_code'
+}
+
_choice_agent() {
ls -1 agents
}