Method AIAsync
- Namespace
- IntentSharp.Extensions
- Assembly
- IntentSharp.dll
AIAsync(object?, IntentClient, string, AIRequestOptions?, CancellationToken)
Applies the intent to the value and returns text.
public static Task<AIResult<string>> AIAsync(this object? input, IntentClient client, string intent, AIRequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
inputobjectclientIntentClientintentstringoptionsAIRequestOptionscancellationTokenCancellationToken
Returns
- Task<AIResult<string>>
AIAsync<T>(object?, IntentClient, string, AIRequestOptions?, CancellationToken)
Applies the intent to the value and returns a verified T.
public static Task<AIResult<T>> AIAsync<T>(this object? input, IntentClient client, string intent, AIRequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
inputobjectclientIntentClientintentstringoptionsAIRequestOptionscancellationTokenCancellationToken
Returns
- Task<AIResult<T>>
Type Parameters
T