19 references to AIParameterName
Microsoft.Extensions.AI.Abstractions.Tests (7)
Functions\AINameAttributesTests.cs (2)
21
Assert.Throws<ArgumentNullException>("name", () => new
AIParameterNameAttribute
(null!));
22
Assert.Throws<ArgumentException>("name", () => new
AIParameterNameAttribute
(" "));
Utilities\AIJsonUtilitiesTests.cs (5)
605
static void TestMethod([
AIParameterName
("custom_property_name")] string select, int top)
625
static void DuplicateByAttribute([
AIParameterName
("dup")] string first, [
AIParameterName
("dup")] string second)
634
static void DuplicateByCollision([
AIParameterName
("filter")] string select, string filter)
648
static void TestMethod([
AIParameterName
("a/b~c")] RecursiveNode node)
Microsoft.Extensions.AI.Tests (12)
Functions\AIFunctionFactoryTest.cs (12)
120
AIFunctionFactory.Create(([
AIParameterName
("theParam")] string otherName) => otherName),
342
AIFunction func = AIFunctionFactory.Create([AIFunctionName("my_tool")] ([
AIParameterName
("my_param")] string myParam) => myParam);
355
AIFunction func = AIFunctionFactory.Create(([
AIParameterName
("$select")] string select, int top) => select + top);
364
([
AIParameterName
("my_param")] string myParam, int top) => myParam + top);
389
([
AIParameterName
("my_param")] string myParam) => myParam,
419
([
AIParameterName
("a/b~c")] AIParameterNameAttributeRecursiveNode node) => node.ToString(),
432
([
AIParameterName
("dup")] string first, [
AIParameterName
("dup")] string second) => first + second));
437
([
AIParameterName
("filter")] string select, string filter) => select + filter));
458
([
AIParameterName
("dup")] string first, [
AIParameterName
("dup")] string second) => first + second,
1828
public abstract string Method([
AIParameterName
("my_param")] string myParam);