| 1131 | } |
| 1132 | |
| 1133 | QString ChatRootView::getRuleContent(int index) |
| 1134 | { |
| 1135 | if (index < 0 || index >= m_activeRules.size()) |
| 1136 | return QString(); |
| 1137 | |
| 1138 | return PluginLLMCore::RulesLoader::loadRuleFileContent( |
| 1139 | m_activeRules[index].toMap()["filePath"].toString()); |
| 1140 | } |
| 1141 | |
| 1142 | void ChatRootView::refreshRules() |
| 1143 | { |