8 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (8)
Utilities\AIJsonUtilities.Schema.Create.cs (7)
130
schema[
TypePropertyName
] = "object"; // Method schemas always hardcode the type as "object".
235
return new JsonObject { [
TypePropertyName
] = null };
272
if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(
TypePropertyName
))
274
objSchema.InsertAtStart(
TypePropertyName
, "string");
278
if (Nullable.GetUnderlyingType(ctx.TypeInfo.Type)?.IsEnum is true && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(
TypePropertyName
))
280
objSchema.InsertAtStart(
TypePropertyName
, new JsonArray { (JsonNode)"string", (JsonNode)"null" });
298
obj[
TypePropertyName
] = numericType;
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
145
schemaObj.TryGetPropertyValue(
TypePropertyName
, out JsonNode? typeSchema) &&