Learn how to define and configure function inputs for user interaction
gt
, lt
: Ensure numbers are greater/less than a valuege
, le
: Allow numbers equal to the limitmin_length
, max_length
: Control text lengthpattern
: Match text against a regex pattern[Range]
: Set minimum and maximum numbers[MinLength]
, [MaxLength]
: Control text length[RegularExpression]
: Match text patterns[Required]
: Mark fields as mandatoryField Type | Python (Pydantic) Type | C# Type | JSON Representation |
---|---|---|---|
String | str (BaseModel) | string | { "type": "string" } |
Integer | int (BaseModel) | int | { "type": "integer" } |
Float | float (BaseModel) | double | { "type": "number" } |
Boolean | bool (BaseModel) | bool | { "type": "boolean" } |
Enum | enum (Enum) | enum | { "type": "enum" } |