19 instantiations of AIJsonSchemaTransformOptions
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaTransformOptions.cs (1)
44internal static AIJsonSchemaTransformOptions Default { get; } = new();
Microsoft.Extensions.AI.Abstractions.Tests (15)
Utilities\AIJsonSchemaTransformCacheTests.cs (7)
21Assert.Throws<ArgumentException>(() => new AIJsonSchemaTransformCache(transformOptions: new())); 27AIJsonSchemaTransformOptions options = new() { ConvertBooleanSchemas = true }; 35AIJsonSchemaTransformCache cache = new(new() { ConvertBooleanSchemas = true }); 42AIJsonSchemaTransformCache cache = new(new() { ConvertBooleanSchemas = true }); 49AIJsonSchemaTransformCache cache = new(new() { TransformSchemaNode = (_, node) => { node.AsObject().Add("myAwesomeKeyword", 42); return node; } }); 62AIJsonSchemaTransformCache cache = new(new() { TransformSchemaNode = (_, node) => { node.AsObject().Add("myAwesomeKeyword", 42); return node; } }); 77AIJsonSchemaTransformCache cache = new(new() { TransformSchemaNode = (_, node) => { node.AsObject().Add("myAwesomeKeyword", 42); return node; } });
Utilities\AIJsonUtilitiesTests.cs (8)
594AIJsonSchemaTransformOptions options = new() 628AIJsonSchemaTransformOptions options = new() 663AIJsonSchemaTransformOptions options = new() 700AIJsonSchemaTransformOptions options = new() 727AIJsonSchemaTransformOptions transformOptions = new() 746transformOptions = new() 778Assert.Throws<ArgumentException>(() => AIJsonUtilities.TransformSchema(schema, transformOptions: new())); 790AIJsonSchemaTransformOptions transformOptions = new() { ConvertBooleanSchemas = true };
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
28private static AIJsonSchemaTransformCache SchemaTransformCache { get; } = new(new()
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
28private static readonly AIJsonSchemaTransformCache _schemaTransformCache = new(new()
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
29internal static AIJsonSchemaTransformCache SchemaTransformCache { get; } = new(new()
16 references to AIJsonSchemaTransformOptions
Microsoft.Extensions.AI.Abstractions (9)
Utilities\AIJsonSchemaTransformCache.cs (4)
12/// Defines a cache for JSON schemas transformed according to the specified <see cref="AIJsonSchemaTransformOptions"/> policy. 36public AIJsonSchemaTransformCache(AIJsonSchemaTransformOptions transformOptions) 40if (transformOptions == AIJsonSchemaTransformOptions.Default) 53public AIJsonSchemaTransformOptions TransformOptions { get; }
Utilities\AIJsonSchemaTransformContext.cs (1)
14/// This struct is being passed to the user-provided <see cref="AIJsonSchemaTransformOptions.TransformSchemaNode"/>
Utilities\AIJsonSchemaTransformOptions.cs (1)
44internal static AIJsonSchemaTransformOptions Default { get; } = new();
Utilities\AIJsonUtilities.Schema.Transform.cs (3)
23public static JsonElement TransformSchema(JsonElement schema, AIJsonSchemaTransformOptions transformOptions) 27if (transformOptions == AIJsonSchemaTransformOptions.Default) 38private static JsonNode TransformSchemaCore(JsonNode? schema, AIJsonSchemaTransformOptions transformOptions, List<string>? path)
Microsoft.Extensions.AI.Abstractions.Tests (7)
Utilities\AIJsonSchemaTransformCacheTests.cs (1)
27AIJsonSchemaTransformOptions options = new() { ConvertBooleanSchemas = true };
Utilities\AIJsonUtilitiesTests.cs (6)
594AIJsonSchemaTransformOptions options = new() 628AIJsonSchemaTransformOptions options = new() 663AIJsonSchemaTransformOptions options = new() 700AIJsonSchemaTransformOptions options = new() 727AIJsonSchemaTransformOptions transformOptions = new() 790AIJsonSchemaTransformOptions transformOptions = new() { ConvertBooleanSchemas = true };