Documentation
Table of Contents

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

input IEnumerable<TIn>
client IntentClient
intent string
options AIRequestOptions
cancellationToken CancellationToken

Returns

Task<AIResult<List<TOut>>>

Type Parameters

TIn
TOut