# non_negative_int

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/ui/non_negative_int)

Argparse type for integer arguments that must be >= 0.

## Signature

```python
non_negative_int(
    value: str,
) -> int
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `str` | Yes | Raw argument string to parse. |

## Returns

`int`

Parsed non-negative integer.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/ui.py#L46)