7 references to new
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseFormat.cs (2)
27
public static ChatResponseFormatJson Json { get; } =
new
(schema: null);
36
new
(schema,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatResponseFormatTests.cs (5)
24
Assert.Throws<ArgumentException>("schemaName", () => new
ChatResponseFormatJson
(null, "name"));
25
Assert.Throws<ArgumentException>("schemaDescription", () => new
ChatResponseFormatJson
(null, null, "description"));
26
Assert.Throws<ArgumentException>("schemaName", () => new
ChatResponseFormatJson
(null, "name", "description"));
32
ChatResponseFormatJson f =
new
(null);
41
ChatResponseFormatJson f =
new
(EmptySchema, "name", "description");