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

> is_closed: Returns True if the agent has been closed.

# is\_closed

Method

> This is a method of the [**Agent**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/Agent.md) class in the [**agent**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/agent.md) module.

Returns True if the agent has been closed.

## Signature

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

### Returns

**Returns** `bool`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L8432)
>
> `praisonaiagents/agent/agent.py` at line 8432


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.