mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-31 10:23:27 +00:00
25 lines
713 B
Ruby
25 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 time is: {time}
|
|
PROMPT
|
|
end
|
|
end
|
|
end
|
|
end
|