ToolCallback 인터페이스를 통해 Tool을 모델링함. 방법은 여러가지가 있음@Tool 어노테이션을 사용하는 방법을 주로 사용함import java.time.LocalDateTime; import org.springframework.ai.tool.annotation.Tool; import org.springframework.context.i18n.LocaleContextHolder; class DateTimeTools { @Tool(description = "Get the current date and time in the user's timezone") String getCurrentDateTime() { return LocalDateTime.now().atZone(LocaleContextHolder.getTimeZone().toZoneId()).toString(); } }