Skip to content

Commit 0fbdc91

Browse files
committed
feat(chat-coding-service): refactor variable template compiler and add support for custom agent state #51
Remove dependency on VariableTemplateCompiler and introduce support for CustomAgentState in ChatCodingService. This refactoring simplifies the codebase and improves the flexibility of the chat coding service to handle custom agent states.
1 parent 418cc29 commit 0fbdc91

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/main/kotlin/cc/unitmesh/devti/actions/console/FixThisAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FixThisAction : ChatBaseAction() {
3232
service.handlePromptAndResponse(panel, object : ContextPrompter() {
3333
override fun displayPrompt(): String = prompt?.displayText ?: ""
3434
override fun requestPrompt(): String = prompt?.requestText ?: ""
35-
}, null, false)
35+
}, null, true)
3636
}
3737
}
3838
}

src/main/kotlin/cc/unitmesh/devti/gui/SendToWindow.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fun sendToChatWindow(
2020
logger<ChatCodingService>().warn("Tool window not found")
2121
return
2222
}
23+
2324
val contentManager = toolWindowManager.contentManager
2425
val contentPanel = ChatCodingPanel(chatCodingService, toolWindowManager.disposable)
2526
val content = contentManager.factory.createContent(contentPanel, chatCodingService.getLabel(), false)

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import cc.unitmesh.devti.counit.CustomAgentChatProcessor
77
import cc.unitmesh.devti.counit.configurable.customAgentSetting
88
import cc.unitmesh.devti.counit.model.CustomAgentState
99
import cc.unitmesh.devti.custom.compile.CustomVariable
10-
import cc.unitmesh.devti.custom.compile.VariableTemplateCompiler
1110
import cc.unitmesh.devti.llms.LlmFactory
1211
import cc.unitmesh.devti.util.parser.PostCodeProcessor
1312
import cc.unitmesh.devti.provider.ContextPrompter

0 commit comments

Comments
 (0)