0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-ai/lib/agents
Gabriel Grubba cc14e6e402
FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497)
Previously, AI agents had no way to suspend or silence users, and
approving any moderation tool action meant leaving the conversation for
the `/review` queue.

This change adds `suspend_user`/`silence_user` tools that always require
moderator approval, and lets moderators approve or reject those actions
from an inline review card right in the bot conversation — credited to
the approving moderator (not the bot) in the staff action log — instead
of switching to the `/review` queue.


Demo of this feature:



https://github.com/user-attachments/assets/b9605511-e53d-483d-b435-b212694cdf53



https://github.com/user-attachments/assets/383bda5d-93ee-4758-a51e-6162ea0d57ee

---------

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2026-07-10 10:59:51 -03:00
..
artifact_update_strategies DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
tool_runner FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
tools FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
admin_dashboard_highlights.rb DEV: Default disable some agents (#41076) 2026-06-22 16:38:15 +08:00
agent.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
artist.rb
bot.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
bot_context.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
chat_thread_titler.rb
concept_deduplicator.rb
concept_finder.rb
concept_matcher.rb
content_creator.rb
creative.rb FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
custom_prompt.rb
designer.rb
discourse_helper.rb FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
discover.rb
emotion_classifier.rb FEATURE: Add agent-backed sentiment classification (#40136) 2026-05-26 10:32:54 -03:00
forum_researcher.rb FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
general.rb FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
github_helper.rb
image_captioner.rb
locale_detector.rb DEV: Also pass configured supported locales into the prompt for language detection (#40029) 2026-05-14 21:15:26 +08:00
markdown_table_generator.rb
post_illustrator.rb
post_raw_translator.rb FIX: Seed translator agent examples as conversation turns (#41526) 2026-07-08 11:47:19 -03:00
proofreader.rb FIX: Don't change quoted content whe proofreading (#38934) 2026-03-27 15:15:25 -03:00
report_runner.rb
researcher.rb
sentiment_classifier.rb FEATURE: Add agent-backed sentiment classification (#40136) 2026-05-26 10:32:54 -03:00
settings_explorer.rb
short_summarizer.rb
short_text_translator.rb FIX: Seed translator agent examples as conversation turns (#41526) 2026-07-08 11:47:19 -03:00
smart_dates.rb
spam_detector.rb
sql_helper.rb FEATURE: add AI agent thinking effort (#41280) 2026-07-01 17:03:19 -03:00
summarizer.rb
titles_generator.rb
tool_runner.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
topic_title_translator.rb FIX: Seed translator agent examples as conversation turns (#41526) 2026-07-08 11:47:19 -03:00
translator.rb
tutor.rb
web_artifact_creator.rb