SmartObjectAdapter
Wisej.AI.Adapters.SmartObjectAdapter
Last updated
Wisej.AI.Adapters.SmartObjectAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Converts unstructured text into a structured .NET object.
This class provides methods to convert text, images, streams, and clipboard content into .NET objects. It supports OCR for image processing and can handle multiple iterations to resolve missing values.
Initializes a new instance of the class.
Initializes a new instance of the class with the specified container.
container
If the adapter was not provided any tool, this property is ignored since it will not try to resolve missing values.
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Converts the clipboard content to an object of type T .
T
The type of the object to return.
Converts the clipboard content to an object of the specified type.
objectType
The type of the object to return.
Converts the specified image to an object of type T .
T
The type of the object to return.
image
The image to convert.
Converts the specified image to an object of the specified type.
image
The image to convert.
objectType
The type of the object to return.
Converts the specified stream to an object of type T .
T
The type of the object to return.
stream
The stream to convert.
The type of the stream. Default is null.
Converts the specified stream to an object of the specified type.
stream
The stream to convert.
objectType
The type of the object to return.
The type of the stream. Default is null.
Converts the specified text to an object of type T .
T
The type of the object to return.
text
The text to convert.
Converts the specified text to an object of the specified type.
text
The text to convert.
objectType
The type of the object to return.
args
Executes the core logic of the adapter asynchronously.
control
The control to use for the operation.
Represents a provider that supplies tools.
An that represents the container of the component.
: Gets or sets the maximum number of times the adapter will try to use the available tools to complete the missing values. (Default: 2
)
: Gets or sets a value indicating whether OCR should be used for image processing. (Default: False
)
Releases the unmanaged resources used by the and optionally releases the managed resources.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
streamType
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
streamType
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Returns: . A task that represents the asynchronous operation. The task result contains the converted object.
Raises the event.
The instance containing the event data.
Returns: . A task that represents the asynchronous operation. The task result contains the response message.
Occurs when an object is parsed.