Method RunAsync
- Namespace
- IntentSharp.Extensions.AI
- Assembly
- IntentSharp.Extensions.AI.dll
RunAsync(string, object?, CancellationToken)
Runs the named intent on the input. Every shape is returned as JSON; failures are reported in the result.
Task<AIResult<JsonNode>> RunAsync(string name, object? input, CancellationToken ct)
Parameters
namestringThe intent name.
inputobjectThe value the intent is applied to.
ctCancellationTokenCancels the run.
Returns
- Task<AIResult<JsonNode>>
The verified value as JSON when the result passed verification; otherwise a failed result that lists the issues.