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