14 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (14)
Utilities\AIJsonUtilities.Schema.Create.cs (13)
158schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 259return new JsonObject { [TypePropertyName] = null }; 296if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 298objSchema.InsertAtStart(TypePropertyName, "string"); 319obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 323obj[TypePropertyName] = (JsonNode)numericType; 334if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 340objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 345if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 347objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 355if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 361objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 707if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&