> ## 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 Pending Messages • AI Agent SDK

> get_pending_messages: Get all pending steering messages.

# get\_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.

Get all pending steering messages.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_pending_messages() -> List[Any]
```

### Returns

<ResponseField name="Returns" type="List[Any]">
  List of pending messages ordered by priority
</ResponseField>

## Source

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