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