Commit 79bfab1
committed
refactor(chat): remove get_friends action and auto-include friends list in prompt
Remove the GetFriendsAction class and its corresponding handler, replacing
the action-based retrieval with automatic inclusion of friends list data
in the prompt template. This simplifies the available actions for the AI
by providing friend information as static context rather than requiring
an explicit action call.1 parent 19a9664 commit 79bfab1
File tree
2 files changed
+8
-13
lines changed- src
- lang/zh_hans
- plugins/nonebot_plugin_chat/core
2 files changed
+8
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | 1348 | | |
1357 | 1349 | | |
1358 | 1350 | | |
| |||
1373 | 1365 | | |
1374 | 1366 | | |
1375 | 1367 | | |
| 1368 | + | |
| 1369 | + | |
1376 | 1370 | | |
1377 | 1371 | | |
1378 | 1372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
261 | | - | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
0 commit comments