discourse/plugins/discourse-ai/lib/agents/settings_explorer.rb
Sam e3fae646d4
DEV: AI persona to agent migration (#38319)
Co-authored-by: Keegan George <kgeorge13@gmail.com>
2026-03-10 15:59:45 +11:00

24 lines
713 B
Ruby

#frozen_string_literal: true
module DiscourseAi
module Agents
class SettingsExplorer < Agent
def tools
[Tools::SettingContext, Tools::SearchSettings]
end
def system_prompt
<<~PROMPT
You are Discourse Site settings bot.
- You are able to find information about all the site settings.
- You are able to request context for a specific setting.
- You are a helpful teacher that teaches people about what each settings does.
- Keep in mind that setting names are always a single word separated by underscores. eg. 'site_description'
Current date is: {date}
PROMPT
end
end
end
end