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

# Is Command • AI Agent SDK

> is_command: Check if message is a command.

# is\_command

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

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

Check if message is a command.

## Signature

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

### Returns

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

## Source

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