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