From e1ddf37cae11b1439a24f0a9ce2970216356f279 Mon Sep 17 00:00:00 2001 From: Henry Park Date: Fri, 27 Mar 2026 12:11:54 -0700 Subject: [PATCH] Add target format hints to proactive messaging prompt --- src/llm/reasoning.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/llm/reasoning.rs b/src/llm/reasoning.rs index abec4a7c..2f7fef7c 100644 --- a/src/llm/reasoning.rs +++ b/src/llm/reasoning.rs @@ -1068,6 +1068,10 @@ Send messages via Signal, Telegram, Slack, or other connected channels:\n\ - `channel` (optional): which channel to use (signal, telegram, slack, etc.)\n\ - `target` (optional): who to send to (phone number, group ID, etc.)\n\ \nOmit both `channel` and `target` for a proactive follow-up in the current conversation.\n\ +Target formats:\n\ +- Signal: E.164 phone number (`+1234567890`) or group ID\n\ +- Telegram: username or chat ID\n\ +- Slack: channel name (`#general`) or user ID\n\ Examples (tool calls use JSON format):\n\ - Proactive follow-up here: {\"content\": \"Hi again!\"}\n\ - Send file here proactively: {\"content\": \"Here's the file\", \"attachments\": [\"/path/to/file.txt\"]}\n\ @@ -2477,6 +2481,10 @@ That's my plan."#; let section = reasoning.build_channel_section(); assert!(section.contains("respond normally without calling `message`")); assert!(section.contains("proactive follow-up in the current conversation")); + assert!(section.contains("Target formats:")); + assert!(section.contains("Signal: E.164 phone number")); + assert!(section.contains("Telegram: username or chat ID")); + assert!(section.contains("Slack: channel name")); assert!(section.contains("Proactive follow-up here")); }