aboutsummaryrefslogtreecommitdiffstats
path: root/docs/argcfile.md
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-12-13 17:18:01 +0800
committerGitHub <noreply@github.com>2024-12-13 17:18:01 +0800
commitd692625662c0f7262dab9af049e0adb33ce2e46e (patch)
tree56a46488e9f3271a20d62e5886644e6978d2bf8d /docs/argcfile.md
parent8ace93beb813a431b4f26e277f8c0bcebdfa8511 (diff)
downloadllm-functions-docker-d692625662c0f7262dab9af049e0adb33ce2e46e.tar.gz
refactor: add docs and update scripts (#150)
Diffstat (limited to 'docs/argcfile.md')
-rw-r--r--docs/argcfile.md79
1 files changed, 79 insertions, 0 deletions
diff --git a/docs/argcfile.md b/docs/argcfile.md
new file mode 100644
index 0000000..9366a76
--- /dev/null
+++ b/docs/argcfile.md
@@ -0,0 +1,79 @@
+# Argcfile
+
+The [Argcfile.sh](https://github.com/sigoden/llm-functions/blob/main/Argcfile.sh) is a powerful Bash script designed to streamline the process of managing LLM functions and agents in your AIChat environment.
+
+We encourage running `Argcfile.sh` using `argc`. Because `argc` provides better autocompletion, it can also be used without trouble on Windows.
+
+Argcfile.sh is to argc what Makefile is to make.
+
+https://github.com/user-attachments/assets/1acef548-4735-49c1-8f60-c4e0baf528de
+
+## Usage
+
+```sh
+# -------- Help --------
+argc -h # Print help information
+argc <command> -h # Print help information for <command>
+
+# -------- Build --------
+# Build
+argc build
+
+# Build all tools
+argc build@tool
+# Build specific tools
+argc build@tool get_current_weather.sh execute_command.sh
+
+# Build all agents
+argc build@agent
+# Build specific agents
+argc build@agent coder todo
+
+# -------- Run --------
+# Run tool
+argc run@tool get_current_weather.sh '{"location":"London"}'
+# Run agent tool
+argc run@agent todo add_todo '{"desc":"Watch a movie"}'
+
+# -------- Test --------
+# Test all
+argc test
+# Test tools
+argc test@tool
+# Test agents
+argc test@agent
+
+# -------- Clean --------
+# Clean all
+argc clean
+# Clean tools
+argc clean@tool
+# Clean agents
+argc clean@agent
+
+# -------- Link --------
+argc link-web-search web_search_tavily.sh
+argc link-code-interpreter execute_py_code.py
+
+# -------- Misc --------
+# Install this repo to aichat functions_dir
+argc install
+# Displays version information for required tools
+argc version
+```
+
+## MCP Usage
+
+```sh
+# Start/restart the mcp bridge server
+argc mcp start
+
+# Stop the mcp bridge server
+argc mcp stop
+
+# Run the mcp tool
+argc mcp run@tool fs_read_file '{"path":"/tmp/file1"}'
+
+# Show the logs
+argc mcp logs
+```