FunctionInvokingChatClient.InvokeFunctionAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 메서드는 try 블록 내에서 함수를 호출합니다.
protected:
virtual System::Threading::Tasks::ValueTask<System::Object ^> InvokeFunctionAsync(Microsoft::Extensions::AI::FunctionInvocationContext ^ context, System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.ValueTask<object?> InvokeFunctionAsync(Microsoft.Extensions.AI.FunctionInvocationContext context, System.Threading.CancellationToken cancellationToken);
abstract member InvokeFunctionAsync : Microsoft.Extensions.AI.FunctionInvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<obj>
override this.InvokeFunctionAsync : Microsoft.Extensions.AI.FunctionInvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<obj>
Protected Overridable Function InvokeFunctionAsync (context As FunctionInvocationContext, cancellationToken As CancellationToken) As ValueTask(Of Object)
매개 변수
- context
- FunctionInvocationContext
함수 호출 컨텍스트입니다.
- cancellationToken
- CancellationToken
취소 토큰입니다.
반품
함수 결과입니다.
예외
context은 null입니다.