Skip to content

Commit efb06f3

Browse files
committed
feat(test): add support for custom RAG context #195
Enable custom RAG context in test code generation task.
1 parent 8b7db54 commit efb06f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/cc/unitmesh/devti/intentions/action/task/TestCodeGenTask.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class TestCodeGenTask(val request: TestCodeGenRequest) :
193193
}
194194

195195
private fun getRAGContext(testPromptContext: TestCodeGenContext): String {
196+
if (!project.customAgentSetting.enableCustomRag) return ""
197+
196198
val agent = loadRagApp() ?: return ""
197199

198200
val query = testPromptContext.sourceCode

0 commit comments

Comments
 (0)