Dynamic memory graphs per user and session enable agents to understand context and make informed decisions.
Coordinate complex workflows with agents that delegate tasks to specialized sub-agents seamlessly.
Connect to Slack, Notion, GitHub, CRMs, or any internal API with our flexible plugin architecture.
Built-in dashboards for usage metrics, context replay, error tracing, and confidence scoring.
import { Agent, Memory } from '@elsa/sdk';
// Initialize agent with memory
const agent = new Agent({
name: 'customer-support',
model: 'gpt-4',
memory: new Memory({
type: 'vector',
provider: 'pinecone'
})
});
// Define tools
agent.addTool({
name: 'search_docs',
description: 'Search documentation',
schema: {
query: { type: 'string', required: true }
},
execute: async (params) => {
return await searchDocs(params.query);
}
});
// Run agent
const response = await agent.run({
input: 'How do I reset my password?',
context: { userId: '123' }
});