SmartAdapter
Wisej.AI.SmartAdapter
Last updated
Wisej.AI.SmartAdapter
Last updated
Namespace: Wisej.AI
Assembly: Wisej.AI (3.5.0.0)
Represents an abstract base class for creating smart adapters that interact with AI endpoints.
Initializes a new instance of the class.
Initializes a new instance of the class attached to an implementation to allow for disposing the SmartAdapter when the service container is disposed.
container
: Gets the collection of agents associated with this adapter.
Clears all tools from the adapter.
Creates a new session with an optional prompt.
The prompt to use for the session.
Creates a new session of a specified type with an optional prompt.
T
The type of session to create.
The system prompt to use for the session.
disposing
True to release both managed and unmanaged resources; false to release only unmanaged resources.
Returns the JSON string returned in the message by stripping the enclosing markers (json and
) if present.
message
Message with the response text that may be a JSON string.
Determines whether a control is associated with the adapter.
control
The control to check.
Notifies all agents asynchronously with a message.
message
The message to notify agents with.
e
Called when a control is created.
control
The control that was created.
Called when a control is disposed.
control
The control that was disposed.
e
e
Registers a control with the adapter.
control
The control to register.
Removes a tool from the adapter.
tool
The tool to remove.
Removes the tools from the specified object.
target
The target object containing tools.
Runs the adapter asynchronously.
The control to run the adapter on.
Unregisters a control from the adapter.
control
The control to unregister.
Adds a tool to the adapter.
tool
The tool to add.
Adds multiple tools to the adapter from a target object.
target
The target object containing tools.
Represents a smart calendar adapter that extends the functionality of a SmartAdapter.
Represents an adapter that enhances a chart control with AI features.
Represents an adapter that enhances a ChartJS control with several AI features.
Enhances all the controls in the associated container with the AI-powered capability to extract structured data from unstructured text.
Represents a document adapter that can perform AI tasks using a document as a data source and interact with the user through a ChatBox control.
Converts unstructured text into a structured .NET object.
Represents an adapter for a PictureBox that generates images based on a description using the OpenAI DALL-E endpoint.
Represents an adapter that generates a data set from a database schema and a user-provided description.
Enhances the ChatBox control to allow seamless PDF report queries using an AI provider.
Enhances a TextBox control with several AI features, including suggestions, translation, and auto-correction.
Represents a provider that supplies tools.
An that represents the container of the component.
: Gets or sets a value indicating whether the adapter should automatically run. (Default: True
)
: Gets or sets a value indicating whether the adapter should automatically update the browser when is done processing (requires a working WebSocket connection). (Default: True
)
: Gets or sets a value indicating whether the adapter is busy. (Default: False
)
: Gets the list of controls associated with this adapter.
: Gets a value indicating whether the adapter has any tools.
: Gets or sets the associated with this adapter.
: Gets or sets the name of the adapter.
: Gets the collection of parameters associated with this adapter.
: Gets the in use by the adapter.
: Gets or sets the system prompt used by the adapter. (Default: ""
)
: Gets the collection of tools associated with this adapter.
: Gets the usage metrics for the session.
prompt
Returns: . A new instance.
systemPrompt
Returns: . A new session of type T .
Releases the unmanaged resources used by the and optionally releases the managed resources.
Returns: . JSON string.
Returns: . True if the control is associated; otherwise, false.
Returns: . A task representing the asynchronous operation.
Raises the event.
An that contains the event data.
Raises the event.
An that contains the event data.
Raises the event.
An that contains the event data.
Returns: .
Returns: . The current instance.
control
Returns: . A task representing the asynchronous operation.
Returns: .
Returns: .
Occurs when the busy state of the adapter changes.
Occurs when the adapter has completed processing.
Occurs when the adapter starts processing.
Converts the of the associated control into lifelike speech.
Transcribes the audio file of the of the associated control to its property in the original language of the audio.
Turns the control into a AI-powered bot. It can answer any question (depending on the AI model being used) and can invoke methods in your applications as needed (see ).
Adds semantic filtering to the auto-complete functionality.
Turns the control into a AI-powered assistant. It can control and navigate an application, click menu items, navigation bar items, buttons, etc. It can also invoke methods in your applications as needed (see ).
Represents a smart adapter that provides real-time data processing capabilities for use with the endpoint.