Commit 496b8f6
committed
feat: enhance WhatsApp interface with new tools, security hardening, and tests
- Rewrite WhatsAppTools with 9 sync-only tools and enable/disable flags
- Add send_reply_buttons, send_list_message, send_image, send_document,
send_location, send_reaction, and mark_as_read tools
- Harden security: remove dev mode bypass, add replay protection (5-min window)
- Handle interactive replies, location, reaction, contacts, sticker messages
- Replace requests with httpx in utils
- Add Pydantic response models and operation IDs to router
- Add 48 unit tests covering tools, security, and router1 parent d2e7813 commit 496b8f6
File tree
8 files changed
+1334
-414
lines changed- libs/agno
- agno
- os/interfaces/whatsapp
- tools
- utils
- tests/unit
- os
- interfaces
- routers
- tools
8 files changed
+1334
-414
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 11 | | |
20 | | - | |
21 | 12 | | |
22 | | - | |
23 | | - | |
| 13 | + | |
24 | 14 | | |
25 | 15 | | |
26 | 16 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
31 | 21 | | |
32 | 22 | | |
33 | 23 | | |
34 | 24 | | |
| 25 | + | |
35 | 26 | | |
36 | 27 | | |
37 | | - | |
| 28 | + | |
38 | 29 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
43 | 34 | | |
44 | 35 | | |
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
49 | 40 | | |
50 | | - | |
51 | 41 | | |
52 | 42 | | |
53 | 43 | | |
54 | | - | |
55 | 44 | | |
0 commit comments