2 overrides of UnderlyingMethod
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunctionFactory.cs (1)
542public override MethodInfo UnderlyingMethod => FunctionDescriptor.Method;
Functions\DelegatingAIFunction.cs (1)
50public override MethodInfo? UnderlyingMethod => InnerFunction.UnderlyingMethod;
16 references to UnderlyingMethod
Microsoft.Extensions.AI.Abstractions (1)
Functions\DelegatingAIFunction.cs (1)
50public override MethodInfo? UnderlyingMethod => InnerFunction.UnderlyingMethod;
Microsoft.Extensions.AI.Abstractions.Tests (9)
Functions\DelegatingAIFunctionTests.cs (3)
32Assert.Same(expected.UnderlyingMethod, actual.UnderlyingMethod); 77Assert.Same(inner.UnderlyingMethod, actual.UnderlyingMethod);
Utilities\AIJsonUtilitiesTests.cs (6)
272Assert.NotNull(func.UnderlyingMethod); 274JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty); 334Assert.NotNull(func.UnderlyingMethod); 337JsonElement resolvedSchema = AIJsonUtilities.CreateFunctionJsonSchema(func.UnderlyingMethod, title: string.Empty, description: string.Empty, inferenceOptions: inferenceOptions); 348Assert.NotNull(func.UnderlyingMethod); 349ParameterInfo[] parameters = func.UnderlyingMethod.GetParameters();
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvocationContextTests.cs (1)
30Assert.NotNull(ctx.Function.UnderlyingMethod);
Functions\AIFunctionFactoryTest.cs (5)
219Assert.Same(dotnetFunc.Method, func.UnderlyingMethod); 225Assert.Same(dotnetFunc2.Method, func.UnderlyingMethod); 231Assert.Same(dotnetFunc3.Method, func.UnderlyingMethod); 232Assert.Collection(func.UnderlyingMethod!.GetParameters(), 262Assert.Same(dotnetFunc.Method, func.UnderlyingMethod);