chore: update readme
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
# LLM Functions
|
# LLM Functions
|
||||||
|
|
||||||
This project allows you to enhance large language models (LLMs) with custom tools and agents developed in bash/javascript/python. Imagine your LLM being able to execute system commands, access web APIs, or perform other complex tasks – all triggered by simple, natural language prompts.
|
This project helps you easily create LLM tools and agents based on Bash, JavaScript, and Python. Additionally, it offers a comprehensive collection of pre-built tools and agents for your convenience.
|
||||||
|
|
||||||
**Tool Showcase**
|
**Tools Showcase**
|
||||||

|

|
||||||
|
|
||||||
**Agent showcase**
|
**Agents showcase**
|
||||||

|

|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
@@ -29,9 +29,8 @@ git clone https://github.com/sigoden/llm-functions
|
|||||||
|
|
||||||
```
|
```
|
||||||
get_current_weather.sh
|
get_current_weather.sh
|
||||||
#execute_command.sh
|
execute_command.sh
|
||||||
execute_py_code.py
|
#execute_py_code.py
|
||||||
search_tavily.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**II. Create a `./agents.txt` file with each agent name on a new line.**
|
**II. Create a `./agents.txt` file with each agent name on a new line.**
|
||||||
@@ -65,7 +64,7 @@ LLM Functions automatically generates the JSON declarations for the tools based
|
|||||||
|
|
||||||
### Bash
|
### Bash
|
||||||
|
|
||||||
Create a new bashscript in the [./tools/](./tools/) directory (.e.g. `may_execute_command.sh`).
|
Create a new bashscript in the [./tools/](./tools/) directory (.e.g. `execute_command.sh`).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
@@ -83,7 +82,7 @@ eval "$(argc --argc-eval "$0" "$@")"
|
|||||||
|
|
||||||
### Javascript
|
### Javascript
|
||||||
|
|
||||||
Create a new javascript in the [./tools/](./tools/) directory (.e.g. `may_execute_js_code.js`).
|
Create a new javascript in the [./tools/](./tools/) directory (.e.g. `execute_js_code.js`).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
/**
|
/**
|
||||||
@@ -100,7 +99,7 @@ exports.main = function main({ code }) {
|
|||||||
|
|
||||||
### Python
|
### Python
|
||||||
|
|
||||||
Create a new python script in the [./tools/](./tools/) directory (e.g., `may_execute_py_code.py`).
|
Create a new python script in the [./tools/](./tools/) directory (e.g., `execute_py_code.py`).
|
||||||
|
|
||||||
```py
|
```py
|
||||||
def main(code: str):
|
def main(code: str):
|
||||||
@@ -135,6 +134,9 @@ version: 0.1.0
|
|||||||
instructions: You are a test ai agent to ...
|
instructions: You are a test ai agent to ...
|
||||||
conversation_starters:
|
conversation_starters:
|
||||||
- What can you do?
|
- What can you do?
|
||||||
|
variables:
|
||||||
|
- name: foo
|
||||||
|
description: This is a foo
|
||||||
documents:
|
documents:
|
||||||
- local-file.txt
|
- local-file.txt
|
||||||
- local-dir/
|
- local-dir/
|
||||||
|
|||||||
Reference in New Issue
Block a user