Skip to main content

FullCalendarTools

Namespace: Wisej.AI.Tools

Assembly: Wisej.AI

Provides tools to manage a calendar control, allowing for the addition, retrieval, deletion, and modification of events.

public class FullCalendarTools : ToolsContainer

Constructors

FullCalendarTools(calendar)

Initializes a new instance of the FullCalendarTools class with the specified calendar.

NameTypeDescription
calendarFullCalendarThe calendar to be managed by this tool.

Throws:

Properties

Calendar

FullCalendar: Gets or sets the calendar associated with this tool. (Default: null)

Methods

add_events(titles, start, end, allDay)

Adds one or more events to the calendar.

ParameterTypeDescription
titlesString[]Titles of the events. Create a short description of the event from the question. Fix for typos and grammar error, do not repeat the date of the event.
startDateTime[]Start date/time of the events. When not specified, deduct it from the type of event.
endDateTime[]Ending date/time for the events. Deduct the ending date from the starting date and the title of the event.
allDayBoolean[]Indicates whether the event is a full day event.

change_events(ids, newTitles, newStarts, newEnds)

Changes the title, start date/time, and ending date/time of the events identified by their IDs.

ParameterTypeDescription
idsString[]IDs of the events to change.
newTitlesString[]New title of the events.
newStartsDateTime[]New start date/time of the events.
newEndsDateTime[]New ending date/time of the events.

delete_events(ids)

Deletes events from the calendar identified by their IDs.

ParameterTypeDescription
idsString[]IDs of the events to remove from the calendar.

get_events(fromDate, toDate)

Retrieves events from the calendar within the specified date range.

ParameterTypeDescription
fromDateDateTimeStart date/time of the range requested.
toDateDateTimeEnd date/time of the range requested.

Returns: Object[]. An array of objects containing the title, date, time, and duration of the events.

Implements

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