Method AIReduceAsync
- Namespace
- IntentSharp.Extensions
- Assembly
- IntentSharp.dll
AIReduceAsync<TIn, TOut>(IEnumerable<TIn>, IntentClient, string, AIRequestOptions?, CancellationToken)
Reduces the whole collection to a single TOut (a summary, a total, a verdict).
public static Task<AIResult<TOut>> AIReduceAsync<TIn, TOut>(this IEnumerable<TIn> input, IntentClient client, string intent, AIRequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
inputIEnumerable<TIn>clientIntentClientintentstringoptionsAIRequestOptionscancellationTokenCancellationToken
Returns
- Task<AIResult<TOut>>
Type Parameters
TInTOut