SmartDataEntryAdapter
Wisej.AI.Adapters.SmartDataEntryAdapter
Last updated
Wisej.AI.Adapters.SmartDataEntryAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Enhances all the controls in the associated container with the AI-powered capability to extract structured data from unstructured text.
Works with:
AzureAI/OpenAI gpt-4
AzureAI/OpenAI gpt-4o
AzureAI/OpenAI gpt-3.5
AzureAI/Anthropic Claude
Google Gemini
Llama3:8b and 70b
Supports several types of sources for the input text: Clipboard (text or image), PDF stream, Text, Word, Excel. Uses the extension to run the OCR text extraction on the user's browser in JavaScript.
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.
Asynchronously processes data from the clipboard and extracts structured data.
Throws:
Asynchronously processes the provided image and extracts structured data.
image
The image to be processed.
Throws:
Asynchronously processes the provided stream and extracts text and image data. If an image is detected without associated text, the method attempts to perform OCR to extract text.
stream
The stream containing the input data.
An optional string that specifies the type of data being processed. If not provided, a default value is used.
Throws:
Asynchronously processes the provided text and extracts structured data.
text
The text to be processed.
Throws:
Gets the name of the field to extract for the specified component.
component
The component for which to get the field name.
Throws:
component
Gets the rectangle that defines the area of the field to extract for the specified component.
component
The component for which to get the field rectangle.
Throws:
e
e
Asynchronously runs the core logic of the adapter on the specified control.
control
The control to process.
Sets the name of the field to extract for the specified component.
component
The component for which to set the field name.
value
The name of the field to extract.
Throws:
Sets the prompt to instruct the AI on how to extract the value for the field for the specified component.
component
The component for which to set the field prompt.
value
The prompt to instruct the AI on how to extract the value for the field.
Throws:
Sets the rectangle that defines the area of the field to extract for the specified component.
component
The component for which to set the field rectangle.
value
The rectangle that defines the area of the field to extract.
Throws:
Represents a provider that supplies tools.
Initializes a new instance of the class.
Initializes a new instance of the class with the specified container.
An that represents the container of the component.
: Gets or sets a value indicating whether read-only controls should be excluded. (Default: False
)
: 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 representing the asynchronous operation.
Thrown when the SmartAdapter is busy.
Returns: . A task representing the asynchronous operation.
Thrown when the image is null.
Thrown when the SmartAdapter is busy.
streamType
Returns: . A task representing the asynchronous operation.
Thrown when the stream is null.
Thrown when the SmartAdapter is busy.
Returns: . A task representing the asynchronous operation.
Thrown when the text is null.
Thrown when the SmartAdapter is busy.
Returns: . The name of the field to extract.
Thrown when the component is null.
Returns: .
Returns: . The rectangle that defines the area of the field to extract.
Thrown when the component is null.
Raises the event.
The instance containing the event data.
Raises the event.
The instance containing the event data.
Returns: . A task representing the asynchronous operation.
Thrown when the component is null.
Thrown when the component is null.
Thrown when the component is null.
Occurs when a value is parsed from the input data.
Occurs when a field is updated with a new value.