7 references to Number
Microsoft.Extensions.AI.Abstractions (7)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (5)
591[typeof(float)] = numberHandling => GetSchemaForNumericType(JsonSchemaType.Number, numberHandling, isIeeeFloatingPoint: true), 592[typeof(double)] = numberHandling => GetSchemaForNumericType(JsonSchemaType.Number, numberHandling, isIeeeFloatingPoint: true), 593[typeof(decimal)] = numberHandling => GetSchemaForNumericType(JsonSchemaType.Number, numberHandling), 639Debug.Assert(schemaType is JsonSchemaType.Integer or JsonSchemaType.Number, "schema type must be number or integer"); 640Debug.Assert(!isIeeeFloatingPoint || schemaType is JsonSchemaType.Number, "If specifying IEEE the schema type must be number");
src\Shared\JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (2)
483JsonSchemaType.Number, 523JsonSchemaType.Number => "number",