discourse/plugins/discourse-ai/lib/agents/tools
Rafael dos Santos Silva 93ed2ad08e
FEATURE: Add review queue tools for AI agents (#38928)
## Summary

- Adds `list_reviewables` tool: lists pending review queue items with
filtering by type, age (min/max hours), category, and status. Returns
item details including scores, target info, and available actions.
- Adds `perform_reviewable_action` tool: acts on review queue items
(agree, disagree, ignore, approve, reject, etc.). Validates actions
against what's available for the item and user.
- `perform_reviewable_action` does **not** use `requires_approval?`
since that would create a circular dependency (approval goes to the
review queue itself).

---------

Co-authored-by: Keegan George <kgeorge13@gmail.com>
2026-03-30 14:42:54 -03:00
..
assign.rb
close_topic.rb
create_artifact.rb
create_image.rb
custom.rb
db_schema.rb
delete_topic.rb
discourse_meta_search.rb
edit_category.rb
edit_image.rb
edit_post.rb
edit_tags.rb
flag_post.rb SECURITY: escape LLM triage output in review flag reasons 2026-03-19 15:21:28 +00:00
github_diff.rb
github_file_content.rb
github_search_code.rb
github_search_files.rb
google.rb
grant_badge.rb
image.rb
javascript_evaluator.rb
list_categories.rb
list_reviewables.rb FEATURE: Add review queue tools for AI agents (#38928) 2026-03-30 14:42:54 -03:00
list_tags.rb
lock_post.rb
mark_as_solved.rb
mcp.rb FEATURE: Add MCP server integration to AI agents (#38706) 2026-03-25 17:32:27 +11:00
move_posts.rb
option.rb
perform_reviewable_action.rb FEATURE: Add review queue tools for AI agents (#38928) 2026-03-30 14:42:54 -03:00
random_picker.rb
read.rb
read_artifact.rb
researcher.rb
search.rb
search_settings.rb
search_uploaded_documents.rb DEV: Expose agent RAG as a standard tool (#38691) 2026-03-24 10:26:13 -03:00
set_slow_mode.rb
set_topic_timer.rb
setting_context.rb
summarize.rb
time.rb
tool.rb DEV: Expose agent RAG as a standard tool (#38691) 2026-03-24 10:26:13 -03:00
unlist_topic.rb
update_artifact.rb
web_browser.rb