Skip to content

Commit

Permalink
chore: update for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 3, 2024
1 parent 78b712d commit 9e6a28e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions unit-distillation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ plugins {
}

dependencies {
implementation(projects.unitCore)
implementation(libs.clikt)
implementation(libs.serialization.json)

implementation(libs.cf.language)
implementation(libs.cf.connection)
implementation(libs.cf.openai)

implementation(libs.kaml)

// Logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fun main(args: Array<String>) = DistillateCommand().main(args)

class DistillateCommand : CliktCommand() {
override fun run() {
TODO("Not yet implemented")
// TODO: find some code smell and do refactor
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@ import cc.unitmesh.pick.worker.job.JobContext
import chapi.domain.core.CodeFunction


/**
* The `AfterBlockCodeTypedInsBuilder` class is responsible for building a list of code completion instructions
* after a block of code has been typed.
*
* @property context The job context associated with the code completion.
*/
class AfterBlockCodeTypedInsBuilder(val context: JobContext) : TypedInsBuilder {

/**
* Builds a list of code completion instructions based on the provided code function.
*
* @param function The code function for which the code completion instructions are to be built.
* @return A list of code completion instructions.
*/
override fun build(function: CodeFunction): List<CodeCompletionIns> {
val position = function.Position
val codeLines = context.job.codeLines
Expand Down

0 comments on commit 9e6a28e

Please sign in to comment.