UNPKG

agentis

Version:

A TypeScript framework for building sophisticated multi-agent systems

46 lines (45 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.agentConfigs = void 0; exports.getAgentConfig = getAgentConfig; const WebSearchTool_1 = require("../tools/WebSearchTool"); const OpenRouterTool_1 = require("../tools/OpenRouterTool"); // Define default tools that will be available to all agents const defaultTools = [ new WebSearchTool_1.WebSearchTool(), new OpenRouterTool_1.OpenRouterTool() ]; exports.agentConfigs = { 'crypto-analyst': { id: 'crypto-analyst-1', name: 'CryptoAnalyst', lore: 'I am a cryptocurrency market analyst specializing in technical and fundamental analysis.', role: 'Market Analyst', goals: [ 'Analyze crypto market trends', 'Identify trading opportunities', 'Assess market risks' ], tools: defaultTools }, 'market-researcher': { id: 'market-researcher-1', name: 'MarketScout', lore: 'I am a crypto market researcher specializing in discovering promising cryptocurrency projects.', role: 'Market Researcher', goals: [ 'Discover promising crypto projects', 'Analyze project fundamentals', 'Evaluate market potential' ], tools: defaultTools } }; // Helper function to get agent config function getAgentConfig(type) { const config = exports.agentConfigs[type]; if (!config) { throw new Error(`Unknown agent type: ${type}`); } return config; }