Tool Approval (F1)
Interactive approval gate for tool execution via Telegram inline keyboards.
How It Works
- Agent wants to execute a tool
- Gateway sends a prompt with
[✅ Approve] [❌ Deny]inline buttons - User taps a button → Telegram sends a
callback_query - The query is routed to a per-tool-call
oneshotchannel - Agent proceeds (approve) or skips with a denial message (deny)
- Timeout → treated as denial
Config
[gateway]
tool_approval = true
Implementation
kerux-core/src/approval.rs— approval gate managercallback_queryhandling inTelegramAdapter::poll_updatesanswerCallbackQueryack so the button press registers in the Telegram UI