1 write to Function
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
758
Function
= function;
11 references to Function
Microsoft.Extensions.AI (10)
ChatCompletion\FunctionInvokingChatClient.cs (10)
660
using Activity? activity = _activitySource?.StartActivity(context.
Function
.Metadata.Name);
668
LogInvokingSensitive(context.
Function
.Metadata.Name, LoggingHelpers.AsJson(context.CallContent.Arguments, context.
Function
.Metadata.JsonSerializerOptions));
672
LogInvoking(context.
Function
.Metadata.Name);
680
result = await context.
Function
.InvokeAsync(context.CallContent.Arguments, cancellationToken).ConfigureAwait(false);
692
LogInvocationCanceled(context.
Function
.Metadata.Name);
696
LogInvocationFailed(context.
Function
.Metadata.Name, e);
709
LogInvocationCompletedSensitive(context.
Function
.Metadata.Name, elapsed, LoggingHelpers.AsJson(result, context.
Function
.Metadata.JsonSerializerOptions));
713
LogInvocationCompleted(context.
Function
.Metadata.Name, elapsed);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
633
Assert.Same(function, context.
Function
);