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

> close: Finalize the upload and return the resulting :class:`AttachmentRef`.

# close

Method

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

Finalize the upload and return the resulting :class:`AttachmentRef`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def close(ref_id: str) -> AttachmentRef
```

## Parameters

**ref\_id** `str` *required*

No description available.

### Returns

**Returns** `AttachmentRef`

The result of the operation.

## Used By

* [`Agent.close`](../functions/Agent-close)
* [`Agent.close`](../functions/Agent-close)
* [`Agent.aclose`](../functions/Agent-aclose)
* [`Agent.aclose`](../functions/Agent-aclose)
* [`Agent.aclose`](../functions/Agent-aclose)

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L685)**
>
> `praisonaiagents/gateway/protocols.py` at line 685


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