Documentation
Table of Contents

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

name string

The intent name.

input object

The value the intent is applied to.

ct CancellationToken

Cancels the run.

Returns

Task<AIResult<JsonNode>>

The verified value as JSON when the result passed verification; otherwise a failed result that lists the issues.