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