SmartReportAdapter
Wisej.AI.Adapters.SmartReportAdapter
Last updated
Wisej.AI.Adapters.SmartReportAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Enhances the ChatBox control to allow seamless PDF report queries using an AI provider.
Utilizes these services: . The class extends the functionality of a to provide capabilities for reading and interpreting reports. It utilizes prompts and sessions to interact with the user and process report data.
Initializes a new instance of the class.
: Gets or sets a value indicating whether the history of the conversation is cleared after each response. (Default: False
)
question
Throws:
Evaluates a mathematical expression asynchronously.
expression
The mathematical expression to evaluate.
This method uses the browser's evaluation engine to compute the result of the given expression.
e
control
control
e
Resets the conversation history.
removeMessages
Indicates whether all messages from the ChatBox control should also be removed.
Executes the core logic asynchronously for running the session.
control
The control associated with the session.
Represents a provider that supplies tools.
: Gets or sets the avatar image source for the bot. (Default: "resource.wx/Wisej.AI/Icons/wisej-avatar.svg"
)
: Gets or sets the name of the bot. (Default: "Wisej.AI"
)
: Gets the control associated with this adapter.
: Gets or sets the document conversion service used for converting documents to text.
: Gets or sets the prompt to execute. Used only when the adapter is not connected to a . (Default: null
)
: Gets or sets the PDF source stream for the report.
: Gets the user associated with the bot.
Returns: .
When question is null.
Returns: . A task that represents the asynchronous operation. The task result contains the evaluated result of the expression.
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.
Occurs when an answer is received from the session.
Occurs when a report is being read.