WebSearchTools
Wisej.AI.Tools.WebSearchTools
Last updated
Wisej.AI.Tools.WebSearchTools
Last updated
Namespace: Wisej.AI.Tools
Assembly: Wisej.AI (3.5.0.0)
Represents a collection of tools for performing web searches and processing web content.
This class provides functionality to search the web using a specified query and read content from specified URLs. It utilizes various services such as , , , and to perform its operations.
Initializes a new instance of the class.
This constructor sets the property of the if it is not null.
: Gets or sets the document conversion service used for converting web content.
Downloads content from the specified URLs asynchronously.
urls
An array of URLs to download content from.
Reads content from the specified URLs.
urls
An array of URLs to read content from.
Searches the web using the specified query.
query
The search query.
Represents a container for tools, providing access to a hub, adapter, and a collection of parameters.
: Gets or sets the HTTP client service used for making HTTP requests.
: Gets or sets the maximum number of context tokens. (Default: 4096
)
: Gets or sets the maximum number of sites to search. (Default: 5
)
: Gets or sets the web search service used for searching the web.
: Gets or sets the timeout in milliseconds. (Default: 30000
)
: Gets or sets the tokenizer service used for truncating context tokens.
: Gets or sets the User-Agent header. (Default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
)
Returns: . A task that represents the asynchronous download operation. The task result contains the downloaded content as a string.
Returns: . A task that represents the asynchronous read operation. The task result contains the content as a string.
Returns: . A task that represents the asynchronous search operation. The task result contains the search result as a string.