11 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (11)
Utilities\AIJsonUtilities.Schema.Create.cs (10)
146schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 251return new JsonObject { [TypePropertyName] = null }; 288if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 290objSchema.InsertAtStart(TypePropertyName, "string"); 311obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 315obj[TypePropertyName] = (JsonNode)numericType; 326if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 332objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 337if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 339objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" });
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&