Deep Research CLI

CLI commands for deep research in PraisonAI TypeScript

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

Diagram

User

CLI

Research

Quick Start

  1. Simple Usage
    bash
    praisonai-ts research "What are the latest AI trends?"
  2. With Configuration
    bash
    praisonai-ts research "TypeScript best practices" --depth 5 --json

Basic Research

bash
# 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:

json
{
  "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:

typescript
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.

Related