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