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

# memory • Rust AI Agent SDK

> memory: Create a memory error

# memory

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

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

Create a memory error

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def memory(msg: impl Into<String>) -> Self
```

## Parameters

<ParamField query="msg" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Memory" icon="database" href="/docs/rust/memory" />

  <Card title="Rust Sessions" icon="clock" href="/docs/rust/sessions" />

  <Card title="Rust Knowledge" icon="book" href="/docs/rust/knowledge" />
</CardGroup>
