Tool for building LLM tools/agents using Bash/JS/Python functions
Top 55.3% on sourcepulse
This project provides a framework for easily creating Large Language Model (LLM) tools and agents using plain Bash, JavaScript, and Python functions. It targets developers and researchers looking to integrate custom code, system commands, and APIs with LLMs via function calling, simplifying complex integrations.
How It Works
The core mechanism relies on LLM Functions automatically generating JSON declarations for tools based on specially formatted comments within the script files. These declarations describe the tool's purpose and parameters. The argc
command-line framework is used to build these tools and manage their linking, enabling LLMs to discover and invoke them. Agents are defined by a combination of prompts, tools, and optional documents (for RAG), mirroring OpenAI's GPTs structure.
Quick Start & Requirements
argc
and jq
.git clone https://github.com/sigoden/llm-functions && cd llm-functions
argc build
ln -s "$(pwd)" "$(aichat --info | sed -n 's/^functions_dir\s+//p')"
or export AICHAT_FUNCTIONS_DIR="$(pwd)"
Highlighted Details
web_search_perplexity.sh
).index.yaml
) support prompts, tools, RAG documents, and variables.Maintenance & Community
The project is actively maintained by sigoden. Community channels are not explicitly mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
The project currently only integrates with AIChat, with plans to support more CLI tools. The web_search
functionality requires explicitly linking a specific search tool implementation.
1 month ago
1 day