Documentation
Table of Contents

Method RunAsync

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

RunAsync(object?, CancellationToken)

Runs the offered definition on the specialist with input and returns the verified result as JSON.

public Task<AIResult<JsonNode>> RunAsync(object? input, CancellationToken cancellationToken = default)

Parameters

input object

The input value.

cancellationToken CancellationToken

Cancels the run.

Returns

Task<AIResult<JsonNode>>

RunAsync<T>(object?, CancellationToken)

Runs the offered definition on the specialist with input and returns a verified T.

public Task<AIResult<T>> RunAsync<T>(object? input, CancellationToken cancellationToken = default)

Parameters

input object

The input value.

cancellationToken CancellationToken

Cancels the run.

Returns

Task<AIResult<T>>

Type Parameters

T