> ## 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 Ws Mode • AI Agent SDK

> is_ws_mode: Whether bot is configured for WebSocket mode.

# is\_ws\_mode

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

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

Whether bot is configured for WebSocket mode.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_ws_mode() -> 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/config.py#L182">
  `praisonaiagents/bots/config.py` at line 182
</Card>
