chore(damn): detekt, build, tests, formatting
fixed detekt issues where possible. fixed disttar failing build because tools is added twice in the server module. added workflowId where required. fixed some tests not being recognized because of runBlocking without explicit return type. formatting + imports.
This commit is contained in:
+8
-8
@@ -32,12 +32,12 @@ private data class ProducesEntry(
|
||||
private data class StageSection(
|
||||
val id: String = "",
|
||||
val prompt: String? = null,
|
||||
@JsonProperty("system_prompt") val systemPrompt: String? = null,
|
||||
@param:JsonProperty("system_prompt") val systemPrompt: String? = null,
|
||||
val produces: List<ProducesEntry> = emptyList(),
|
||||
val needs: List<String> = emptyList(),
|
||||
@JsonProperty("allowed_tools") val allowedTools: List<String> = emptyList(),
|
||||
@JsonProperty("token_budget") val tokenBudget: Int = 4096,
|
||||
@JsonProperty("max_retries") val maxRetries: Int = 3,
|
||||
@param:JsonProperty("allowed_tools") val allowedTools: List<String> = emptyList(),
|
||||
@param:JsonProperty("token_budget") val tokenBudget: Int = 4096,
|
||||
@param:JsonProperty("max_retries") val maxRetries: Int = 3,
|
||||
)
|
||||
|
||||
// condition fields flattened into the transition row
|
||||
@@ -45,10 +45,10 @@ private data class TransitionSection(
|
||||
val id: String = "",
|
||||
val from: String = "",
|
||||
val to: String = "",
|
||||
@JsonProperty("condition_type") val conditionType: String = "",
|
||||
@JsonProperty("condition_artifact_id") val conditionArtifactId: String? = null,
|
||||
@JsonProperty("condition_key") val conditionKey: String? = null,
|
||||
@JsonProperty("condition_value") val conditionValue: String? = null,
|
||||
@param:JsonProperty("condition_type") val conditionType: String = "",
|
||||
@param:JsonProperty("condition_artifact_id") val conditionArtifactId: String? = null,
|
||||
@param:JsonProperty("condition_key") val conditionKey: String? = null,
|
||||
@param:JsonProperty("condition_value") val conditionValue: String? = null,
|
||||
)
|
||||
|
||||
private const val TERMINAL = "done"
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@ import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.assertThrows
|
||||
import java.nio.file.Files
|
||||
import kotlin.io.path.writeText
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertContains
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class FileSystemPromptLoaderTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user