diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-09 21:17:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 21:17:12 +0800 |
| commit | 02e335c99526fe52dee0d0a016aee6bf62d874c2 (patch) | |
| tree | 48d347d9d1652cfa62ec778de65509952534b8ff /agents/demo/README.md | |
| parent | 0dbdc9e7109b77895743a6d8d11b83caf906e726 (diff) | |
| download | llm-functions-docker-02e335c99526fe52dee0d0a016aee6bf62d874c2.tar.gz | |
refactor: demo tools/agents (#67)
Diffstat (limited to 'agents/demo/README.md')
| -rw-r--r-- | agents/demo/README.md | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/agents/demo/README.md b/agents/demo/README.md new file mode 100644 index 0000000..888b236 --- /dev/null +++ b/agents/demo/README.md @@ -0,0 +1,44 @@ +# Demo + +This is demo agent. + +## tools.{sh,js,py} + +You only need one of the `tools.sh`, `tools.js`, or `tools.py` files. All three are provided so that everyone can understand how to implement the tools in each language. + +## tools.txt + +The `tools.txt` is used to reuse the tools in the `tools/` directory. + +## index.yaml + +This document is essential as it defines the agent. + +### variables + +Variables are generally used to record a certain behavior or preference of a user. + +```yaml +variables: + - name: foo + description: This is a foo + - name: bar + description: This is a bar with default value + default: val +``` + +Variables can be used in the `instructions`. + +```yaml +instructions: | + The instructions can inline {{foo}} and {{bar}} variables. +``` + +### documents + +Documents are used for RAG. + +```yaml +documents: + - https://raw.githubusercontent.com/sigoden/llm-functions/main/README.md +```
\ No newline at end of file |
