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

# Queue Message • AI Agent SDK

> queue_message: Queue a steering message for the agent.

# queue\_message

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

Queue a steering message for the agent.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def queue_message(message: str, priority: int) -> str
```

## Parameters

<ParamField query="message" type="str" required={true}>
  The steering message content
</ParamField>

<ParamField query="priority" type="int" required={false} default="5">
  Message priority (higher = more urgent)
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Message ID for tracking
</ResponseField>

## Source

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