Documentation
Table of Contents

Method AIConvertAsync

Namespace
IntentSharp.Extensions
Assembly
IntentSharp.dll

AIConvertAsync<T>(object?, IntentClient, AIRequestOptions?, CancellationToken)

Converts the value to T with a default conversion intent.

public static Task<AIResult<T>> AIConvertAsync<T>(this object? input, IntentClient client, AIRequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

input object
client IntentClient
options AIRequestOptions
cancellationToken CancellationToken

Returns

Task<AIResult<T>>

Type Parameters

T