generalbots/docs/src/chapter-08/README.md

36 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Tooling
The **Tooling** chapter lists all builtin keywords and their oneline descriptions.
| Keyword | Description |
|---------|-------------|
| `TALK` | Send a message to the user. |
| `HEAR` | Receive user input. |
| `LLM` | Invoke the configured largelanguagemodel. |
| `ADD_TOOL` | Register a custom tool at runtime. |
| `GET` | Retrieve a value from the session store. |
| `SET` | Store a value in the session store. |
| `FORMAT` | Format numbers, dates, or text. |
| `ADD_KB` | Create a new knowledgebase collection. |
| `SET_KB` | Switch the active knowledgebase. |
| `ADD_WEBSITE` | Crawl and index a website. |
| `CALL` | Invoke a registered tool synchronously. |
| `CALL_ASYNC` | Invoke a tool asynchronously. |
| `LIST_TOOLS` | List all available tools for the session. |
| `REMOVE_TOOL` | Unregister a tool. |
| `CLEAR_TOOLS` | Remove all custom tools. |
| `FIRST` / `LAST` | Access first/last element of a collection. |
| `FOR EACH` / `EXIT FOR` | Iterate over collections. |
| `IF` / `ELSE` / `ENDIF` | Conditional execution. |
| `WHILE` / `ENDWHILE` | Loop while a condition holds. |
| `REPEAT` / `UNTIL` | Loop until a condition is met. |
| `WAIT` | Pause execution for a given duration. |
| `ON` | Register an event handler. |
| `SET_SCHEDULE` | Define a scheduled task. |
| `PRINT` | Output debugging information. |
| `GET_BOT_MEMORY` / `SET_BOT_MEMORY` | Access botwide memory store. |
| `CREATE_SITE` | Create a new website entry in a knowledge base. |
| `CREATE_DRAFT` | Generate a draft document. |
| `WEBSITE OF` | Reference a website object. |
| `FIND` | Search within collections. |
| `GET` / `SET` | Generic getters/setters for variables. |
| `...` | See the full keyword list in `chapter-05/keywords.md`. |