From 8b12e82fd9beaa83b7e2bfacd6615656ffa16333 Mon Sep 17 00:00:00 2001 From: Fu Cheng Date: Mon, 6 May 2024 18:32:19 +0800 Subject: [PATCH] fix tests --- .../core/AgentExecutionTest.kt | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 core/src/test/kotlin/io/github/alexcheng1982/llmagentbuilder/core/AgentExecutionTest.kt diff --git a/core/src/test/kotlin/io/github/alexcheng1982/llmagentbuilder/core/AgentExecutionTest.kt b/core/src/test/kotlin/io/github/alexcheng1982/llmagentbuilder/core/AgentExecutionTest.kt deleted file mode 100644 index 0a83229..0000000 --- a/core/src/test/kotlin/io/github/alexcheng1982/llmagentbuilder/core/AgentExecutionTest.kt +++ /dev/null @@ -1,22 +0,0 @@ -package io.github.alexcheng1982.llmagentbuilder.core - -import io.github.llmagentbuilder.core.config.AgentConfig -import io.github.llmagentbuilder.core.config.ConfiguredAgentFactory -import io.github.llmagentbuilder.core.config.LLMConfig -import io.github.alexcheng1982.springai.dashscope.DashscopeChatClient -import io.github.llmagentbuilder.core.ChatAgentRequest -import org.junit.jupiter.api.Tag -import org.junit.jupiter.api.Test -import kotlin.test.assertNotNull - -@Tag("native-image") -class AgentExecutionTest { - @Test - fun execute() { - val chatClient = DashscopeChatClient.createDefault() - val agentConfig = AgentConfig(LLMConfig(chatClient)) - val chatAgent = ConfiguredAgentFactory.createChatAgent(agentConfig) - val response = chatAgent.call(ChatAgentRequest("hello")) - assertNotNull(response.output) - } -} \ No newline at end of file