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

# Put Chunk • AI Agent SDK

> put_chunk: Write ``data`` at ``offset`` for the reserved ``ref_id``.

# put\_chunk

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

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

Write `data` at `offset` for the reserved `ref_id`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def put_chunk(ref_id: str, offset: int, data: bytes) -> None
```

## Parameters

<ParamField query="ref_id" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="offset" type="int" required={true}>
  No description available.
</ParamField>

<ParamField query="data" type="bytes" required={true}>
  No description available.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L681">
  `praisonaiagents/gateway/protocols.py` at line 681
</Card>
