Tools
BaiduSearch
BaiduSearch enables an Agent to search the web for information using the Baidu search engine.
Prerequisites
The following example requires the baidusearch
library. To install BaiduSearch, run the following command:
Example
cookbook/tools/baidusearch_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
fixed_max_results | int | - | Sets a fixed number of maximum results to return. No default is provided, must be specified if used. |
fixed_language | str | - | Set the fixed language for the results. |
headers | Any | - | Headers to be used in the search request. |
proxy | str | - | Specifies a single proxy address as a string to be used for the HTTP requests. |
timeout | int | 10 | Sets the timeout for HTTP requests, in seconds. |
Toolkit Functions
Function | Description |
---|---|
baidu_search | Use this function to search Baidu for a query. |
Information
- View on Github
Was this page helpful?