Method AIMapAsync
- Namespace
- IntentSharp.Extensions
- Assembly
- IntentSharp.dll
AIMapAsync<TIn, TOut>(IEnumerable<TIn>, IntentClient, string, AIRequestOptions?, CancellationToken)
Transforms each element into a TOut. The result has the same length and order as the input; a length mismatch fails verification.
public static Task<AIResult<List<TOut>>> AIMapAsync<TIn, TOut>(this IEnumerable<TIn> input, IntentClient client, string intent, AIRequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
inputIEnumerable<TIn>clientIntentClientintentstringoptionsAIRequestOptionscancellationTokenCancellationToken
Returns
- Task<AIResult<List<TOut>>>
Type Parameters
TInTOut