| 53 | } |
| 54 | |
| 55 | QString AgentRoleController::currentRoleSystemPrompt() const |
| 56 | { |
| 57 | const QString lastRoleId = Settings::chatAssistantSettings().lastUsedRoleId(); |
| 58 | if (lastRoleId.isEmpty()) |
| 59 | return QString(); |
| 60 | |
| 61 | const Settings::AgentRole role = Settings::AgentRolesManager::loadRole(lastRoleId); |
| 62 | if (role.id.isEmpty()) |
| 63 | return QString(); |
| 64 | |
| 65 | return role.systemPrompt; |
| 66 | } |
| 67 | |
| 68 | void AgentRoleController::loadAvailableRoles() |
| 69 | { |
no test coverage detected