13 instantiations of AIJsonSchemaCreateOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
23private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateOptions.cs (1)
21public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Microsoft.Extensions.AI.Abstractions.Tests (11)
Utilities\AIJsonUtilitiesTests.cs (11)
73AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 84AssertEqual(new AIJsonSchemaCreateOptions(), new AIJsonSchemaCreateOptions()); 88AIJsonSchemaCreateOptions options1 = new AIJsonSchemaCreateOptions(); 89AIJsonSchemaCreateOptions options2 = new AIJsonSchemaCreateOptions(); 191AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 236AIJsonSchemaCreateOptions inferenceOptions = new() 353JsonSchemaCreateOptions = new AIJsonSchemaCreateOptions { RequireAllProperties = requireAllProperties } 363inferenceOptions: new AIJsonSchemaCreateOptions { RequireAllProperties = requireAllProperties }); 428? new() { DisallowAdditionalProperties = false } // Do not append additionalProperties: false to the schema if the type has extension data. 538JsonElement schema = AIJsonUtilities.CreateFunctionJsonSchema(method.Method, inferenceOptions: new()
29 references to AIJsonSchemaCreateOptions
Microsoft.Extensions.AI (8)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
23private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Functions\AIFunctionFactory.cs (4)
708AIJsonSchemaCreateOptions schemaOptions = options.JsonSchemaCreateOptions ?? AIJsonSchemaCreateOptions.Default; 742AIJsonSchemaCreateOptions schemaOptions = key.SchemaOptions with 1173AIJsonSchemaCreateOptions SchemaOptions);
Functions\AIFunctionFactoryOptions.cs (3)
33/// Gets or sets the <see cref="AIJsonSchemaCreateOptions"/> governing the generation of JSON schemas for the function. 36/// If no value has been specified, the <see cref="AIJsonSchemaCreateOptions.Default"/> instance will be used. 38public AIJsonSchemaCreateOptions? JsonSchemaCreateOptions { get; set; }
Microsoft.Extensions.AI.Abstractions (7)
Utilities\AIJsonSchemaCreateContext.cs (1)
18/// This struct is being passed to the user-provided <see cref="AIJsonSchemaCreateOptions.TransformSchemaNode"/>
Utilities\AIJsonSchemaCreateOptions.cs (1)
21public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Utilities\AIJsonUtilities.Schema.cs (5)
64AIJsonSchemaCreateOptions? inferenceOptions = null) 69inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 155AIJsonSchemaCreateOptions? inferenceOptions = null) 158inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 187AIJsonSchemaCreateOptions inferenceOptions)
Microsoft.Extensions.AI.Abstractions.Tests (14)
Utilities\AIJsonUtilitiesTests.cs (14)
73AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 86foreach (PropertyInfo property in typeof(AIJsonSchemaCreateOptions).GetProperties(BindingFlags.Instance | BindingFlags.Public)) 88AIJsonSchemaCreateOptions options1 = new AIJsonSchemaCreateOptions(); 89AIJsonSchemaCreateOptions options2 = new AIJsonSchemaCreateOptions(); 90switch (property.GetValue(AIJsonSchemaCreateOptions.Default)) 115AssertNotEqual(AIJsonSchemaCreateOptions.Default, options1); 118static void AssertEqual(AIJsonSchemaCreateOptions x, AIJsonSchemaCreateOptions y) 127static void AssertNotEqual(AIJsonSchemaCreateOptions x, AIJsonSchemaCreateOptions y) 191AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 236AIJsonSchemaCreateOptions inferenceOptions = new() 427AIJsonSchemaCreateOptions? createOptions = typeInfo.Properties.Any(prop => prop.IsExtensionData)