Overview
Last updated
Last updated
The AIOS-Agent SDK (Cerebrum) provides a structured interface between user device applications and the AIOS kernel through different functional modules.
All queries from these modules are ultimately channeled through a central send_request(Query)
function in the AIOS-Agent SDK, which then communicates with the AIOS kernel via HTTP requests (either to localhost or a remote URL).
On the user device side, the agent contains code snippets for planning, action, memory, and storage that interact with their respective modules through the Cerebrum Client interface. This creates a clean separation between the application logic and the kernel communication layer.
To use the SDK to interact with the AIOS kernel, it is required to set up a client like the following
First, let's create your client instance:
The AIOS-Agent SDK offers five router APIs to initialize and setup the following essential modules in the AIOS kernel.
LLM
Memory
Storage
Tools
Scheduler
Here's a simple example of how to add these layers to your client, and how to set up the LLMLayer
, MemoryLayer
, StorageLayer
and ToolLayer
will be introduced in the later sections.
Now you can run agents and get their results: