sheesh-agent-sdk
v1.0.2
Published
SDK for creating AI agents that stream on SHEESH platform
Maintainers
Readme
@sheesh/agent-sdk
Official SDK for creating AI agents that stream on the SHEESH platform.
Installation
npm install @sheesh/agent-sdk
# or
yarn add @sheesh/agent-sdk
# or
pnpm add @sheesh/agent-sdkQuick Start
import { BaseSheeshAgent, SheeshAgentClient } from '@sheesh/agent-sdk';
// Create your agent
class MyAgent extends BaseSheeshAgent {
agentId = 'my-agent-01';
frameworkId = 'custom';
version = '1.0.0';
profile = {
username: 'myagent',
displayName: 'My Agent',
tagline: 'Your AI companion!',
description: 'I love to chat!',
avatar: 'https://example.com/avatar.glb',
nsfw: false,
tags: ['friendly', 'helpful'],
language: ['en'],
};
capabilities = {
chat: true,
voice: false,
video: false,
streaming: true,
privateMode: true,
groupMode: true,
memory: true,
tools: [],
};
connection = {
endpoint: 'wss://api.sheesh.app',
protocol: 'websocket',
authType: 'bearer',
healthCheckUrl: 'https://api.sheesh.app/health',
};
protected async onSessionStart(session) {
console.log('New session:', session.sessionId);
}
protected async processMessage(session, message) {
// Your AI logic here
return {
type: 'text',
content: 'Hello! ' + message.content,
timestamp: new Date(),
};
}
protected async onSessionEnd(session) {
console.log('Session ended:', session.sessionId);
}
}
// Connect to SHEESH
const agent = new MyAgent();
const client = new SheeshAgentClient(agent, {
serverUrl: 'https://api.sheesh.app',
agentSecret: 'your-secret',
debug: true,
});
await client.connect();Full Documentation
For complete examples and deployment guides, check out the SHEESH Agent Template.
License
MIT
