Files
llm-functions/agents/demo
2024-07-29 17:26:36 +08:00
..
2024-07-29 17:26:36 +08:00
2024-07-29 17:26:36 +08:00
2024-07-29 17:26:36 +08:00
2024-07-29 17:26:36 +08:00
2024-07-29 17:26:36 +08:00
2024-07-29 17:26:36 +08:00

Demo

This agent serves as a demo to guide agent development and showcase various agent capabilities.

index.yaml

This file defines the agent.

variables

Variables are generally used to store information about a user's behavior or preferences.

variables:
  - name: foo
    description: This is a foo
  - name: bar
    description: This is a bar with default value
    default: val

When use define variables, please avoid these built-in variables:

name description example
os Operating system name linux
os_family Operating system family unix
arch System architecture x86_64
shell Current user's default shell bash
locale User's preferred language and region settings en-US
now Current timestamp in ISO 8601 format 2024-07-29T08:11:24.367Z
cwd Current working directory /tmp

Variables should be used in the instructions field.

instructions: |
  The instructions can inline user defined variables: {{foo}}, {{bar}} and builtin variables {{__shell__}}.

documents

Documents are used for RAG, supporting local files/dirs and remote URLs.

documents:
  - local-file.txt
  - local-dir/
  - https://example.com/remote-file.txt

tools.{sh,js,py}

The tool script implements agent-specific tools.

You only need one of the tools.sh, tools.js, or tools.py.

tools.txt

The tools.txt file enables tool reuse from the /tools folder in this project.