MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / currentRoleSystemPrompt

Method currentRoleSystemPrompt

ChatView/AgentRoleController.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55QString 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
68void AgentRoleController::loadAvailableRoles()
69{

Callers 1

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected