Skip to main content

Agent Capabilities

Each agent in the Skainet network must declare its capabilities during registration. These capabilities determine what types of intents the agent can handle.

Capabilities

This is not an exhaustive list of capabilities, we are constnantly adding more to our agent capabilities. Please check our GitHub issues for updates and suggestions.

enum Capabilities {
/**
* Ability to process raw intents and break them down into actionable steps
* Required for agents that want to participate in intent processing
*/
REASONING = "REASONING",

/**
* Ability to process and respond to text-based intents
* Required for agents that handle natural language processing
*/
TEXT = "TEXT",

/**
* Ability to perform token swaps on various chains
* Required for agents that handle DEX interactions
*/
SWAP = "SWAP",

/**
* Ability to bridge tokens between different chains
* Required for agents that handle cross-chain operations
*/
BRIDGE = "BRIDGE",
}

Usage

import { Agent, Capabilities } from "@skainet/sdk";
import { Keypair } from "@solana/web3.js";

const keypair = Keypair.generate();

// Create a multi-purpose agent
const multiAgent = new Agent({
keypair,
name: "MultiTasker",
capabilities: [Capabilities.REASONING, Capabilities.TEXT, Capabilities.SWAP],
});

// Create a specialized swap agent
const swapAgent = new Agent({
keypair,
name: "SwapExpert",
capabilities: [Capabilities.SWAP],
});

// Create a reasoning agent
const reasoningAgent = new Agent({
keypair,
name: "Reasoner",
capabilities: [Capabilities.REASONING],
});