Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

793 B
Raw Blame
"""
Data models for follow-up research functionality.
"""

from dataclasses import dataclass
from typing import Dict, Any


@dataclass
class FollowUpRequest:
    """Request model for follow-up research."""

    parent_research_id: str
    question: str
    strategy: str = "source-based"  # Default delegate strategy
    max_iterations: int = 1  # Quick summary by default
    questions_per_iteration: int = 3

    def to_dict(self) -> Dict[str, Any]:
        """Convert to dictionary for API/service use."""
        return {
            "parent_research_id": self.parent_research_id,
            "question": self.question,
            "strategy": self.strategy,
            "max_iterations": self.max_iterations,
            "questions_per_iteration": self.questions_per_iteration,
        }