File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
agents/agents-ext/src/commonTest/kotlin/ai/koog/agents/ext/agent Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ import ai.koog.prompt.dsl.prompt
12
12
import ai.koog.prompt.llm.OllamaModels
13
13
import ai.koog.prompt.message.Message
14
14
import kotlinx.coroutines.test.runTest
15
- import kotlin.also
16
15
import kotlin.test.Test
17
16
import kotlin.test.assertEquals
18
17
import kotlin.test.assertFailsWith
19
18
import kotlin.test.assertFalse
19
+ import kotlin.test.assertIs
20
20
import kotlin.test.assertNotEquals
21
21
import kotlin.test.assertTrue
22
22
@@ -440,8 +440,11 @@ class SubgraphWithRetryTest {
440
440
val testStrategy = strategy(" test-strategy" ) {
441
441
val retrySubgraph by subgraphWithRetry(
442
442
condition = { result ->
443
- if (result == SUCCESS ) ConditionResult .Approve
444
- else ConditionResult .Reject (" Retry ${++ retries} " )
443
+ if (result == SUCCESS ) {
444
+ ConditionResult .Approve
445
+ } else {
446
+ ConditionResult .Reject (" Retry ${++ retries} " )
447
+ }
445
448
},
446
449
conditionDescription = " Condition description" ,
447
450
maxRetries = numRetries,
You can’t perform that action at this time.
0 commit comments