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.
- C#
- VB.NET
public class FullCalendarTools : ToolsContainer
Public Class FullCalendarTools
Inherits ToolsContainer
Constructors
FullCalendarTools(calendar)
Initializes a new instance of the FullCalendarTools class with the specified calendar.
| Name | Type | Description |
|---|---|---|
| calendar | FullCalendar | The calendar to be managed by this tool. |
Throws:
- ArgumentNullException Thrown when the provided calendar is null.
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 | String[] | 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 | DateTime[] | Start date/time of the events. When not specified, deduct it from the type of event. |
| end | DateTime[] | Ending date/time for the events. Deduct the ending date from the starting date and the title of the event. |
| allDay | Boolean[] | 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 | String[] | IDs of the events to change. |
| newTitles | String[] | New title of the events. |
| newStarts | DateTime[] | New start date/time of the events. |
| newEnds | DateTime[] | New ending date/time of the events. |
delete_events(ids)
Deletes events from the calendar identified by their IDs.
| Parameter | Type | Description |
|---|---|---|
| ids | String[] | 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 | DateTime | Start date/time of the range requested. |
| toDate | DateTime | 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 |
|---|---|
| IToolsContainer | Represents a container for tools, providing access to a hub, adapter, and a collection of parameters. |