FullCalendarTools

Wisej.AI.Tools.FullCalendarTools

Namespace: Wisej.AI.Tools

Assembly: Wisej.AI (3.5.0.0)

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.

Name
Type
Description

calendar

The 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.

Parameter
Type
Description

titles

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.

start

Start date/time of the events. When not specified, deduct it from the type of event.

end

Ending date/time for the events. Deduct the ending date from the starting date and the title of the event.

allDay

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.

Parameter
Type
Description

ids

IDs of the events to change.

newTitles

New title of the events.

newStarts

New start date/time of the events.

newEnds

New ending date/time of the events.

delete_events(ids)

Deletes events from the calendar identified by their IDs.

Parameter
Type
Description

ids

IDs of the events to remove from the calendar.

get_events(fromDate, toDate)

Retrieves events from the calendar within the specified date range.

Parameter
Type
Description

fromDate

Start date/time of the range requested.

toDate

End date/time of the range requested.

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

Implements

Name
Description

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

Last updated