> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Is Numeric String • AI Agent SDK

> is_numeric_string: Check if a string is numeric. O(1) operation.

# is\_numeric\_string

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**parse\_utils**](../modules/parse_utils) module.

Check if a string is numeric. O(1) operation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_numeric_string(value: str) -> bool
```

## Parameters

<ParamField query="value" type="str" required={true}>
  String to check
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if string is numeric
</ResponseField>

## Uses

* `value.isdigit`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/parse_utils.py#L127">
  `praisonaiagents/config/parse_utils.py` at line 127
</Card>
