14 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (14)
Utilities\AIJsonUtilities.Schema.Create.cs (13)
146schema[TypePropertyName] = "object"; // Method schemas always hardcode the type as "object". 251return new JsonObject { [TypePropertyName] = null }; 288if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 290objSchema.InsertAtStart(TypePropertyName, "string"); 311obj[TypePropertyName] = new JsonArray { (JsonNode)numericType, (JsonNode)"null" }; 315obj[TypePropertyName] = (JsonNode)numericType; 326if (objSchema.TryGetPropertyValue(TypePropertyName, out JsonNode? typeKeyWord) && 332objSchema[TypePropertyName] = new JsonArray { (JsonNode)typeValue, (JsonNode)"null" }; 337if (nullableElement.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 339objSchema.InsertAtStart(TypePropertyName, new JsonArray { (JsonNode)"string", (JsonNode)"null" }); 430if (obj[TypePropertyName] is JsonNode typeNode && typeNode.GetValueKind() is JsonValueKind.String && typeNode.GetValue<string>() is "string") 443if (obj[TypePropertyName] is JsonNode typeNode && typeNode.GetValueKind() is JsonValueKind.String && typeNode.GetValue<string>() is "string") 533if (obj[TypePropertyName] is JsonNode typeNode && typeNode.GetValueKind() is JsonValueKind.String && typeNode.GetValue<string>() is "string")
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) &&