From a7342a1cbf0ae558db9005870ddb20a539daac68 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 29 Jul 2024 07:32:26 +0800 Subject: feat: add web_search_* tools, rm some search_* tools (#78) --- Argcfile.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Argcfile.sh') 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 } -- cgit v1.2.3