Integer schema with range and divisibility constraints.
Value parameters
- description
-
Human-readable description shown to the LLM
- exclusiveMaximum
-
Exclusive upper bound
- exclusiveMinimum
-
Exclusive lower bound
- maximum
-
Inclusive upper bound
- minimum
-
Inclusive lower bound
- multipleOf
-
Value must be a multiple of this integer
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SchemaDefinition[Int]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Serialise this schema to a JSON Schema ujson.Value.
Serialise this schema to a JSON Schema ujson.Value.
Value parameters
- strict
-
When
true, all object properties are treated as required, matching OpenAI strict-mode tool definitions.
Attributes
Replace the description shown to the LLM.
Replace the description shown to the LLM.
Attributes
Set the exclusive upper bound.
Set the exclusive upper bound.
Attributes
Set or clear the exclusive upper bound.
Set or clear the exclusive upper bound.
Attributes
Set the exclusive lower bound.
Set the exclusive lower bound.
Attributes
Set or clear the exclusive lower bound.
Set or clear the exclusive lower bound.
Attributes
Add exclusive minimum and/or maximum range constraints.
Add exclusive minimum and/or maximum range constraints.
Value parameters
- max
-
Optional exclusive upper bound
- min
-
Optional exclusive lower bound
Attributes
Set the inclusive upper bound.
Set the inclusive upper bound.
Attributes
Set or clear the inclusive upper bound.
Set or clear the inclusive upper bound.
Attributes
Set the inclusive lower bound.
Set the inclusive lower bound.
Attributes
Set or clear the inclusive lower bound.
Set or clear the inclusive lower bound.
Attributes
Require the value to be an integer multiple of multiple.
Require the value to be an integer multiple of multiple.
Value parameters
- multiple
-
The divisor
Attributes
Set or clear the divisor the value must be a multiple of.
Set or clear the divisor the value must be a multiple of.
Attributes
Add inclusive minimum and/or maximum range constraints.
Add inclusive minimum and/or maximum range constraints.
Value parameters
- max
-
Optional inclusive upper bound
- min
-
Optional inclusive lower bound
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product