Documentation
Table of Contents

Method ExecuteIntentAsync

Namespace
IntentSharp
Assembly
IntentSharp.dll

ExecuteIntentAsync<T>(MethodInfo, object?, CancellationToken)

Executes a method decorated with AIIntentAttribute and optional AIGuardrailAttributes. The method body is not invoked; the attributes define the operation and input is the data.

public Task<AIResult<T>> ExecuteIntentAsync<T>(MethodInfo method, object? input, CancellationToken cancellationToken = default)

Parameters

method MethodInfo
input object
cancellationToken CancellationToken

Returns

Task<AIResult<T>>

Type Parameters

T