Configuration
AgentConfig Interface
interface AgentConfig {
id: string; // Unique agent identifier
name: string; // Human-readable name
description?: string; // Agent description
model?: string; // Model name (default: claude-3-sonnet-20240229)
apiKey?: string; // Optional per-agent API key
temperature?: number; // 0.0-1.0 (default: 0.7)
maxTokens?: number; // Max tokens per response (default: 1000)
systemPrompt?: string; // System prompt for the agent
capabilities?: string[]; // List of capabilities
plugins?: string[]; // List of plugin names to load
}Creating an Agent
const agent = await manager.createAgent({
id: 'analyst-agent',
name: 'Market Analyst',
description: 'Analyzes market trends and patterns',
systemPrompt: 'You are a financial market analyst with expertise in DeFi and trading.',
temperature: 0.3, // Lower temperature for more focused analysis
maxTokens: 2000,
capabilities: ['market-analysis', 'data-interpretation']
});Agent State
Last updated
