Agents: harden message tool sends

This commit is contained in:
Chris Taylor
2026-01-11 10:41:44 +00:00
committed by Peter Steinberger
parent 55da6ca449
commit 3da3e201de
3 changed files with 97 additions and 55 deletions

View File

@@ -313,6 +313,7 @@ export function buildAgentSystemPrompt(params: {
"",
"### message tool",
"- Use `message` for proactive sends + provider actions (polls, reactions, etc.).",
"- For `action=send`, include `to` and `message`.",
"- If multiple providers are configured, pass `provider` (whatsapp|telegram|discord|slack|signal|imessage|msteams).",
telegramInlineButtonsEnabled
? "- Telegram: inline buttons supported. Use `action=send` with `buttons=[[{text,callback_data}]]` (callback_data routes back as a user message)."