12 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (12)
Utilities\AIJsonUtilities.Schema.Create.cs (12)
306
JsonObject obj =
ConvertSchemaToObject
(ref schema);
315
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
321
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
327
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
364
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
370
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
375
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
380
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
385
JsonObject obj =
ConvertSchemaToObject
(ref schema);
397
JsonObject obj =
ConvertSchemaToObject
(ref schema);
410
JsonObject obj =
ConvertSchemaToObject
(ref schema);
423
JsonObject obj =
ConvertSchemaToObject
(ref schema);