What you get
- Event-driven function execution for agent workflows
- Isolated runtime environments per tenant
- Pub/sub event mesh for agent-to-agent communication
- Automatic scaling based on demand
- Built-in retry and dead-letter handling
Quick start
Using @scalemule/sdk
Code example
import { createScaleMule } from '@scalemule/sdk'
const client = createScaleMule({
apiKey: process.env.SCALEMULE_API_KEY,
tenant: 'ai-studio'
})
// Publish an event when an agent completes a task
await client.events.publish('agent.task.completed', {
agentId: 'agent_01',
taskId: 'build_frontend',
durationMs: 4200
})
// Subscribe to events from other agents
client.events.subscribe('agent.task.*', (event) => {
console.log(`Agent ${event.data.agentId} finished ${event.data.taskId}`)
})