12 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (12)
Utilities\AIJsonUtilities.Schema.Create.cs (11)
144schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 249return new JsonObject { [TypePropertyName] = null }; 286if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 288objSchema.InsertAtStart(TypePropertyName, "string"); 309obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 313obj[TypePropertyName] = (JsonNode)numericType; 324if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 330objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 335if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 337objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 636if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&