1 write to Function
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
733Function = function;
10 references to Function
Microsoft.Extensions.AI (10)
ChatCompletion\FunctionInvokingChatClient.cs (10)
636using Activity? activity = _activitySource?.StartActivity(context.Function.Metadata.Name); 644LogInvokingSensitive(context.Function.Metadata.Name, LoggingHelpers.AsJson(context.CallContent.Arguments, context.Function.Metadata.JsonSerializerOptions)); 648LogInvoking(context.Function.Metadata.Name); 655result = await context.Function.InvokeAsync(context.CallContent.Arguments, cancellationToken).ConfigureAwait(false); 667LogInvocationCanceled(context.Function.Metadata.Name); 671LogInvocationFailed(context.Function.Metadata.Name, e); 684LogInvocationCompletedSensitive(context.Function.Metadata.Name, elapsed, LoggingHelpers.AsJson(result, context.Function.Metadata.JsonSerializerOptions)); 688LogInvocationCompleted(context.Function.Metadata.Name, elapsed);