Overview
The Think Thoroughly Agent performs comprehensive market analysis by breaking down questions into hypothetical and conditional scenarios, researching each scenario independently, and synthesizing findings into a final prediction. It uses CrewAI for orchestrating multiple research and prediction tasks.Base Class: ThinkThoroughlyBase
Abstract base class for Think Thoroughly agent variants.Configuration Properties
AgentIdentifier
Unique identifier for the agent variant
KnownModelName
Model used for scenario generation and final decision
KnownModelName
Model used for individual scenario predictions
bool
Enable Langfuse observability
bool
default:"True"
Enable long-term memory storage
Core Components
OmenSubgraphHandler
Handles Omen market data queries
PineconeHandler
Vector database for finding correlated markets
LongTermMemoryTableHandler | None
Stores predictions and scenarios for future reference
Methods
answer_binary_market
str
The market question to predict on
int
default:"1"
Number of iterative refinement passes. Higher values allow predictions to be adjusted based on previous scenario results.
DatetimeUTC | None
When the market was created (used for time-based analysis)
ProbabilisticAnswer | None
Final probabilistic prediction synthesized from all scenarios
get_hypohetical_scenarios
Scenarios
List of 5 hypothetical scenarios, plus the original question
get_required_conditions
Scenarios
List of 3 conditional scenarios
generate_prediction_for_one_outcome
generate_final_decision
get_correlated_markets
Implementation Variants
ThinkThoroughlyWithItsOwnResearch
Uses CrewAI to perform independent web research for each scenario.Research Process
For each scenario:- Research Task: Uses Tavily search to gather web evidence
- Prediction Task: Analyzes research to generate probability
- Sequential Processing: Research output feeds into prediction
ThinkThoroughlyWithPredictionProphetResearch
Uses PredictionProphet library for research instead of CrewAI.Key Differences
- Uses
prophet_research()for web research - Uses
prophet_make_prediction()for predictions - No iterative refinement: Does not support
previous_scenarios_and_answers - Sets
initial_subqueries_limit=0(agent generates its own subqueries)
Deployable Agents
DeployableThinkThoroughlyAgent
Production agent using internal research.Betting Strategy
Usage
DeployableThinkThoroughlyProphetResearchAgent
Production agent using PredictionProphet research.Prediction Workflow
The Think Thoroughly agent follows a systematic 5-step process:Step 1: Generate Scenarios
- Hypothetical scenarios: 5 alternative phrasings/interpretations
- Conditional scenarios: 3 necessary conditions
- Total: ~8 scenarios to analyze
Step 2: Parallel Research
Step 3: Collect Predictions
Step 4: Find Correlated Markets
Step 5: Synthesize Final Decision
CrewAI Integration
Agent Roles
Research Analyst
Professional Gambler
Task Orchestration
Data Models
Scenarios
AnswerWithScenario
CorrelatedMarketInput
Advanced Usage
Custom Number of Iterations
Direct Scenario Analysis
Local Testing
Performance Considerations
Parallel Processing
Usespar_generator with multiprocessing for parallel scenario research:
- Faster than sequential processing
- Each scenario researched independently
- Handles failures gracefully (continues with successful predictions)
Memory Management
Saves all intermediate predictions to long-term memory:- Learning from past predictions
- Debugging scenario-level reasoning
- Building up historical knowledge
Time Analysis
Considers temporal aspects:Required API Keys
str
required
For GPT-4 models used in research and prediction
str
required
For web search functionality
str
required
For vector similarity search of correlated markets
Source Location
Related
- Prophet Agent - PredictionProphet-based research
- CrewAI Documentation - Multi-agent orchestration
- PineconeHandler - Vector similarity search
- Long Term Memory - Scenario storage and retrieval