1 override of UnderlyingMethod
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
640public override MethodInfo UnderlyingMethod => FunctionDescriptor.Method;
12 references to UnderlyingMethod
Microsoft.Extensions.AI.Abstractions.Tests (6)
Utilities\AIJsonUtilitiesTests.cs (6)
299Assert.NotNull(func.UnderlyingMethod); 301JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: func.Name); 354Assert.NotNull(func.UnderlyingMethod); 358func.UnderlyingMethod, 372Assert.NotNull(func.UnderlyingMethod); 373ParameterInfo[] parameters = func.UnderlyingMethod.GetParameters();
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvocationContextTests.cs (1)
30Assert.NotNull(ctx.Function.UnderlyingMethod);
Functions\AIFunctionFactoryTest.cs (5)
149Assert.Same(dotnetFunc.Method, func.UnderlyingMethod); 155Assert.Same(dotnetFunc2.Method, func.UnderlyingMethod); 161Assert.Same(dotnetFunc3.Method, func.UnderlyingMethod); 162Assert.Collection(func.UnderlyingMethod!.GetParameters(), 192Assert.Same(dotnetFunc.Method, func.UnderlyingMethod);