1 override of UnderlyingMethod
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
541public override MethodInfo UnderlyingMethod => FunctionDescriptor.Method;
12 references to UnderlyingMethod
Microsoft.Extensions.AI.Abstractions.Tests (6)
Utilities\AIJsonUtilitiesTests.cs (6)
305Assert.NotNull(func.UnderlyingMethod); 307JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty); 367Assert.NotNull(func.UnderlyingMethod); 370JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty, description: string.Empty, inferenceOptions: inferenceOptions); 381Assert.NotNull(func.UnderlyingMethod); 382ParameterInfo[] parameters = func.UnderlyingMethod.GetParameters();
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvocationContextTests.cs (1)
30Assert.NotNull(ctx.Function.UnderlyingMethod);
Functions\AIFunctionFactoryTest.cs (5)
155Assert.Same(dotnetFunc.Method, func.UnderlyingMethod); 161Assert.Same(dotnetFunc2.Method, func.UnderlyingMethod); 167Assert.Same(dotnetFunc3.Method, func.UnderlyingMethod); 168Assert.Collection(func.UnderlyingMethod!.GetParameters(), 198Assert.Same(dotnetFunc.Method, func.UnderlyingMethod);