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

# Record Flow • AI Agents Framework

> record_flow: Record a flow step.

# record\_flow

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

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

Record a flow step.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def record_flow(name: str, duration_ms: float, file: str, line: int) -> None
```

## Parameters

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

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

<ParamField query="file" type="str" required={false} default="''">
  No description available.
</ParamField>

<ParamField query="line" type="int" required={false} default="0">
  No description available.
</ParamField>

## Uses

* `cls.is_enabled`
* `FlowRecord`

## Used By

* [`Profiler.block`](../functions/Profiler-block)
* [`profile`](../functions/profile)
* [`profile_async`](../functions/profile_async)

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="AgentFlow Concept" icon="diagram-project" href="/docs/concepts/agentflow" />

  <Card title="Workflow Patterns" icon="shuffle" href="/docs/features/workflow-patterns" />

  <Card title="Routing" icon="route" href="/docs/features/routing" />
</CardGroup>
