Prerequisites
The following example requires thecrawl4ai
library.
Example
The following agent will scrape the content from the https://github.com/agno-agi/agno webpage:cookbook/tools/crawl4ai_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
max_length | int | 1000 | Specifies the maximum length of the text from the webpage to be returned. |
Toolkit Functions
Function | Description |
---|---|
crawl | Crawls one or more URLs using crawl4ai’s WebCrawler. Parameters include url for a single URL or list of URLs to crawl, and an optional search_query to filter content using the BM25 algorithm. |