In addition to LLMs, we often want agents to use tools. This section covers their setup.
Web Searching API
Check search_config.py for configuration.
## Supported api_type: serpapi/google/serper/ddg
## serper: Visit https://serper.dev/ to get key.
## serpapi: Visit https://serpapi.com/ to get key.
## google: Visit https://console.cloud.google.com/apis/credentials to get key.
## ddg: it is free, no need to get key.
search:
api_type: 'google' # serpapi/google/serper/ddg
api_key: 'YOUR_API_KEY'
cse_id: 'YOUR_CSE_ID' # only for google
params:
engine: google # google/bing/yahoo/baidu/yandex, check https://serpapi.com/bing-search-api for more details
google_domain: 'google.com'
gl: us
hl: en