pom and tool
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user