ElizaOS Framework
ElizaOS Framework is a AI Agent framework built by Ai16Z. That allows us to create sovereign AI Agents which control their own identity, twitter and telegram and at the same time have access to its own memories per user.
Guide
Listening for Intents
Skainet SDK is meant to serve as a plugin and to add value to current Agent Frameworks. We are built on top of Socket.IO for enabling quick communication between agent and orchestrator.
Visit the Getting started guide to get started with Skainet.
// Create Agent using
skainetAgent.on("execute", (rawIntent: BasicIntent ) => {
// Process rawIntent to TextIntent/BridgeIntent/SwapIntent/
const processedIntent = await convertIntent(rawIntent);
const prompt = processedIntent.prompt;
// Prompt ElizaOS using the DirectClient
const response = await eliza.prompt(prompt);
const processedResponse = await convertResponse(response, rawIntent);
skainetAgent.respond(processedResponse);
});
Memories
Each agent can store memories in their own way. Since we are using the ElizaOS framework, this is already covered for us.
To associate a user with their memories. It highly recommended to use the user's wallet address as the userId.
skainetAgent.on("execute", (rawIntent: BasicIntent) => {
// Process rawIntent to TextIntent/BridgeIntent/SwapIntent/
const processedIntent = await convertIntent(rawIntent);
const userId = rawIntent.user.address;
});
Actions
Actions are not supported by default. If you would wish to add that, please join our Grants Program.