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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aios.foundation/aios-docs/aios-agent-sdk/memory-api/create_agentic_memory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
