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

# Store Long Term • Rust AI Agent SDK

> store_long_term: Store in long-term memory (optional)

# store\_long\_term

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

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

Store in long-term memory (optional)

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def store_long_term(
        &mut self,
        _text: &str,
        _metadata: Option<serde_json::Value>,
    ) -> Result<()>
```

## Parameters

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

<ParamField query="_metadata" type="Option<serde_json::Value>" required={true}>
  No description available.
</ParamField>

### Returns

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