6 references to TypePropertyName
Microsoft.Extensions.AI.Abstractions (6)
Utilities\AIJsonUtilities.Schema.Create.cs (5)
131
schema[
TypePropertyName
] = "object"; // Method schemas always hardcode the type as "object".
237
return new JsonObject { [
TypePropertyName
] = null };
274
if (inferenceOptions.IncludeTypeInEnumSchemas && ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(
TypePropertyName
))
276
objSchema.InsertAtStart(
TypePropertyName
, "string");
324
obj[
TypePropertyName
] = numericType;
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
140
schemaObj.TryGetPropertyValue(
TypePropertyName
, out JsonNode? typeSchema) &&