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

# Should Escalate • AI Agent SDK

> should_escalate: Check if escalation is needed based on current state.

# should\_escalate

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

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

Check if escalation is needed based on current state.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def should_escalate(config: EscalationConfig) -> bool
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="bool">
  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/escalation/types.py#L196">
  `praisonaiagents/escalation/types.py` at line 196
</Card>
