pom and tool

This commit is contained in:
2025-12-29 21:14:16 +03:00
parent 2b788a4f79
commit c8a24630d9
2 changed files with 59 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
package ru.ldeloff.currenttime.tool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import java.time.LocalDate;
@Slf4j
public class CurrentTimeTool {
@Tool(description = "Get the current date in the ISO-8601 format yyyy-MM-dd")
String getCurrentDate() {
log.info("Getting current date");
return LocalDate.now().toString();
}
}