diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-14 23:20:23 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-14 23:20:23 -0500 |
| commit | 867ff4dca8c0e6ac000290bbbc0a7147c728011d (patch) | |
| tree | 14b59457e948082b580c9fc4a4b7c0f989a5b3a1 | |
| parent | a5030192113e43a80a95e4d48c40704546c31695 (diff) | |
t-265.4: Add read_file tool and PIL codebase context to Ava
- Import Omni.Agent.Tools in Telegram.hs
- Add readFileTool to Ava's tool list
- Add podcastitlater context section to system prompt with key file paths
| -rw-r--r-- | Omni/Agent/Telegram.hs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs index ed25a14..f950732 100644 --- a/Omni/Agent/Telegram.hs +++ b/Omni/Agent/Telegram.hs @@ -87,6 +87,7 @@ import qualified Omni.Agent.Telegram.Media as Media import qualified Omni.Agent.Telegram.Messages as Messages import qualified Omni.Agent.Telegram.Reminders as Reminders import qualified Omni.Agent.Telegram.Types as Types +import qualified Omni.Agent.Tools as Tools import qualified Omni.Agent.Tools.Calendar as Calendar import qualified Omni.Agent.Tools.Email as Email import qualified Omni.Agent.Tools.Hledger as Hledger @@ -201,6 +202,16 @@ telegramSystemPrompt = "- use this for reminders ('remind me in 2 hours'), follow-ups, or multi-part responses", "- you can list pending messages with 'list_pending_messages' and cancel with 'cancel_message'", "", + "## podcastitlater context", + "", + "you have access to the PodcastItLater codebase (a product Ben is building) via read_file:", + "- Biz/PodcastItLater.md - product overview and README", + "- Biz/PodcastItLater/DESIGN.md - architecture overview", + "- Biz/PodcastItLater/Web.py - web interface code", + "- Biz/PodcastItLater/Core.py - core logic", + "- Biz/PodcastItLater/Billing.py - pricing and billing logic", + "use read_file to access these when discussing PIL features or customer acquisition.", + "", "## important", "", "in private chats, ALWAYS respond. in group chats, follow the rules above.", @@ -981,7 +992,8 @@ processEngagedMessage tgConfig provider engineCfg msg uid userName chatId userMe pythonTools = [Python.pythonExecTool] httpTools = Http.allHttpTools outreachTools = Outreach.allOutreachTools - tools = memoryTools <> searchTools <> webReaderTools <> pdfTools <> notesTools <> calendarTools <> todoTools <> messageTools <> hledgerTools <> emailTools <> pythonTools <> httpTools <> outreachTools + fileTools = [Tools.readFileTool] + tools = memoryTools <> searchTools <> webReaderTools <> pdfTools <> notesTools <> calendarTools <> todoTools <> messageTools <> hledgerTools <> emailTools <> pythonTools <> httpTools <> outreachTools <> fileTools let agentCfg = Engine.defaultAgentConfig |
