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

# ok • AI Agent SDK

> ok: Whether a thread was opened (``status == 'ok'``).

# ok

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

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

Whether a thread was opened (`status == "ok"`).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def ok() -> 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/gateway/protocols.py#L2565">
  `praisonaiagents/gateway/protocols.py` at line 2565
</Card>
