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

# Has Pending Messages • AI Agent SDK

> has_pending_messages: Check if there are pending steering messages.

# has\_pending\_messages

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

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

Check if there are pending steering messages.

## Signature

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

### Returns

<ResponseField name="Returns" type="bool">
  True if messages are pending, False otherwise
</ResponseField>

## Source

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