diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-12 21:27:57 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-12 21:27:57 -0500 |
| commit | 49f6fe47e19c42b87615dd2d75e53f43331e00ab (patch) | |
| tree | 2ea2b6ad281fc4f2890eb29c134da6d32d049a7f /Omni/Agent/Telegram.hs | |
| parent | fd1c5c2bda7831c6cf329f4dc272064a352609e1 (diff) | |
Add todo tools with due dates
- Omni/Agent/Tools/Todos.hs: todo_add, todo_list, todo_complete, todo_delete
- Supports optional due dates in YYYY-MM-DD or YYYY-MM-DD HH:MM format
- Lists can filter by pending, all, or overdue
- Add todos table to Memory.hs schema
- Wire into Telegram bot
Diffstat (limited to 'Omni/Agent/Telegram.hs')
| -rw-r--r-- | Omni/Agent/Telegram.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs index 9142b4a..f1c71e6 100644 --- a/Omni/Agent/Telegram.hs +++ b/Omni/Agent/Telegram.hs @@ -70,6 +70,7 @@ import qualified Omni.Agent.Provider as Provider import qualified Omni.Agent.Tools.Calendar as Calendar import qualified Omni.Agent.Tools.Notes as Notes import qualified Omni.Agent.Tools.Pdf as Pdf +import qualified Omni.Agent.Tools.Todos as Todos import qualified Omni.Agent.Tools.WebSearch as WebSearch import qualified Omni.Test as Test import System.Environment (lookupEnv) @@ -702,7 +703,13 @@ handleAuthorizedMessage tgConfig provider engineCfg msg uid userName chatId = do Calendar.calendarAddTool, Calendar.calendarSearchTool ] - tools = memoryTools <> searchTools <> pdfTools <> notesTools <> calendarTools + todoTools = + [ Todos.todoAddTool uid, + Todos.todoListTool uid, + Todos.todoCompleteTool uid, + Todos.todoDeleteTool uid + ] + tools = memoryTools <> searchTools <> pdfTools <> notesTools <> calendarTools <> todoTools let agentCfg = Engine.defaultAgentConfig |
