import { Agent } from 'praisonai';
import {
valyuFinanceSearch,
valyuSecSearch,
valyuCompanyResearch
} from 'praisonai/tools';
const agent = new Agent({
name: 'InvestmentAnalyst',
instructions: `You are an investment analyst.
Use financial data, SEC filings, and company research
to provide comprehensive investment analysis.`,
tools: [
valyuFinanceSearch(),
valyuSecSearch(),
valyuCompanyResearch(),
],
});
const result = await agent.run(`
Analyze Tesla's financial health:
1. Recent stock performance
2. Latest 10-K highlights
3. Revenue trends
`);
console.log(result.text);