marcominerva / DatabaseGPT

Query a database using natural language
https://databasegpt.azurewebsites.net/
MIT License
67 stars 15 forks source link

Add a method to get the SQL query #40

Closed marcominerva closed 11 months ago

marcominerva commented 11 months ago

In some scenario it is useful to just get the query, and then let the user decide what to do with it. So, the following method must be added to DatabaseGptClient:

public interface IDatabaseGptClient : IDisposable
{
    Task<string> GetNaturalLanguageQueryAsync(Guid sessionId, string question, CancellationToken cancellationToken = default);
}