# Overview

Before diving deep into the kernel functions, this page provides an overview of the kernel design to illustrate how the different modules in the AIOS kernel interact with each other. The AIOS Kernel comprises several key modules, each playing a specialized role to facilitate and manage agent requests effectively.&#x20;

<figure><img src="/files/qRTlkA55UadBmaVKiYVy" alt=""><figcaption><p>Details of how agents leverage SDK to interact with AIOS kernel and how AIOS kernel leverages syscalls in different modules to achieve functionalties</p></figcaption></figure>

### **LLM Core(s)**

The [LLM core](#llm-core-s) wraps the deployed instances of LLM from different providers in a unified manner, treating each LLM as a core similar to CPU cores. This abstraction allows multiple LLMs to be integrated via a single interface, enabling flexible and efficient usage of different LLM models.&#x20;

### **Context Manager**

The [Context Manager](#context-manager) is responsible for handling context management (such as context switch) during the processing of each LLM Core. In the LLM agent scenario, "context" refers to the data that is actively fed into each LLM Core during processing.

### **Memory Manager**

The [Memory Manager](#memory-manager) handles data storage in RAM that agents need during runtime, distinguishing it from persistent storage. "Memory" here refers to transient data necessary for ongoing operations, such as temporary variables or recently processed data. It supports memory operations required by agents to store and retrieve information quickly during active tasks.&#x20;

### **Storage Manager**

The [Storage Manager](#storage-manager) is designed for handling persistent storage operations, where "storage" refers to data saved on disk that agents may require for future tasks or for logging purposes.

### Tool Manager

The [tool manager](/aios-docs/aios-kernel/tools.md) loads and manages various tools available within the AIOS-Agent SDK. This module manages tool call conflicts and prioritizes tool operations to ensure the stable execution of tool calls.

#### Key Differences among Context, Memory, and Storage

{% hint style="success" %}
**Context**: Data that is fed into the LLM core and is under processing by the LLM core.

**Memory**: Transient data stored in RAM, which agents require temporarily during active tasks or sessions. Memory is cleared after tasks complete.

**Storage**: Persistent data saved on disk, intended for long-term use or logging, accessible by agents even after a session ends.
{% endhint %}


---

# 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-kernel/overview.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.
