tools finally work

This commit is contained in:
Alexander Davydov 2026-03-17 16:32:16 +03:00
parent 4b10bac423
commit b7a637f189
2 changed files with 2 additions and 1 deletions

View File

@ -554,6 +554,7 @@ describe("buildAgentSystemPrompt", () => {
expect(prompt).toContain("message: Send messages and channel actions");
expect(prompt).toContain("### message tool");
expect(prompt).toContain("For `action=send`, include `target` and `message`.");
expect(prompt).toContain(`respond with ONLY: ${SILENT_REPLY_TOKEN}`);
});

View File

@ -140,7 +140,7 @@ function buildMessagingSection(params: {
"",
"### message tool",
"- Use `message` for proactive sends + channel actions (polls, reactions, etc.).",
"- For `action=send`, include `to` and `message`.",
"- For `action=send`, include `target` and `message`.",
`- If multiple channels are configured, pass \`channel\` (${params.messageChannelOptions}).`,
`- If you use \`message\` (\`action=send\`) to deliver your user-visible reply, respond with ONLY: ${SILENT_REPLY_TOKEN} (avoid duplicate replies).`,
params.inlineButtonsEnabled