Skip to main content

Current Date and Time Agent

time agent showing the time

Overview

The Current Date and Time Agent is an out-of-the-box Agent within the ai12z Copilot suite that allows you to retrieve the current date, time, timezone, and day of the week for a specified timezone. By providing a simple parameter, you can access accurate and up-to-date time information, enhancing your application's functionality that depends on time-sensitive data. This agent simplifies the integration of time and date features into your applications, requiring no customization

Key Features

  • Time Zone Specification: Retrieve the current date and time for any specified timezone.
  • Comprehensive Time Data: Access the current date, time, timezone, and day name.
  • Easy Integration: As an out-of-the-box agent, it requires no customization and integrates seamlessly with your applications.

Purpose

If the LLM needs the time of a paticular region it can call this agent:

  • Enhance Application Functionality: Provide accurate time and date information
  • Simplify Integration: Eliminate the need for complex time zone conversions and date-time handling
  • Save Time: Automate the retrieval and formatting of time and date data

How It Works

  1. Input Parameter: The LLM provide the desired timezone using the time_zone parameter. If not specified, the default timezone is 'UTC'.
  2. Time Retrieval: The agent uses the specified timezone to retrieve the current date and time.
  3. Data Formatting: It formats the date and time information into a structured JSON format, including the date, time, timezone, and day name.
  4. Output Delivery: Returns the formatted data to the LLM

Parameters

When invoking the Current Date and Time Agent, the LLM can specify the following parameter:

  • time_zone (string, optional): The timezone for which you want to retrieve the current date and time. This should be a valid timezone string (e.g., "America/New_York", "Europe/London"). The default value is 'UTC'.

Note: For a reference to the current time in the system prompt, you can use {tz=America/New_York}.

Enabling the Agent

To enable the Current Date and Time Agent in your ai12z Copilot:

  1. Access the Agent Settings: Log in to your ai12z Copilot dashboard and navigate to the Agents section.
  2. Locate the Agent: Find the Current Date and Time agent in the list of available agents.
  3. Enable the Agent: Click on the agent and select Enable to activate it for your projects.
  4. Set Parameters: When using the agent, specify the time_zone parameter as needed for your application.

Benefits

  • User Engagement: LLM will be updated with accurate time and date information, improving user experience for time-sensitive functionalities.
  • Global Reach: Cater to users in different time zones by providing localized time information.