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