14 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (14)
Utilities\AIJsonUtilities.Schema.Create.cs (13)
165schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 266return new JsonObject { [TypePropertyName] = null }; 305if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 307objSchema.InsertAtStart(TypePropertyName, "string"); 328obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 332obj[TypePropertyName] = (JsonNode)numericType; 343if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 349objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 354if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 356objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 364if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 370objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 716if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&