Interface: BaseParameters
agents/tools.internal.BaseParameters
This does not use the serpapi
package because it appears to cause issues
when used in jest
tests. Part of the issue seems to be that the serpapi
package imports a wasm module to use instead of native fetch
, which we
don't want anyway.
Hierarchy
BaseParameters
Properties
device
• Optional
device: "desktop"
| "tablet"
| "mobile"
Parameter defines the device to use to get the results. It can be set to
desktop
(default) to use a regular browser, tablet
to use a tablet browser
(currently using iPads), or mobile
to use a mobile browser (currently
using iPhones).
Defined in
langchain/src/agents/tools/serpapi.ts:18
no_cache
• Optional
no_cache: boolean
Parameter will force SerpApi to fetch the Google results even if a cached
version is already present. A cache is served only if the query and all
parameters are exactly the same. Cache expires after 1h. Cached searches
are free, and are not counted towards your searches per month. It can be set
to false
(default) to allow results from the cache, or true
to disallow
results from the cache. no_cache
and async
parameters should not be used together.
Defined in
langchain/src/agents/tools/serpapi.ts:27
timeout
• Optional
timeout: number
Specify the client-side timeout of the request. In milliseconds.
Defined in
langchain/src/agents/tools/serpapi.ts:31