Skip to content

Commit

Permalink
feat(devins-lang): add task creation design #100
Browse files Browse the repository at this point in the history
Add methods to create tasks and temporary task files for DevIns language processing.

- Added `createTasks` method to generate a list of DevInFile objects based on input and output.
- Added `createTempTaskFile` method to generate a temporary DevInFile for tasks.
  • Loading branch information
phodal committed Mar 22, 2024
1 parent b349e94 commit 53c09f6
Showing 1 changed file with 17 additions and 0 deletions.
@@ -1,5 +1,6 @@
package cc.unitmesh.devti.language.run.flow

import cc.unitmesh.devti.language.psi.DevInFile
import com.intellij.execution.process.ProcessEvent
import com.intellij.openapi.components.Service
import com.intellij.openapi.project.Project
Expand All @@ -17,4 +18,20 @@ class DevInsFlowProcessor(val project: Project) {
// stop
}
}

/**
* 1. We need to call LLM to get the task list
* 2. According to the input and output to decide the next step
*/
fun createTasks(): List<DevInFile> {
TODO()
}

/**
* Generate DevIns Task file by LLM
*/
fun createTempTaskFile(): DevInFile {
// TODO
return DevInFile.fromString(project, "")
}
}

0 comments on commit 53c09f6

Please sign in to comment.