diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-13 05:02:52 +0000 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2024-07-13 05:02:52 +0000 |
| commit | 30902f966c724c178bed0caa0e294bc9a3eeea42 (patch) | |
| tree | ea6247457370f0518dc8a3fb4cdc524bcee95a6d /agents/todo | |
| parent | 9b557ae1f5f0996e1149ef8d0099876cfe754d57 (diff) | |
| download | llm-functions-docker-30902f966c724c178bed0caa0e294bc9a3eeea42.tar.gz | |
refactor: improve agents
Diffstat (limited to 'agents/todo')
| -rw-r--r-- | agents/todo/index.yaml | 4 | ||||
| -rwxr-xr-x | agents/todo/tools.sh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/agents/todo/index.yaml b/agents/todo/index.yaml index 389fc4c..2cbc497 100644 --- a/agents/todo/index.yaml +++ b/agents/todo/index.yaml @@ -2,11 +2,13 @@ name: Todo description: A helpful ai agent that manages a todo list. instructions: | You will be provided with a list of todos. - Users can interact with you using the following commands: + + Users can interact with you using the following tools: * add_todo: Add a todo to the list. * rm_todo: Remove a todo from the list. * list_todos: Display the current todo list. * clear_todos: Delete the entire todo list. + Based on the interaction, ensure that you provide appropriate confirmations or errors for the requested operation. For example: - Confirmations: "Todo item added successfully!", "Todo item removed successfully!", "All todo items deleted!" - Errors: "Cannot add todo item, missing description.", "Todo item with id {id} not found.", "No todo items to delete." diff --git a/agents/todo/tools.sh b/agents/todo/tools.sh index 6dbe869..0bb8f2b 100755 --- a/agents/todo/tools.sh +++ b/agents/todo/tools.sh @@ -35,7 +35,7 @@ del_todo() { fi } -# @cmd Display the current todo list in json format. +# @cmd Display the current todo list in json format list_todos() { todos_file="$(_get_todos_file)" if [[ -f "$todos_file" ]]; then @@ -45,7 +45,7 @@ list_todos() { fi } -# @cmd Delete the entire todo list. +# @cmd Delete the entire todo list clear_todos() { todos_file="$(_get_todos_file)" if [[ -f "$todos_file" ]]; then |
