4 references to TypeInfo
Microsoft.Extensions.AI.Abstractions (3)
Utilities\AIJsonSchemaCreateContext.cs (1)
100
GetCustomAttr(
TypeInfo
.Type);
Utilities\AIJsonUtilities.Schema.cs (2)
273
if (key.IncludeTypeInEnumSchemas && ctx.
TypeInfo
.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName))
385
if (ctx.
TypeInfo
.NumberHandling is not JsonNumberHandling.Strict && schema["type"] is JsonArray typeArray)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
157
return context.
TypeInfo
.Type == typeof(int) && context.GetCustomAttribute<DescriptionAttribute>() is DescriptionAttribute attr