> ## 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.

# Estimate Tokens Simple • AI Agent SDK

> estimate_tokens_simple: Simple token estimation (~4 chars per token).

# estimate\_tokens\_simple

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

> This function is defined in the [**indexing**](../modules/indexing) module.

Simple token estimation (\~4 chars per token).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def estimate_tokens_simple(text: str) -> int
```

## Parameters

<ParamField query="text" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="int">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L34">
  `praisonaiagents/knowledge/indexing.py` at line 34
</Card>
