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
inputobjectThe input value.
cancellationTokenCancellationTokenCancels 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
inputobjectThe input value.
cancellationTokenCancellationTokenCancels the run.
Returns
- Task<AIResult<T>>
Type Parameters
T