Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
WebConfig
Defined in the config module.
Rust AI Agent SDK
Configuration for web search and fetch capabilities
Fields
| Name | Type | Description |
|---|
search | bool | Enable web search |
fetch | bool | Enable web fetch (retrieve full page content) |
search_provider | WebSearchProvider | Search provider |
max_results | usize | Maximum search results |
Methods
new
Create a new web config
no_search
fn no_search(mut self) -> Self
Disable search
no_fetch
fn no_fetch(mut self) -> Self
Disable fetch
provider
fn provider(mut self, provider: WebSearchProvider) -> Self
Set search provider
Parameters:
| Name | Type |
|---|
provider | WebSearchProvider |
max_results
fn max_results(mut self, max: usize) -> Self
Set max results
Parameters:
Source
View on GitHub
praisonai/src/config.rs at line 715