DateTimeTool

org.llm4s.toolapi.builtin.core.DateTimeTool
object DateTimeTool

Tool for getting current date and time information.

Features:

  • Current date/time in any timezone
  • Multiple output formats (ISO, human-readable)
  • Timestamp conversion
  • Date component extraction

Attributes

Example
import org.llm4s.toolapi.builtin.core.DateTimeTool
val tools = new ToolRegistry(Seq(DateTimeTool.tool))
agent.run("What is the current time in Tokyo?", tools)
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

val commonTimezones: Seq[String]

Get list of common timezone identifiers.

Get list of common timezone identifiers.

Attributes

val tool: ToolFunction[Map[String, Any], DateTimeResult]

The date/time tool instance.

The date/time tool instance.

Attributes