Skip to main content
Simple research assistant that charges for usage.

Code

How It Works

Instructions
  • Defines agent as research assistant
  • Finds and summarizes information from web
  • Provides comprehensive research results
  • Maintains informative and helpful tone
Tools
  • DuckDuckGoTools(): Search web for current information
  • Web search integration for real-time data
  • Information gathering and summarization
Model
  • gpt-4o-mini: Cost-effective model for research tasks
  • Via OpenRouter API integration
  • Configurable through environment variables
Payment
  • execution_cost: $0.0001 USDC per request
  • base-sepolia network for transactions
  • Protected message/send method requires payment

Dependencies

Environment Setup

Create .env file:

Run

Examples:
  • “Research the latest developments in quantum computing”
  • “Find information about renewable energy trends in 2024”
  • “What are the current market trends in artificial intelligence?”

Example API Calls

Frontend Setup

Open http://localhost:5173 and try to chat with the premium research assistant