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

# Get Recommended Stage • AI Agent SDK

> get_recommended_stage: Get recommended execution stage for prompt.

# get\_recommended\_stage

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

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

Get recommended execution stage for prompt.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_recommended_stage(prompt: str) -> str
```

## Parameters

<ParamField query="prompt" type="str" required={true}>
  The user prompt
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Stage name as string (direct, heuristic, planned, autonomous)
</ResponseField>

## Uses

* `analyze`
* `recommend_stage`

## Used By

* [`Agent.run_autonomous`](../functions/Agent-run_autonomous)
* [`Agent.run_autonomous_async`](../functions/Agent-run_autonomous_async)

## Source

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