diff options
| -rw-r--r-- | Argcfile.sh | 8 | ||||
| -rw-r--r-- | README.md | 12 | ||||
| -rwxr-xr-x | tools/execute_command.sh (renamed from tools/may_execute_command.sh) | 0 | ||||
| -rw-r--r-- | tools/execute_js_code.js (renamed from tools/may_execute_js_code.js) | 0 | ||||
| -rw-r--r-- | tools/execute_py_code.py (renamed from tools/may_execute_py_code.py) | 0 |
5 files changed, 6 insertions, 14 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index 05b9cfb..93cc93b 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -77,7 +77,7 @@ build() { # @option --declarations-file=functions.json <FILE> Path to a json file to save function declarations # Example: # get_current_weather.sh -# may_execute_js_code.js +# execute_js_code.js # @arg tools*[`_choice_tool`] The tool filenames build@tool() { if [[ "${#argc_tools[@]}" -gt 0 ]]; then @@ -347,9 +347,9 @@ test-execute-code-tools() { ext=".cmd" fi test_cases=( \ - 'sh#may_execute_command#{"command":"echo \"✓\""}' \ - 'js#may_execute_js_code#{"code":"console.log(\"✓\")"}' \ - 'py#may_execute_py_code#{"code":"print(\"✓\")"}' \ + 'sh#execute_command#{"command":"echo \"✓\""}' \ + 'js#execute_js_code#{"code":"console.log(\"✓\")"}' \ + 'py#execute_py_code#{"code":"print(\"✓\")"}' \ ) for test_case in "${test_cases[@]}"; do @@ -45,23 +45,15 @@ ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{print $2}')" argc install ``` -Don't forget to add the following config to your AIChat `config.yaml` file: - -```yaml -function_calling: true -``` - AIChat will automatically load `functions.json` and execute commands located in the `./bin` directory based on your prompts. **4. Start using your functions:** Now you can interact with your LLM using natural language prompts that trigger your defined functions. -## AIChat Showcases - - +## Showcases - +  diff --git a/tools/may_execute_command.sh b/tools/execute_command.sh index 6acc021..6acc021 100755 --- a/tools/may_execute_command.sh +++ b/tools/execute_command.sh diff --git a/tools/may_execute_js_code.js b/tools/execute_js_code.js index 4706e07..4706e07 100644 --- a/tools/may_execute_js_code.js +++ b/tools/execute_js_code.js diff --git a/tools/may_execute_py_code.py b/tools/execute_py_code.py index 5f6af2f..5f6af2f 100644 --- a/tools/may_execute_py_code.py +++ b/tools/execute_py_code.py |
