SmartQueryAdapter
Wisej.AI.Adapters.SmartQueryAdapter
Last updated
Wisej.AI.Adapters.SmartQueryAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Represents an adapter that generates a data set from a database schema and a user-provided description.
The class is designed to interact with a database schema and generate SQL queries based on user input. It utilizes a to facilitate the query generation process.
Initializes a new instance of the class.
: Gets or sets the database connection used to execute the query.
Returns the JSON string returned in the message by stripping the enclosing markers (sql and
) if present.
message
Message with the response text that may be a JSON string.
Asynchronously runs the core logic to generate and execute the SQL query.
control
The control associated with the operation, if any.
Represents a provider that supplies tools.
: Gets or sets the data source binding for the query results.
: Gets or sets the query description provided by the user.
When the property is set to true, setting this property will automatically execute the query asynchronously.
: Gets or sets the database schema used to generate the query.
: Gets or sets the type of the database server. (Default: "Microsoft Sql Server"
)
: Gets the SQL statement generated from the query description.
Returns: . JSON string.
Returns: . A task representing the asynchronous operation, with a result containing the query execution details.