Akram Bensalem
05/24/2025, 7:41 AMval executor = simpleOllamaAIExecutor()
val systemPrompt = "You are a helpful assistant. Answer user questions concisely."
val model: LLModel = LLModel(
provider = LLMProvider.OpenRouter,
id = "deepseek-r1:7b",
capabilities = listOf(LLMCapability.Schema.JSON.Simple)
)
val agent: AIAgent = simpleSingleRunAgent(
executor = executor,
llmModel = model,
systemPrompt = systemPrompt
)
2025-05-24T09:39:55.893+02:00 ERROR 14781 --- [PhDGTnumGoData] [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Async processing failed: java.lang.NoSuchMethodError: 'kotlinx.coroutines.CoroutineDispatcher kotlinx.coroutines.CoroutineDispatcher.limitedParallelism$default(kotlinx.coroutines.CoroutineDispatcher, int, java.lang.String, int, java.lang.Object)'] with root cause
java.lang.NoSuchMethodError: 'kotlinx.coroutines.CoroutineDispatcher kotlinx.coroutines.CoroutineDispatcher.limitedParallelism$default(kotlinx.coroutines.CoroutineDispatcher, int, java.lang.String, int, java.lang.Object)'
at ai.koog.agents.core.feature.AIAgentPipeline.<init>(AIAgentPipeline.kt:49) ~[agents-core-jvm-0.1.0.jar:0.1.0]
at ai.koog.agents.core.agent.AIAgent.<init>(AIAgent.kt:104) ~[agents-core-jvm-0.1.0.jar:0.1.0]
at ai.koog.agents.ext.agent.AIAgentExtKt.simpleSingleRunAgent(AIAgentExt.kt:87) ~[agents-ext-jvm-0.1.0.jar:0.1.0]
at ai.koog.agents.ext.agent.AIAgentExtKt.simpleSingleRunAgent$default(AIAgentExt.kt:69) ~[agents-ext-jvm-0.1.0.jar:0.1.0]
at fr.gtnum.imt.phdgtnumgodata.service.AIAgentService.hello$suspendImpl(AIAgentService.kt:25) ~[main/:na]
at fr.gtnum.imt.phdgtnumgodata.service.AIAgentService.hello(AIAgentService.kt) ~[main/:na]
at fr.gtnum.imt.phdgtnumgodata.controller.AIAgentController.hello$suspendImpl(AIAgentController.kt:27) ~[main/:na]
at fr.gtnum.imt.phdgtnumgodata.controller.AIAgentController.hello(AIAgentController.kt) ~[main/:na]
Didier Villevalois
05/24/2025, 7:42 AMDidier Villevalois
05/24/2025, 7:48 AMkotlinx-coroutines
version. One that has the limitedParallelism
feature? It looks to me that you have either a classloader problem due to Spring or incorrect versions of Kotlin and Kotlinx librariesAkram Bensalem
05/24/2025, 8:01 AM1.8.1
Didier Villevalois
05/24/2025, 8:15 AMDidier Villevalois
05/24/2025, 8:17 AMAkram Bensalem
05/24/2025, 8:18 AMPavel Gorgulov
05/26/2025, 7:29 AMsimpleOpenRouterExecutor
insteadAkram Bensalem
05/26/2025, 8:45 AMDidier Villevalois
05/26/2025, 9:11 AM