Skip to content

Commit

Permalink
feat(test): add support for custom RAG context #195
Browse files Browse the repository at this point in the history
Enable custom RAG context in test code generation task.
  • Loading branch information
phodal committed May 29, 2024
1 parent 8b7db54 commit efb06f3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ class TestCodeGenTask(val request: TestCodeGenRequest) :
}

private fun getRAGContext(testPromptContext: TestCodeGenContext): String {
if (!project.customAgentSetting.enableCustomRag) return ""

val agent = loadRagApp() ?: return ""

val query = testPromptContext.sourceCode
Expand Down

0 comments on commit efb06f3

Please sign in to comment.