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

# close • Rust AI Agent SDK

> close: Close the client connection.

# close

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

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

Close the client connection.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def close(&self) -> Result<()>
```

### Returns

<ResponseField name="Returns" type="Result<()>">
  The result of the operation.
</ResponseField>
