feat: add web_search_* tools, rm some search_* tools (#78)

This commit is contained in:
sigoden
2024-07-29 07:32:26 +08:00
committed by GitHub
parent 4d18d6346d
commit a7342a1cbf
11 changed files with 44 additions and 177 deletions
+11 -3
View File
@@ -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
}