Skip to content

Commit f75ae3f

Browse files
committed
Fix AIAgentMemoryTest
1 parent f1ade22 commit f75ae3f

File tree

1 file changed

+7
-7
lines changed
  • agents/agents-features/agents-features-memory/src/jvmTest/kotlin/ai/koog/agents/memory

1 file changed

+7
-7
lines changed

agents/agents-features/agents-features-memory/src/jvmTest/kotlin/ai/koog/agents/memory/AIAgentMemoryTest.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class AIAgentMemoryTest {
9393
every { response.content } returns "Test fact"
9494

9595
coEvery {
96-
promptExecutor.execute(any(), any(), any())
96+
promptExecutor.execute(any(), any())
9797
} returns listOf(response)
9898

9999
coEvery {
@@ -174,7 +174,7 @@ class AIAgentMemoryTest {
174174
every { response.content } returns "OK"
175175

176176
coEvery {
177-
promptExecutor.execute(any(), any(), any())
177+
promptExecutor.execute(any(), any())
178178
} returns listOf(response)
179179

180180
val llm = AIAgentLLMContext(
@@ -285,7 +285,7 @@ class AIAgentMemoryTest {
285285
val response = mockk<Message.Response>()
286286
every { response.content } returns "Test fact"
287287
coEvery {
288-
promptExecutor.execute(any(), any(), any())
288+
promptExecutor.execute(any(), any())
289289
} returns listOf(response)
290290

291291
// Mock memory feature to capture saved facts
@@ -366,7 +366,7 @@ class AIAgentMemoryTest {
366366

367367
val capturedModels = mutableListOf<LLModel>()
368368
coEvery {
369-
promptExecutor.execute(any(), capture(capturedModels), any())
369+
promptExecutor.execute(any(), capture(capturedModels))
370370
} returns listOf(response)
371371

372372
coEvery {
@@ -426,7 +426,7 @@ class AIAgentMemoryTest {
426426
}
427427

428428
coVerify(exactly = 1) {
429-
promptExecutor.execute(any(), customModel, any())
429+
promptExecutor.execute(any(), customModel)
430430
}
431431
}
432432

@@ -454,7 +454,7 @@ class AIAgentMemoryTest {
454454

455455
val capturedModels = mutableListOf<LLModel>()
456456
coEvery {
457-
promptExecutor.execute(any(), capture(capturedModels), any())
457+
promptExecutor.execute(any(), capture(capturedModels))
458458
} returns listOf(response)
459459

460460
coEvery {
@@ -541,7 +541,7 @@ class AIAgentMemoryTest {
541541
every { response.content } returns "OK"
542542

543543
coEvery {
544-
promptExecutor.execute(any(), any(), any())
544+
promptExecutor.execute(any(), any())
545545
} returns listOf(response)
546546

547547
val llm = AIAgentLLMContext(

0 commit comments

Comments
 (0)