From 0bff53d2ebbbb8f471bdb85a21a6886eb603f755 Mon Sep 17 00:00:00 2001 From: YunKui Lu Date: Sat, 16 May 2026 18:22:50 +0800 Subject: [PATCH] refactor(examples): remove Lombok from graceful-shutdown module Replace @Slf4j annotation with manual Logger declaration and remove Lombok dependency from pom.xml. --- agentscope-examples/graceful-shutdown/pom.xml | 5 ----- .../io/agentscope/examples/shutdown/e2e/AgentService.java | 6 ++++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/agentscope-examples/graceful-shutdown/pom.xml b/agentscope-examples/graceful-shutdown/pom.xml index 4c44cba67..6a1db3452 100644 --- a/agentscope-examples/graceful-shutdown/pom.xml +++ b/agentscope-examples/graceful-shutdown/pom.xml @@ -67,11 +67,6 @@ org.springframework.boot spring-boot-starter-web - - - org.projectlombok - lombok - diff --git a/agentscope-examples/graceful-shutdown/src/main/java/io/agentscope/examples/shutdown/e2e/AgentService.java b/agentscope-examples/graceful-shutdown/src/main/java/io/agentscope/examples/shutdown/e2e/AgentService.java index 681180d1e..32f56336b 100644 --- a/agentscope-examples/graceful-shutdown/src/main/java/io/agentscope/examples/shutdown/e2e/AgentService.java +++ b/agentscope-examples/graceful-shutdown/src/main/java/io/agentscope/examples/shutdown/e2e/AgentService.java @@ -36,7 +36,8 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.stream.Collectors; -import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -45,10 +46,11 @@ /** * Service for managing agent instances and chat operations. */ -@Slf4j @Service public class AgentService { + private static final Logger log = LoggerFactory.getLogger(AgentService.class); + private static final String DATA_ANALYZE_SYS_PROMPT = "You are a data analysis assistant. " + "When asked to analyze a dataset, follow these steps in order:\n"