UtilityTools

Wisej.AI.Tools.UtilityTools

Namespace: Wisej.AI.Tools

Assembly: Wisej.AI (3.5.0.0)

Represents a collection of utility tools that provide various functionalities such as retrieving the current date and time, and obtaining the user's location.

public class UtilityTools : ToolsContainer

This class extends the ToolsContainer and includes methods that can be used to perform common utility operations.

Constructors

UtilityTools()

Initializes a new instance of the UtilityTools class.

Methods

Finalize()

Finalizes an instance of the UtilityTools class.

This destructor ensures that the Geolocation resource is properly disposed of when the UtilityTools object is garbage collected.

get_current_date_time()

Retrieves the current date and time formatted as a long date and time string.

Returns: String. A string representing the current date and time.

This method returns the current date and time adjusted to the client's time zone.

get_user_location()

Asynchronously retrieves the user's current location as a JSON object.

Returns: Task<String>. A task that represents the asynchronous operation. The task result contains a JSON string of the user's location.

This method uses the Geolocation service to obtain the user's current position and returns it as a JSON string.

Implements

Name
Description

Represents a container for tools, providing access to a hub, adapter, and a collection of parameters.

Last updated