Method AIConvertAsync
- Namespace
- IntentSharp.Extensions
- Assembly
- IntentSharp.dll
AIConvertAsync<T>(object?, AIRequestOptions?, CancellationToken)
Converts the value to T with a default conversion intent, using the ambient client.
public static Task<AIResult<T>> AIConvertAsync<T>(this object? input, AIRequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
inputobjectoptionsAIRequestOptionscancellationTokenCancellationToken
Returns
- Task<AIResult<T>>
Type Parameters
T
Exceptions
- InvalidOperationException
No client is ambient on this async flow.