> ## 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 Dead Letter • AI Agent SDK

> should_dead_letter: API reference for AttemptAndAgeDeadLetterPolicy.should_dead_letter

# should\_dead\_letter

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

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

## Signature

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

### Returns

<ResponseField name="Returns" type="DeadLetterDecision">
  The result of the operation.
</ResponseField>

## Uses

* `DeadLetterDecision`

## Source

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