Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/AgentType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ enum class AgentType {
* Artifact mode - generate reversible, executable artifacts (HTML/JS, Python scripts)
* Similar to Claude's Artifacts system
*/
ARTIFACT;
ARTIFACT,

/**
* Architect fitness function mode - evaluates code against measurable fitness functions
* to verify correctness beyond plausibility (inspired by ThoughtWorks fitness function-driven development)
*/
ARCHITECT_FITNESS;

fun getDisplayName(): String = when (this) {
LOCAL_CHAT -> "Chat"
Expand All @@ -62,6 +68,7 @@ enum class AgentType {
REMOTE -> "Remote"
WEB_EDIT -> "WebEdit"
ARTIFACT -> "Artifact"
ARCHITECT_FITNESS -> "Fitness"
}

companion object {
Expand All @@ -75,6 +82,7 @@ enum class AgentType {
"chatdb", "database" -> CHAT_DB
"webedit", "web" -> WEB_EDIT
"artifact", "unit" -> ARTIFACT
"fitness", "architect-fitness", "fitnessfunctions" -> ARCHITECT_FITNESS
else -> LOCAL_CHAT
}
}
Expand Down
Loading