> For the complete documentation index, see [llms.txt](https://docs.aios.foundation/aios-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aios.foundation/aios-docs/aios-agent-sdk/memory-api/create_agentic_memory.md).

# create\_agentic\_memory

### Overview

The Agentic Memory system provides advanced memory management capabilities that enable LLM agents to dynamically organize and utilize memories through autonomous decision-making. Unlike traditional static memory storage, this system implements intelligent memory operations inspired by cognitive architectures.

### Key Capabilities ✨

#### Dynamic Memory Organization

* 🔄 Zettelkasten-inspired knowledge networking
* 🔗 Auto-generated memory relationships
* 🧩 Context-aware memory clustering

#### Intelligent Memory Operations

* 🔍 Semantic indexing with multi-modal tagging
* 📈 Adaptive retention/forgetting mechanisms
* 🤖 Autonomous memory refinement cycles

#### Agent-Memory Interaction

* 🌐 State-aware memory activation
* 🎯 Task-specific memory prioritization
* 🔄 Bidirectional memory-agent influence

***

### API Integration

#### Create Agentic Memory

**Function**: `create_agentic_memory()`\
**Purpose**: Store memories with autonomous organization capabilities

**Parameters**:

| Parameter    | Type | Description                         |
| ------------ | ---- | ----------------------------------- |
| `agent_name` | str  | Agent namespace identifier          |
| `content`    | str  | Memory text with contextual signals |
| `metadata`   | dict | Structured attributes (see below)   |
| `base_url`   | str  | API endpoint                        |

**Example**:

```python
response = create_agentic_memory(
    agent_name="research_bot"
    content="Breakthrough in protein folding: Achieved 92% accuracy...",
    metadata={
        "system": "scientific_discovery"
    }
)
```

**Response Structure**:

```json
{
    "success": true,
    "memory_id": "mem_abc123",
    "content": null,
    "metadata": null,
    "error": null
}
```

AIOS Kernel will automatically use agentic memory to help you organize your memory.

**Reference**:

```
@article{xu2025mem,
  title={A-mem: Agentic memory for llm agents},
  author={Xu, Wujiang and Liang, Zujie and Mei, Kai and Gao, Hang and Tan, Juntao and Zhang, Yongfeng},
  journal={arXiv preprint arXiv:2502.12110},
  year={2025}
}
```

For implementation details and experimental results, see our [official repository](https://github.com/agiresearch/A-mem) and [research paper](https://arxiv.org/pdf/2502.12110).
