17 references to AIFunctionMetadata
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
268
Metadata = new
AIFunctionMetadata
(functionName)
Microsoft.Extensions.AI.Abstractions.Tests (16)
Contents\FunctionCallContentTests..cs (1)
254
public override AIFunctionMetadata Metadata =>
new
("NetTypeless")
Functions\AIFunctionMetadataTests.cs (12)
15
Assert.Throws<ArgumentNullException>("name", () => new
AIFunctionMetadata
((string)null!));
16
Assert.Throws<ArgumentException>("name", () => new
AIFunctionMetadata
(" \t "));
23
AIFunctionMetadata f =
new
("name");
35
Assert.Same(f.AdditionalProperties, new
AIFunctionMetadata
("name2").AdditionalProperties);
41
AIFunctionMetadata f1 =
new
("name")
60
Assert.Throws<ArgumentNullException>("value", () => new
AIFunctionMetadata
("name") { Name = null! });
61
Assert.Throws<ArgumentNullException>("value", () => new
AIFunctionMetadata
("name") { Parameters = null! });
62
Assert.Throws<ArgumentNullException>("value", () => new
AIFunctionMetadata
("name") { ReturnParameter = null! });
63
Assert.Throws<ArgumentNullException>("value", () => new
AIFunctionMetadata
("name") { AdditionalProperties = null! });
69
AIFunctionMetadata f =
new
("name") { Description = null };
76
Assert.Null(new
AIFunctionMetadata
("name").GetParameter("test"));
82
AIFunctionMetadata f =
new
("name")
Functions\AIFunctionParameterMetadataTests.cs (2)
88
Assert.Throws<ArgumentNullException>("value", () => new
AIFunctionMetadata
("name") { Name = null! });
89
Assert.Throws<ArgumentException>("value", () => new
AIFunctionMetadata
("name") { Name = "\r\n\t " });
Functions\AIFunctionTests.cs (1)
38
public override AIFunctionMetadata Metadata =>
new
("name");