6 instantiations of AIJsonSchemaCreateOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
21private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateOptions.cs (1)
17public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Microsoft.Extensions.AI.Abstractions.Tests (4)
Utilities\AIJsonUtilitiesTests.cs (4)
43AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 108AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 153AIJsonSchemaCreateOptions inferenceOptions = new() 276? new() { DisallowAdditionalProperties = false } // Do not append additionalProperties: false to the schema if the type has extension data.
21 references to AIJsonSchemaCreateOptions
Microsoft.Extensions.AI (5)
ChatCompletion\ChatClientStructuredOutputExtensions.cs (1)
21private static readonly AIJsonSchemaCreateOptions _inferenceOptions = new()
Functions\AIFunctionFactoryCreateOptions.cs (4)
19private AIJsonSchemaCreateOptions _schemaCreateOptions = AIJsonSchemaCreateOptions.Default; 36/// Gets or sets the <see cref="AIJsonSchemaCreateOptions"/> governing the generation of JSON schemas for the function. 38public AIJsonSchemaCreateOptions SchemaCreateOptions
Microsoft.Extensions.AI.Abstractions (10)
Utilities\AIJsonSchemaCreateContext.cs (1)
18/// This struct is being passed to the user-provided <see cref="AIJsonSchemaCreateOptions.TransformSchemaNode"/>
Utilities\AIJsonSchemaCreateOptions.cs (1)
17public static AIJsonSchemaCreateOptions Default { get; } = new AIJsonSchemaCreateOptions();
Utilities\AIJsonUtilities.Schema.cs (8)
61AIJsonSchemaCreateOptions? inferenceOptions = null) 99/// unless a <see cref="AIJsonSchemaCreateOptions.TransformSchemaNode" /> delegate has been specified. 108AIJsonSchemaCreateOptions? inferenceOptions = null) 113inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 136/// unless a <see cref="AIJsonSchemaCreateOptions.TransformSchemaNode" /> delegate has been specified. 144AIJsonSchemaCreateOptions? inferenceOptions = null) 147inferenceOptions ??= AIJsonSchemaCreateOptions.Default; 453AIJsonSchemaCreateOptions options)
Microsoft.Extensions.AI.Abstractions.Tests (5)
Utilities\AIJsonUtilitiesTests.cs (5)
43AIJsonSchemaCreateOptions options = useSingleton ? AIJsonSchemaCreateOptions.Default : new AIJsonSchemaCreateOptions(); 108AIJsonSchemaCreateOptions inferenceOptions = new AIJsonSchemaCreateOptions 153AIJsonSchemaCreateOptions inferenceOptions = new() 275AIJsonSchemaCreateOptions? createOptions = typeInfo.Properties.Any(prop => prop.IsExtensionData)
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
190var schemaOptions = options.SchemaCreateOptions;