12 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (12)
Utilities\AIJsonUtilities.Schema.Create.cs (12)
306
JsonObject obj =
ConvertSchemaToObject
(ref schema);
346
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
352
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
358
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
395
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
401
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
406
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
411
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
416
JsonObject obj =
ConvertSchemaToObject
(ref schema);
428
JsonObject obj =
ConvertSchemaToObject
(ref schema);
441
JsonObject obj =
ConvertSchemaToObject
(ref schema);
454
JsonObject obj =
ConvertSchemaToObject
(ref schema);