Overview
Before we dive deep into the kernel functions, we provide an overview of the kernel designs to illustrate how modules in the AIOS kernel connect and collaborate with each other.
Last updated
Before we dive deep into the kernel functions, we provide an overview of the kernel designs to illustrate how modules in the AIOS kernel connect and collaborate with each other.
Last updated
The AIOS Kernel comprises several key modules, each playing a specialized role to facilitate and manage agent requests effectively.
The LLM core 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.
The 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.
The 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.
The 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.
The tool manager 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.
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.