diff options
| author | sigoden <sigoden@gmail.com> | 2024-12-12 12:22:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 12:22:51 +0800 |
| commit | 3584b5c31f4f1f1baa1c350fa46a18752f8bf7c4 (patch) | |
| tree | 586df9099399c8c8a3a0e9abd85d7d4577726231 /Argcfile.sh | |
| parent | 2fc9b476907e6fb830fd57f69d59c794548ad28b (diff) | |
| download | llm-functions-docker-3584b5c31f4f1f1baa1c350fa46a18752f8bf7c4.tar.gz | |
feat: support env var `LLM_DUMP_RESULTS` (#144)
Diffstat (limited to 'Argcfile.sh')
| -rw-r--r-- | Argcfile.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index 9863c29..c124434 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -28,7 +28,7 @@ run@tool() { fi lang="${argc_tool##*.}" cmd="$(_lang_to_cmd "$lang")" - run_tool_script="$PWD/scripts/run-tool.$lang" + run_tool_script="scripts/run-tool.$lang" [[ -n "$argc_cwd" ]] && cd "$argc_cwd" exec "$cmd" "$run_tool_script" "$argc_tool" "$argc_json" } @@ -52,7 +52,7 @@ run@agent() { tools_path="$(_get_agent_tools_path "$argc_agent")" lang="${tools_path##*.}" cmd="$(_lang_to_cmd "$lang")" - run_agent_script="$PWD/scripts/run-agent.$lang" + run_agent_script="scripts/run-agent.$lang" [[ -n "$argc_cwd" ]] && cd "$argc_cwd" exec "$cmd" "$run_agent_script" "$argc_agent" "$argc_action" "$argc_json" } @@ -163,7 +163,7 @@ build-declarations@tool() { build_failed_tools+=("$name") } if [[ "$json_data" == "null" ]]; then - _die "error: failed to build declartions for tool $name" + _die "error: failed to build declarations for tool $name" fi json_list+=("$json_data") done |
