number_input() captures bounded numeric settings such as max_tokens, retry counts, or concurrency limits.
number_input()
max_tokens
<ComponentPreview title="Number Input">
{
"type": "number_input",
"label": "Max Output Tokens",
"value": 2048,
"min_val": 256,
"max_val": 8192,
"step": 256,
"name": "max_tokens"
}
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Parameter | Type | Description |
|---|---|---|
| label, value, name | str, number, str | Field label, initial numeric value, and form key. |
label
value
name
str
number
| min_val, max_val, step | number | Optional minimum, maximum, and increment step. |
min_val
max_val
step