Class TurDateTimeToolService

java.lang.Object
com.viglet.turing.genai.tool.TurDateTimeToolService

@Service public class TurDateTimeToolService extends Object
  • Constructor Details

    • TurDateTimeToolService

      public TurDateTimeToolService()
  • Method Details

    • getCurrentTime

      @Tool(name="get_current_time", description="Gets the current date and time for a given timezone.\nUse this tool when the user asks what time it is, the current date, or the date/time in a specific city or timezone.\nArgs:\n timezone (str): An IANA timezone identifier (e.g., 'America/Sao_Paulo', 'Europe/London', 'Asia/Tokyo', 'US/Eastern'). Use 'UTC' if no timezone is specified.\nReturns:\n The current date and time formatted for the requested timezone.") public String getCurrentTime(String timezone)