UtilityTools
Wisej.AI.Tools.UtilityTools
Last updated
Wisej.AI.Tools.UtilityTools
Last updated
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.
This class extends the ToolsContainer
and includes methods that can be used to perform common utility operations.
Initializes a new instance of the class.
Finalizes an instance of the class.
This destructor ensures that the Geolocation
resource is properly disposed of when the UtilityTools
object is garbage collected.
Retrieves the current date and time formatted as a long date and time string.
This method returns the current date and time adjusted to the client's time zone.
Asynchronously retrieves the user's current location as a JSON object.
This method uses the Geolocation
service to obtain the user's current position and returns it as a JSON string.
Represents a container for tools, providing access to a hub, adapter, and a collection of parameters.
Returns: . A string representing the current date and time.
Returns: . A task that represents the asynchronous operation. The task result contains a JSON string of the user's location.