Package com.bytedesk.ai.utils.tools
Class DateTimeTools
java.lang.Object
com.bytedesk.ai.utils.tools.DateTimeTools
https://docs.spring.io/spring-ai/reference/api/tools.html
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateTimeTools
public DateTimeTools()
-
-
Method Details
-
getCurrentDateTime
@Tool(description="Get the current date and time in the user\'s timezone") public String getCurrentDateTime() -
setAlarm
@Tool(description="Set a user alarm for the given time") void setAlarm(@ToolParam(description="Time in ISO-8601 format") String time) -
getCurrentDateTimeMethodToolCallback
String getCurrentDateTimeMethodToolCallback()
-