Documentation
Table of Contents

Method PlanAsync

Namespace
IntentSharp.Data
Assembly
IntentSharp.dll

PlanAsync(string, CancellationToken)

Asks the model for a statement and checks it. Nothing is executed.

public Task<(AIResult<QueryPlan> plan, SqlSafetyReport safety)> PlanAsync(string intent, CancellationToken cancellationToken = default)

Parameters

intent string
cancellationToken CancellationToken

Returns

Task<(AIResult<QueryPlan> plan, SqlSafetyReport safety)>