Commit 8eaceae
committed
feat: expose Discord channel topics to agent context
Discord channels have topic descriptions that carry meaningful context
for the agent. Currently only server name and channel name are passed
through — the topic is discarded.
Add CHANNEL_TOPIC metadata key, extract guild_channel.topic in the
Discord adapter, thread it through render_conversation_context(), and
render it in the conversation context template when present.
When no topic is set, nothing additional is rendered. Zero breaking
changes — purely additive.1 parent 955efd3 commit 8eaceae
6 files changed
Lines changed: 27 additions & 0 deletions
File tree
- prompts/en/fragments
- src
- agent
- api
- messaging
- prompts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1300 | 1304 | | |
1301 | 1305 | | |
1302 | 1306 | | |
1303 | 1307 | | |
1304 | 1308 | | |
| 1309 | + | |
1305 | 1310 | | |
1306 | 1311 | | |
1307 | 1312 | | |
| |||
1800 | 1805 | | |
1801 | 1806 | | |
1802 | 1807 | | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1803 | 1812 | | |
1804 | 1813 | | |
1805 | 1814 | | |
1806 | 1815 | | |
1807 | 1816 | | |
| 1817 | + | |
1808 | 1818 | | |
1809 | 1819 | | |
1810 | 1820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
939 | 948 | | |
940 | 949 | | |
941 | 950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
0 commit comments