SmartCalendarAdapter

Wisej.AI.Adapters.SmartCalendarAdapter

Namespace: Wisej.AI.Adapters

Assembly: Wisej.AI (3.5.0.0)

Represents a smart calendar adapter that extends the functionality of a SmartAdapter.

public class SmartCalendarAdapter : SmartAdapter

The SmartCalendarAdapter class provides methods to process text or clipboard content asynchronously.

Constructors

SmartCalendarAdapter()

Initializes a new instance of the SmartCalendarAdapter class.

This constructor initializes the SmartPrompt with a default prompt message.

Methods

FromClipboardAsync()

Processes the content from the clipboard asynchronously.

Returns: Task. A task that represents the asynchronous operation.

This method reads text or image data from the clipboard and processes it asynchronously.


var adapter = new SmartCalendarAdapter();
await adapter.FromClipboardAsync();

Throws:

FromTextAsync(text)

Processes the specified text asynchronously.

Parameter
Type
Description

text

The text to be processed.

Returns: Task. A task that represents the asynchronous operation.

This method sets the internal text and initiates the asynchronous processing.


var adapter = new SmartCalendarAdapter();
await adapter.FromTextAsync("Sample text");

Throws:

RunAsyncCore(control)

Executes the core logic of the adapter asynchronously.

Parameter
Type
Description

control

The control associated with the operation.

Returns: Task<Message>. A task that represents the asynchronous operation, containing the message response.

This method uses a session to ask a question based on the provided text and tracks the usage.

Inherited By

Implements

Name
Description

Represents a provider that supplies tools.

Last updated