Skip to main content

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
Maximum search results to retrieve per query
int
default:"10"
Minimum number of sites to scrape; raises error if not met
The prophet_research function uses a multi-stage approach:
  1. Query Generation: Breaks down the main goal into subqueries
  2. Search Execution: Performs web searches using Tavily API
  3. Content Scraping: Extracts content from top search results
  4. Deduplication: Removes duplicate URLs across searches
  5. Quality Check: Ensures minimum number of sites were successfully scraped
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:
The min_scraped_sites parameter acts as a quality threshold. If fewer sites are successfully scraped (due to duplicates, failures, or insufficient results), the function will raise an error. Adjust this based on your research thoroughness requirements.

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.

Rate Limiting

Be mindful of API rate limits:
  • Serper API: Check your plan’s request limits
  • Tavily API: Free tier has limited searches per month
  • Web scraping: Implement delays between requests to avoid being blocked

Advanced Usage

Custom Research Pipeline

Dependencies

Environment Variables