10 references to new
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponseFormat.cs (2)
37public static ChatResponseFormatJson Json { get; } = new(schema: null); 46new(schema, schemaName, schemaDescription);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.ChatResponseFormatJson.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ChatResponseFormatJson((global::System.Text.Json.JsonElement?)args[0], (string)args[1], (string)args[2]),
Microsoft.Extensions.AI.Abstractions.Tests (6)
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");
Generated\361d1da7f942c932\TestJsonSerializerContext.ChatResponseFormatJson.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ChatResponseFormatJson((global::System.Text.Json.JsonElement?)args[0], (string)args[1], (string)args[2]),
Microsoft.Extensions.AI.Tests (1)
Generated\361d1da7f942c932\TestJsonSerializerContext.ChatResponseFormatJson.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.ChatResponseFormatJson((global::System.Text.Json.JsonElement?)args[0], (string)args[1], (string)args[2]),