apollo-code / tools/src / WebSearchTool
Class: WebSearchTool
Implements
Constructors
Constructor
new WebSearchTool(
provider?,options?):WebSearchTool
Parameters
provider?
options?
WebSearchOptions = {}
Returns
WebSearchTool
Properties
description
readonlydescription:"Search through a configured provider; returned content is untrusted"='Search through a configured provider; returned content is untrusted'
Implementation of
inputSchema
readonlyinputSchema:never
Implementation of
name
readonlyname:"WebSearch"='WebSearch'
Implementation of
parallelSafe
readonlyparallelSafe:true=true
Implementation of
provider?
readonlyoptionalprovider?:WebSearchProvider
readonly
readonlyreadonly:true=true
Implementation of
timeoutMs
readonlytimeoutMs:30000=30_000
Implementation of
Methods
invoke()
invoke(
input,context):Promise<ToolResult>
Parameters
input
context
Returns
Promise<ToolResult>
Implementation of
permissionSpec()
permissionSpec(
input):object
Parameters
input
Returns
object
custom
custom:
object
custom.webSearch
webSearch:
object
custom.webSearch.provider
provider:
string
custom.webSearch.query
query:
string
custom.webSearch.queryFingerprint
queryFingerprint:
string