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

# aclose • AI Agents Framework

> aclose: Close the core OpenAI client if it exists.

# aclose

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

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

Close the core OpenAI client if it exists.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def aclose() -> Any
```

### Returns

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

## Uses

* `client.aclose`

## Used By

* [`BaseAutoGenerator.aclose`](../functions/BaseAutoGenerator-aclose)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L460">
  `praisonai/auto.py` at line 460
</Card>
