7 references to new
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseFormat.cs (2)
38public static ChatResponseFormatJson Json { get; } = new(schema: null); 47new(schema, schemaName, schemaDescription);
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatResponseFormatTests.cs (5)
29Assert.Throws<ArgumentException>("schemaName", () => new ChatResponseFormatJson(null, "name")); 30Assert.Throws<ArgumentException>("schemaDescription", () => new ChatResponseFormatJson(null, null, "description")); 31Assert.Throws<ArgumentException>("schemaName", () => new ChatResponseFormatJson(null, "name", "description")); 37ChatResponseFormatJson f = new(null); 46ChatResponseFormatJson f = new(EmptySchema, "name", "description");