Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 1.8 KB

argcfile.md

File metadata and controls

79 lines (60 loc) · 1.8 KB

Argcfile

The 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.

llm-functions-argc.mp4

Usage

# -------- 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

# 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