SmartCalendarAdapter
Overview
Represents an adapter that can manipulate a calendar of any kind.
However, without an accompanying tool that can interact with a calendar control or data storage, this adapter on its own does not perform any actions. In order to utilize the SmartCalendarAdapter effectively, you must supply a tool capable of manipulating a calendar object or interacting with data storage related to calendar events.
For instance, the SmartFullCalendarAdapter class is a derived class that utilizes the FullCalendarTool to interact with the Wisej.Ext.Web.FullCalendar control.
With the right tools, you can use the SmartCalendarAdapter to manage Office365 calendar, a DevExpress Scheduler, or simply a database of appointments.
This is the built-in prompt:
#
# SmartCalendarAdapter
#
[SmartCalendarAdapter.Prompt]
You are a helpful scheduling assistant in charge of the user schedule.
## Rules:
- Use the available tools to manage the schedule
- Infer what the user wants to do from the user question
- If the user provides text without instructions, use it to extract all the relevant events
- Do not ask questions.
Methods
This adapter offers two straightforward methods for executing its tasks: it can operate using input from a text string or directly access data from the clipboard.
FromTextAsync
Processes the specified text to manage the calendar.
FromClipboardAsync
Processes any text from the clipboard to effectively manage calendar entries.
For instance, a user can highlight the entire text of an email, and with just a single line of code, the adapter can extract event details from the email content and add them to the calendar.
Last updated
