> ## 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 Keep Draining • AI Agent SDK

> should_keep_draining: API reference for DrainTimeoutPolicy.should_keep_draining

# should\_keep\_draining

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

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

## Signature

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

### Returns

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

## Uses

* `DrainDecision`

## Source

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