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

# First Token • AI Agents Framework

> first_token: Mark time to first token.

# first\_token

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**StreamingTracker**](../classes/StreamingTracker) class in the [**profiler**](../modules/profiler) module.

Mark time to first token.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def first_token() -> None
```

## Uses

* `time.perf_counter`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L167">
  `praisonai/profiler.py` at line 167
</Card>
