diff options
| -rw-r--r-- | .github/workflows/ci.yaml | 5 | ||||
| -rw-r--r-- | Argcfile.sh | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3d0b909..88ea049 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,6 +40,11 @@ jobs: with: python-version: '3.11' + - name: Link web-search and code-interpreter + run: | + argc link-web-search search_tavily.sh + argc link-code-interpreter execute_py_code.py + - name: Run Test run: argc test env: diff --git a/Argcfile.sh b/Argcfile.sh index 6c2e221..9d17181 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -259,6 +259,7 @@ build-declarations@agent() { fi not_found_agents=() build_failed_agents=() + exist_tools="$(ls -1 tools)" for name in "${names[@]}"; do agent_dir="agents/$name" declarations_file="$agent_dir/functions.json" @@ -282,6 +283,12 @@ build-declarations@agent() { fi done if [[ -f "$tool_names_file" ]]; then + if grep -q '^web_search\.' "$tool_names_file" && ! grep -q '^web_search\.' <<<"$exist_tools"; then + echo "WARNING: no found web_search tool, please run \`argc link-web-search\` to set one." + fi + if grep -q '^code_interpreter\.' "$tool_names_file" && ! grep -q '^code_interpreter\.' <<<"$exist_tools"; then + echo "WARNING: no found code_interpreter tool, please run \`argc link-code-interpreter\` to set one." + fi tools_json_data="$(argc build-declarations@tool --names-file="$tool_names_file" --declarations-file=-)" || { ok=false build_failed_agents+=("$name") @@ -545,8 +552,9 @@ _link_tool() { if _is_win; then (cd tools && cmd <<< "mklink $to $from" > /dev/null) else - (cd tools && ln -rs $from $to) + (cd tools && ln -s $from $to) fi + (cd tools && ls -l $to) } _ask_json_data() { |
