14 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (14)
Utilities\AIJsonUtilities.Schema.Create.cs (13)
152schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 253return new JsonObject { [TypePropertyName] = null }; 290if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 292objSchema.InsertAtStart(TypePropertyName, "string"); 313obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 317obj[TypePropertyName] = (JsonNode)numericType; 328if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 334objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 339if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 341objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 349if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 355objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 655if (!schema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeNode))
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&