12 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (12)
Utilities\AIJsonUtilities.Schema.Create.cs (11)
150schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 250return new JsonObject { [TypePropertyName] = null }; 287if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 289objSchema.InsertAtStart(TypePropertyName, "string"); 310obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 314obj[TypePropertyName] = (JsonNode)numericType; 325if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 331objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 336if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 338objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 637if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&