Welcome to the Skillful AI Web SDK reference documentation. Here you'll find detailed information about the classes, methods, and properties available in the SDK.
🔷 SkillfulClient
The SkillfulClient is the main entry point for interacting with Skillful AI agents.
Initialization
import { SkillfulClient } from '@skillfulai/agents';
const client = new SkillfulClient({
apiKey: 'your-api-key'
});
Core Methods
🟣 Agent Management
getAgents()
Retrieves all available agents.
const agents = await client.getAgents();
Returns: Array<Agent> - List of available agents
setAgent(agentOrName)
Sets the active agent for conversations.
// By name
await client.setAgent('Wojak');
// By agent object
await client.setAgent(agents[0]);
Parameters:
agentOrName: string | Agent - Agent name or object