12 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (12)
Utilities\AIJsonUtilities.Schema.Create.cs (12)
305
JsonObject obj =
ConvertSchemaToObject
(ref schema);
345
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
351
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
357
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
394
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
400
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
405
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
410
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
415
JsonObject obj =
ConvertSchemaToObject
(ref schema);
427
JsonObject obj =
ConvertSchemaToObject
(ref schema);
440
JsonObject obj =
ConvertSchemaToObject
(ref schema);
453
JsonObject obj =
ConvertSchemaToObject
(ref schema);