discourse-ai/lib
Sam e15984029d
FEATURE: allow tools to amend personas (#1250)
Add API methods to AI tools for reading and updating personas, enabling
more flexible AI workflows. This allows custom tools to:

- Fetch persona information through discourse.getPersona()
- Update personas with modified settings via discourse.updatePersona()
- Also update using persona.update()

These APIs enable new use cases like "trainable" moderation bots, where
users with appropriate permissions can set and refine moderation rules
through direct chat interactions, without needing admin panel access.

Also adds a special API scope which allows people to lean on API
for similar actions

Additionally adds a rather powerful hidden feature can allow custom tools
to inject content into the context unconditionally it can be used for memory and similar features
2025-04-09 15:48:25 +10:00
..
ai_bot REFACTOR: Move personas into its own module. (#1233) 2025-03-31 14:42:33 -03:00
ai_helper FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
ai_moderation FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
automation FEATURE: allow to send LLM reports to groups (#1246) 2025-04-07 15:31:30 +10:00
completions FIX: maintain newest uploads correctly when constructing context (#1242) 2025-04-02 10:09:38 -03:00
configuration FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
database DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
discord/bot FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
embeddings FIX: Ensure that we shutdown thread pool (#1207) 2025-03-21 11:08:36 +08:00
inference DEV: Build sentiment clients outside of promises (#1117) 2025-02-06 13:11:10 -03:00
personas FEATURE: allow tools to amend personas (#1250) 2025-04-09 15:48:25 +10:00
sentiment FIX: Ensure category badging present in sentiment reports (#1222) 2025-03-26 12:37:41 -07:00
summarization FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
tasks DEV: rake task to populate sentiment in dev env (#1176) 2025-03-10 14:21:00 -03:00
tokenizer FEATURE: Gemini Tokenizer (#1088) 2025-01-23 18:20:35 -03:00
utils FIX: various issues with llm and triage management (#1186) 2025-03-12 18:32:02 +11:00
automation.rb FEATURE: Add persona-based replies and whisper support to LLM triage (#1170) 2025-03-06 17:18:15 +11:00
embeddings.rb DEV: Robust check for embeddings enabled (#1116) 2025-02-06 12:18:55 -03:00
engine.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
guardian_extensions.rb FIX: Restore gists previous group access behavior. (#1247) 2025-04-07 12:04:30 -03:00
multisite_hash.rb FIX: properly cache user locale (#593) 2024-04-26 09:28:35 -03:00
post_extensions.rb FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
summarization.rb FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
topic_extensions.rb PERF: Preload only gists when including summaries in topic list (#948) 2024-11-25 12:24:02 -03:00