discourse-ai/lib/personas/settings_explorer.rb
Roman Rizzi 30242a27e6
REFACTOR: Move personas into its own module. (#1233)
This change moves all the personas code into its own module. We want to treat them as a building block features can built on top of, same as `Completions::Llm`.

The code to title a message was moved from `Bot` to `Playground`.
2025-03-31 14:42:33 -03:00

25 lines
717 B
Ruby

#frozen_string_literal: true
module DiscourseAi
module Personas
class SettingsExplorer < Persona
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