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

> put: Persist ``value`` under ``ref`` until ``expires_at`` (epoch seconds).

# put

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

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

Persist `value` under `ref` until `expires_at` (epoch seconds).

Called from the synchronous render path, so this is a plain method.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def put(ref: str, value: str) -> None
```

## Parameters

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

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

## Used By

* [`MCPToolRunner.call_tool`](../functions/MCPToolRunner-call_tool)
* [`MCPToolRunner.shutdown`](../functions/MCPToolRunner-shutdown)

## Source

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