18 instantiations of AIJsonSchemaCreateOptions
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseFormat.cs (1)
22private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Utilities\AIJsonSchemaCreateOptions.cs (1)
20public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Microsoft.Extensions.AI.Abstractions.Tests (16)
Utilities\AIJsonUtilitiesTests.cs (16)
78AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 87AssertEqual(new AIJsonSchemaCreateOptions(), new AIJsonSchemaCreateOptions()); 91AIJsonSchemaCreateOptions options1 = new AIJsonSchemaCreateOptions(); 92AIJsonSchemaCreateOptions options2 = new AIJsonSchemaCreateOptions(); 221AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 268AIJsonSchemaCreateOptions inferenceOptions = new() 336AIJsonSchemaCreateOptions inferenceOptions = new() 678? new() { TransformOptions = new() { DisallowAdditionalProperties = false } } // Do not append additionalProperties: false to the schema if the type has extension data. 1514JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1542JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1559JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1583JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1602JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1620JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new() 1814? new() { TransformOptions = new() { DisallowAdditionalProperties = false } } // Do not append additionalProperties: false to the schema if the type has extension data.
33 references to AIJsonSchemaCreateOptions
Microsoft.Extensions.AI.Abstractions (17)
ChatCompletion\ChatResponseFormat.cs (1)
22private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Functions\AIFunctionDeclaration.cs (2)
44/// method's parameters using the configured <see cref="JsonSerializerOptions"/> and <see cref="AIJsonSchemaCreateOptions"/>. 56/// method's return type using the configured <see cref="JsonSerializerOptions"/> and <see cref="AIJsonSchemaCreateOptions"/>.
Functions\AIFunctionFactory.cs (4)
718AIJsonSchemaCreateOptions schemaOptions = options.JsonSchemaCreateOptions ?? AIJsonSchemaCreateOptions.Default; 754AIJsonSchemaCreateOptions schemaOptions = key.SchemaOptions with 1279AIJsonSchemaCreateOptions SchemaOptions);
Functions\AIFunctionFactoryOptions.cs (3)
41/// Gets or sets the <see cref="AIJsonSchemaCreateOptions"/> governing the generation of JSON schemas for 45/// If no value has been specified, the <see cref="AIJsonSchemaCreateOptions.Default"/> instance will be used. 49public AIJsonSchemaCreateOptions? JsonSchemaCreateOptions { get; set; }
Utilities\AIJsonSchemaCreateContext.cs (1)
18/// This struct is being passed to the user-provided <see cref="AIJsonSchemaCreateOptions.TransformSchemaNode"/>
Utilities\AIJsonSchemaCreateOptions.cs (1)
20public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Utilities\AIJsonUtilities.Schema.Create.cs (5)
80AIJsonSchemaCreateOptions? inferenceOptions = null) 85inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 196AIJsonSchemaCreateOptions? inferenceOptions = null) 199inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 231AIJsonSchemaCreateOptions inferenceOptions)
Microsoft.Extensions.AI.Abstractions.Tests (16)
Utilities\AIJsonUtilitiesTests.cs (16)
78AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 89foreach (PropertyInfo property in typeof(AIJsonSchemaCreateOptions).GetProperties(BindingFlags.Instance | BindingFlags.Public)) 91AIJsonSchemaCreateOptions options1 = new AIJsonSchemaCreateOptions(); 92AIJsonSchemaCreateOptions options2 = new AIJsonSchemaCreateOptions(); 93switch (property.GetValue(AIJsonSchemaCreateOptions.Default)) 130AssertNotEqual(AIJsonSchemaCreateOptions.Default, options1); 133static void AssertEqual(AIJsonSchemaCreateOptions x, AIJsonSchemaCreateOptions y) 142static void AssertNotEqual(AIJsonSchemaCreateOptions x, AIJsonSchemaCreateOptions y) 221AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 268AIJsonSchemaCreateOptions inferenceOptions = new() 336AIJsonSchemaCreateOptions inferenceOptions = new() 677AIJsonSchemaCreateOptions? createOptions = typeInfo.Properties.Any(prop => prop.IsExtensionData) 1813AIJsonSchemaCreateOptions? createOptions = typeInfo.Properties.Any(prop => prop.IsExtensionData)