Add live research capabilities with innovation detection

Research Tools:
- SearchTool: Multiple backends (Tavily, Serper, Brave, DuckDuckGo)
- WikipediaTool: Wikipedia lookup
- AcademicSearchTool: CrossRef, Semantic Scholar
- ResearchOrchestrator: Comprehensive multi-source research

ResearchAgent:
- NOT just fact-checking - actively discovers NEW information
- Identifies trends beyond training data cutoff
- Generates innovations from cross-referencing sources
- Deep research with subtopics

VerifiedFactChecker:
- Live claim verification against web sources
- Confidence scoring
- Citation needed detection

Dependencies added: tavily, wikipedia, arxiv, duckduckgo-search
This commit is contained in:
2026-03-13 05:03:52 +00:00
parent 6766e93c3d
commit 8cb29889cc
5 changed files with 862 additions and 0 deletions
+9
View File
@@ -22,6 +22,11 @@ from opus_orchestrator.agents.nonfiction import (
NonfictionWriterAgent,
ResearcherAgent,
)
from opus_orchestrator.agents.research import (
ResearchAgent,
VerifiedFactChecker,
create_research_agent,
)
from opus_orchestrator.config import OpusConfig, get_config
from opus_orchestrator.schemas import (
BookIntent,
@@ -83,6 +88,10 @@ __all__ = [
"NonfictionWriterAgent",
"FactCheckerAgent",
"NonfictionEditorAgent",
# Research Agent (NEW!)
"ResearchAgent",
"VerifiedFactChecker",
"create_research_agent",
# LangGraph
"OpusGraph",
"OpusGraphState",