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

# Set Profiler • AI Agents Framework

> set_profiler: Set the current profiler in context.

# set\_profiler

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

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

Set the current profiler in context.

## Signature

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

## Parameters

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

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agent Profiles" icon="id-card" href="/docs/docs/features/agent-profiles" />

  <Card title="Profiling" icon="chart-line" href="/docs/docs/features/profiling" />
</CardGroup>
