The --web-search flag enables native web search capabilities for supported LLM providers.
Quick Start
Basic Web Search
Expected Output:
Combine with Other Flags
Supported Providers
YAML Equivalent
Use web: true on an agent with a web-search enabled model:
How It Works
- Enable: The
--web-search flag activates providerโs native search
- Query: Your prompt is sent with web search capability
- Search: Provider searches the web for relevant information
- Synthesize: Results are synthesized into a coherent response
- Cite: Sources are included when available
Examples
News Query
Research Query
Real-time Data
Programmatic Usage
Comparison with Other Options
Best Practices
Use --web-search for quick, real-time information. For in-depth research, use praisonai research instead.
Web search availability depends on the provider and model. Not all models support native web search.