Overview
The research tools provide powerful capabilities for gathering information from the web, including Google search integration and the Prediction Prophet research framework for deep market analysis.Google Search Tool
Integrate Google search results directly into your prediction agents.The Google search tool uses the Serper API via
prediction_market_agent_tooling. Ensure you have SERPER_API_KEY set in your environment.Function Schema
For integration with function-calling agents:Usage Example
Prediction Prophet Research
The Prediction Prophet research tool provides a sophisticated framework for conducting thorough market research using AI agents.This tool is based on the Prediction Prophet framework and provides deep research capabilities with multiple search iterations.
Prophet Research Function
Parameters
Agent
required
Pydantic AI agent instance that will perform the research
str
required
The research objective or question to investigate
SecretStr
required
OpenAI API key for LLM operations
SecretStr
required
Tavily API key for web search
int
default:"20"
Maximum number of initial subqueries to generate
int
default:"4"
Number of refined subqueries to execute
int
default:"5"
Maximum search results to retrieve per query
int
default:"10"
Minimum number of sites to scrape; raises error if not met
How It Works
How It Works
The
prophet_research function uses a multi-stage approach:- Query Generation: Breaks down the main goal into subqueries
- Search Execution: Performs web searches using Tavily API
- Content Scraping: Extracts content from top search results
- Deduplication: Removes duplicate URLs across searches
- Quality Check: Ensures minimum number of sites were successfully scraped
Research Output
Research Output
The
Research object contains:- subqueries: List of generated search queries
- sources: URLs and content from scraped sites
- synthesis: AI-generated summary of findings
- confidence: Confidence score for the research results
Prophet Prediction
Combine research with prediction generation:Tavily Search Tool
For agents using CrewAI or other frameworks, a Tavily search tool is available:Integration with Think Thoroughly Agent
The Think Thoroughly Agent uses research tools for deep market analysis:Best Practices
Query Optimization
Break complex questions into specific subqueries for better search results. The Prophet framework does this automatically.
Source Diversity
Use multiple search providers and scrape varied sources to reduce bias and improve accuracy.
Content Limits
Truncate scraped content to fit context windows. The Advanced Agent limits to 10,000 characters per source.
Error Handling
Always handle search and scraping failures gracefully. Not all URLs will be accessible.