Skip to main content

Deep Research CLI Commands

The praisonai-ts CLI provides the research command for comprehensive research.

Basic Research

# Research a topic
praisonai-ts research "What are the latest AI trends?"

# Research with depth control
praisonai-ts research "TypeScript best practices" --depth 5

# Limit sources
praisonai-ts research "Machine learning" --max-sources 10

# Get JSON output
praisonai-ts research "AI history" --json
Example Output:
{
  "success": true,
  "data": {
    "answer": "The latest AI trends include...",
    "citations": [
      { "title": "AI Research Paper", "url": "https://..." }
    ],
    "reasoning": [...],
    "confidence": 0.85
  }
}

Research Options

OptionDescription
--depthResearch depth (iterations)
--max-sourcesMaximum sources to use
--verboseEnable verbose output

SDK Usage

For programmatic research:
import { DeepResearchAgent } from 'praisonai';

const agent = new DeepResearchAgent({
  llm: 'openai/gpt-4o-mini',
  maxIterations: 5
});

const result = await agent.research('What is machine learning?');
console.log('Answer:', result.answer);
console.log('Confidence:', result.confidence);
console.log('Citations:', result.citations.length);
For more details, see the Deep Research SDK documentation.