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". 244return new JsonObject { [TypePropertyName] = null }; 281if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 283objSchema.InsertAtStart(TypePropertyName, "string"); 304obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 308obj[TypePropertyName] = (JsonNode)numericType; 319if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 325objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 330if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 332objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 631if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&